Commit Graph

40 Commits

Author SHA1 Message Date
Marcial Rosales 913c931184 Start UAA first then RabbitMQ
To avoid flaky timing issues where
UAA is not ready yet when the tests need
it
2022-11-18 11:53:51 +01:00
Marcial Rosales edabd8816b Support multiple path segments in management path
Updated selenium tests to tests against 2 path
segments rather than just one
2022-10-04 16:43:18 +02:00
Marcial Rosales 4f3e5398f6 Improve wording of how to run selenium tests 2022-10-04 10:01:59 +02:00
Marcial Rosales d46566099f Support management path prefix when using OAuth2 2022-10-04 09:13:57 +02:00
Marcial Rosales bb9d7a134e Refactor how selenium suites are run 2022-10-03 13:15:57 +02:00
Marcial Rosales 9c25457261 Simplify make targets 2022-09-02 09:34:51 +01:00
Michael Klishin dca7132dc3 management.oauth_enable => management.oauth_enabled 2022-09-02 00:16:13 +04:00
Marcial Rosales 0cbe370ec0 Fix bug in start-uaa.sh script
And capture screenshots on all test cases
on teardown if the test failed
Use headless chrome 104
2022-09-01 16:26:12 +01:00
Marcial Rosales e3d2af924e Fix location of script waitTillUAAReady
and use 105 of headless chrome
2022-09-01 14:41:03 +01:00
Marcial Rosales da77481663 Wait till token TTL before checking again 2022-09-01 13:54:29 +01:00
Marcial Rosales 54464c0498 Logging improvements
Rather than logging directly via console.log
we do it via the Logger library provided by
oidc-client which allows to use logging levels
2022-09-01 13:53:42 +01:00
Marcial Rosales dbf5797107 Enable only 2 plugins not all 2022-09-01 13:50:11 +01:00
Michael Klishin 31a5e1ab14 OAuth 2 Selenium suite: bump selenium-webdriver and chromedriver 2022-09-01 15:24:17 +04:00
Marcial Rosales 48e90b9f74 Improve wording 2022-09-01 11:46:45 +01:00
Marcial Rosales d544442647 Fix wrong folder name 2022-09-01 11:43:59 +01:00
Marcial Rosales 81f612f8ff Test hard session timeout
When the management ui session times out
the user should be logged out also from
the idp
2022-08-30 17:53:44 +01:00
Marcial Rosales 0ce972da2e Refactor how selenium tests are run 2022-08-30 17:13:22 +01:00
Marcial Rosales e57b88f2b7 Fix logout workflow
The issue was primarily that UAA was
not properly configured. We had to whitelist
the uri used for logout otherwise UAA redirects
to its login page

WIP verify that logout.js works when running in
headless mode. For that we need a docker image
and at the moment, make docker-image is not
working because it is still using old otp 24.0.2
2022-08-30 17:11:21 +01:00
Marcial Rosales 7f14fa77f7 Skip logout selenium test 2022-08-30 17:11:21 +01:00
Marcial Rosales 9c7a36f626 Explain how to launch rabbitq from source 2022-08-30 17:11:21 +01:00
Marcial Rosales 9d599449e7 Run selenium tests with Actions 2022-08-30 17:11:20 +01:00
Marcial Rosales 99930e1fef Improve docs and fix some mistakes on the selenium tests 2022-08-30 17:11:20 +01:00
Marcial Rosales 1be9db3221 WIP prepare to run all tests
Waiting for the docker image to be pushed to repo
2022-08-30 17:11:19 +01:00
Marcial Rosales 33f14060c6 Comment why test last 20sec 2022-08-30 17:11:19 +01:00
Marcial Rosales 4f3c7caa3c Document testing 2022-08-30 17:11:19 +01:00
Marcial Rosales 5c4e92ba25 Issue found on token refresh 2022-08-30 17:11:19 +01:00
Marcial Rosales c5d137121e Verify login,logout when uaa is up 2022-08-30 17:11:18 +01:00
Marcial Rosales 93cee6dede Verify happy-login scenario
With auto-approved scopes
2022-08-30 17:11:18 +01:00
Marcial Rosales f402f4a3bc WIP fixing test case happy-login.js using ObjectPages 2022-08-30 17:11:18 +01:00
Marcial Rosales 7e0adbbb1f Tested landing page
WIP: happy login scenario
2022-08-30 17:11:18 +01:00
Marcial Rosales 84e9f653e8 WIP Using PageObject pattern to write tests 2022-08-30 17:11:18 +01:00
Marcial Rosales 5fc370c88f WIP only landing.js working 2022-08-30 17:11:18 +01:00
Marcial Rosales cc25fdee87 WIP running selenium tests from docker
There is still an issue running the tests in docker
2022-08-30 17:11:18 +01:00
Marcial Rosales 7fb967f572 Run tests 2022-08-30 17:11:17 +01:00
Marcial Rosales 4d098fcfbf Complete login and logout flows 2022-08-30 17:11:17 +01:00
Marcial Rosales 05d13f99b0 Auto approve scopes
This is to avoid the authorization page in
UAA. It is not clear how to remove approvals therefore
once they are approved the user has the scopes approved
until they expire. If the user has some approved scopes,
they will not be prompted to approve them until they
expire hence the ui flow differs when the user has to
approve scopes and when not.
2022-08-30 17:11:17 +01:00
Marcial Rosales bcb26a20fc Testing happy login for oauth 2022-08-30 17:11:17 +01:00
Marcial Rosales b555ef6d66 Explain what it is needed to run tests 2022-08-30 17:11:17 +01:00
Marcial Rosales dd7ee46e07 Explain how automated testing works 2022-08-30 17:11:17 +01:00
Marcial Rosales 14b5c67b53 Test home page with oauth2 and without token 2022-08-30 17:11:17 +01:00