Commit Graph

64 Commits

Author SHA1 Message Date
Marcial Rosales 414ad58de5
Use correct user to authenticate
depending on the backend we want to
exercise
2024-02-29 15:13:58 -05:00
Marcial Rosales 6776594328
Clean up 2024-02-29 15:13:56 -05:00
Marcial Rosales bb23719f74
Propagate all credentials to http backend 2024-02-29 15:13:56 -05:00
Emerson Almeida 9c87e1902d remove test to idp-initiated 2023-11-01 10:23:02 -03:00
Emerson Almeida 64ded4632d make the baseUrl equal when run with prefix 2023-11-01 09:52:27 -03:00
Duke ca5e7e34d7
Merge branch 'main' into improve-login-exp 2023-10-31 13:35:20 -03:00
Marcial Rosales 7c58649942 Reduce by 5 seconds every oauth2 test
clickToLogin sbould only check that the
login button exists and not that the
warning messages is not visible
2023-10-31 16:31:37 +01:00
Duke 9060941fc2
Remove overview var from redirection-after-login.js 2023-10-30 11:51:59 -03:00
Duke 0e757f394a
remove unused overview var 2023-10-30 11:50:23 -03:00
Emerson Almeida 7525ccc236 add tests 2023-10-29 18:34:42 -03:00
Marcial Rosales 1e74490412 Fix wrong config 2023-08-14 12:15:51 +01:00
Marcial Rosales dbffccba9d Fix #9043 2023-08-14 11:51:46 +01:00
Marcial Rosales 77ee572467 Fixes #8547 2023-06-14 09:39:03 +02:00
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
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 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 bb9d7a134e Refactor how selenium suites are run 2022-10-03 13:15:57 +02: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 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
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