Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore the Stepup E2E behat tests #9

Merged
merged 38 commits into from
Feb 28, 2024
Merged

Restore the Stepup E2E behat tests #9

merged 38 commits into from
Feb 28, 2024

Conversation

quartje
Copy link
Contributor

@quartje quartje commented Dec 21, 2023

No description provided.

@quartje quartje force-pushed the feature/behat_tests branch 3 times, most recently from b0e1413 to 9685ce9 Compare December 21, 2023 12:47
quartje and others added 11 commits January 24, 2024 16:18
Some modifications have been been made. The url stepup.example.com has
been changed everywhere. Also overrides have been removed.
STEPUP_VERSION can be used to pull the correct tag for the docker images
(either prod or test). APP_ENV can be used to set the APP_ENV in the
container. If these vars are not present in a .env file the default is
"prod"
…s STEPUP_APP=test then it starts the requested dev containers in smoketest mode
And while at it, increase its test coverage
@MKodde MKodde force-pushed the feature/behat_tests branch from 2f09d61 to bfd7c7d Compare January 25, 2024 10:40
1. Add verbosity by showing which apps are started in dev mode
2. Allow option to run the script in the background
done

# Because numbering is off by one, reference the next arg
let number_of_dev_envs=number_of_dev_envs+1
# Read the generated env file with the apps and their code paths
Copy link
Member

@pmeulen pmeulen Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pmeulen I see how this could work, I'm going to attempt to utilize that method. I'll be sure to check in with you if I get stranded.

MKodde added 13 commits February 8, 2024 12:02
After the fixture was updated, it now includes 3 identities
To enable them one by one once they are fixed. This allows me to keep
all tests green and not having to run hundreds of failing tests
notable changes: events were updated to set default language to en_GB
for the identities.
Awaiting the repair of the SSP test SP/IdP
The Event stream needed some tweaking (mainly to get my first name out
of the identities ;) )
No additional action was required to enable the test except for setting
the token identifier for the yubikey
No changes required to get it up and running again.
Support was added for demo gssps as a token type that can be vetted

The test was somewhat modified to reflect te users present in our
fixtures but in basis the test remained the same
In order to make tests green, the default institution config was changed
slightly
Both features have been enabled. Enabling gssp (demo_gssp) authn in the
process.

The removed stepup. example.org institution was removed from the
whitelist
@MKodde MKodde force-pushed the feature/behat_tests branch 8 times, most recently from 60fce82 to 1f654a4 Compare February 20, 2024 13:49
- No longer create /var/www/html/public: This is done upstream
- Use the latest versions of GH actions
- No longer build the image at every push.
@MKodde MKodde force-pushed the feature/behat_tests branch 8 times, most recently from 2b2b166 to 2013d82 Compare February 20, 2024 16:00
Make some of the outputted text more explicit. This is done by putting
more emphasis when running the suite in test mode (then a green bold
text is displayed stating you are running test-mode)

But also by adding the context (dev|test) to other debug statements.

Finally, the script is more defensive, and checks file existence before
sourcing their contents. Preventing file not found errors
Adding functional test documentation.
@MKodde MKodde force-pushed the feature/behat_tests branch 3 times, most recently from a427274 to d76935a Compare February 26, 2024 11:14
@MKodde MKodde merged commit 45d8076 into main Feb 28, 2024
4 checks passed
@MKodde MKodde deleted the feature/behat_tests branch February 28, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants