Michael Klishin
f54b2906bd
More Selenium suite updates
2023-06-10 23:21:32 +04:00
Michael Klishin
f4aed7a55e
Make sure that nav element ids follow a reasonable convention
...
Instead of using the label, use a snake-case value
without any spaces.
While at it, update Selenium/WebDriver test suites.
2023-06-10 19:38:36 +04:00
Marcial Rosales
9736fb6c46
Fix mgt-only exchanges test
2023-05-19 21:08:44 +02:00
Marcial Rosales
e155da86e8
Fix test cases
2023-05-19 20:32:44 +02:00
Marcial Rosales
79c206d339
Test only admin users can edit limits
2023-05-19 17:53:01 +02:00
Marcial Rosales
93907b38a1
Look up for elements rather than clicking on them
...
This is because when we clicked on a menu option
there are html content refreshed which confuses
the webdriver
2023-05-19 17:01:15 +02:00
Marcial Rosales
67e04259a0
Test various user tags without vhost permissions
2023-05-19 17:01:15 +02:00
Marcial Rosales
1c1e4515f7
Deprecate uaa settings from management plugin
2023-04-13 11:22:05 +02:00
Marcial Rosales
829d9d9428
Read JWT token from Authorization Header
2023-04-04 12:00:08 +04:00
Marcial Rosales
67b952c28c
Refactor selenium tests
2023-03-21 12:39:28 +01:00
Marcial Rosales
42b821f0e9
Add missing pem file
2023-02-28 14:10:00 +01:00
Marcial Rosales
efb1b5bd10
Fix 2549
...
Allow list of preferred_username_claims in cuttlefish
config style.
Use new config style on two selenium test suites
Test oauth2 backend's config schema and oauth2 management
config schema
2023-02-28 10:38:28 +01:00
Marcial Rosales
20269bf222
Fix issue #7369
...
Depending on `disable_stats` value
search for detailed exchange details or
basic details
2023-02-21 13:11:45 +01:00
Marcial Rosales
89ee77e5ec
Improve how to look for elements and wait for them
2023-02-21 13:07:37 +01:00
Marcial Rosales
9ab7dca650
Fix issue 7301
2023-02-15 14:29:55 +01:00
Marcial Rosales
166faa3629
Test when there are zero limits
2023-02-01 18:13:57 +01:00
Marcial Rosales
5ad72497a3
Test display limits when there are none
2023-02-01 17:42:38 +01:00
Iliia Khaprov
e4f1486d7a
Fix Users filtering in Management UI.
...
close #4908
2023-01-26 16:28:47 +01:00
Alexey Lebedeff
6517c7fe6c
Bump node versions for selenium tests
...
Search for `Error: Cannot find module 'node:events'` in internet
suggests using at least node 16.6.
2023-01-23 22:47:50 +01:00
Marcial Rosales
07fc6d1313
Validate imported user from file
2023-01-03 07:09:05 -05:00
Marcial Rosales
6e84444059
Test token refresh
...
And enable hard session timeout which was
disabled by mistake when moved credentials
from cookies to local storage
2023-01-03 07:09:04 -05:00
Marcial Rosales
f6fad5c32e
Rename section otherwise
...
clicking on any area triggered
the download of the definitions
2023-01-03 07:09:04 -05:00
Marcial Rosales
4b1e30640d
Fix import/export test cases
...
When running test remotely, the import
definition file must be transfered from
the test container onto the selenium container
wehre the browser runs
2023-01-03 07:09:04 -05:00
Marcial Rosales
58be01f1d1
Use only token in authorization header to
...
import and export definitions
2023-01-03 07:09:04 -05:00
Marcial Rosales
36728042ec
Test with selenium export/import definitions
2023-01-03 07:09:03 -05:00
Marcial Rosales
bf172af236
Do not use cookies to store basic auth
...
Use window.localStorage. If it is disabled
Management UI should stop working rather than
falling back to cookies
2023-01-03 07:09:03 -05:00
Marcial Rosales
8f1ddb2786
Test basic-auth behind proxy
2023-01-03 07:09:03 -05:00
Marcial Rosales
54acf88210
Support path_prefix in /login url
...
For OAuth2 idp initiated logon
2023-01-03 07:09:02 -05:00
Marcial Rosales
9354397cbf
Support Idp initiated logon in mgt ui with Oauth
...
Configure preferred username from a token
Make client_secret optional
2023-01-03 07:09:00 -05:00
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