Commit Graph

122 Commits

Author SHA1 Message Date
Marcial Rosales 44dd282ed4 Eliminate flake around listing live amqp connections 2025-05-21 15:15:35 +02:00
Marcial Rosales 6578c83a0e Bump up chrome driver
This is needed when running tests interactively.
The OS updates the local chrome binary and this
node.js library has to be upgraded too.
2025-05-21 14:10:30 +02:00
Marcial Rosales f79c7229d5 Wait until page is fully loaded 2025-05-09 14:27:32 +02:00
Marcial Rosales 81cf5f2e46 Exclude other_rabbitmq when running start-others. And fix some issues 2025-05-08 18:29:54 +02:00
Marcial Rosales ea0dd8beb8 Add functions to mgt-api for selenium 2025-05-07 17:38:31 +02:00
Marcial Rosales 7653b6522a Fix test
it was necessary to add a queue first before checking which
columns are available
2025-05-03 11:27:05 +02:00
Marcial Rosales fa315e4d86 Fix location of definitions file 2025-05-03 10:56:05 +02:00
Marcial Rosales 64f7aa2c95 Minor test chnage 2025-05-02 18:08:09 +02:00
Marcial Rosales 438b77443c Modify scripts so that it is possible to start 2 rabbitmqs 2025-05-02 17:29:42 +02:00
Marcial Rosales fb02466b20 Test columns for queues and exchanges 2025-05-02 16:25:01 +02:00
Marcial Rosales ba0510f85d Test columns available for queues and stream 2025-05-02 16:12:32 +02:00
Marcial Rosales 175abbff87 Test virtual hosts and select tags column 2025-05-02 15:47:32 +02:00
Marcial Rosales ea66a25dfa Testing new vhost has the tag 2025-05-02 14:56:49 +02:00
Marcial Rosales 7003fefa44 Select columns of vhosts 2025-05-02 13:05:25 +02:00
Marcial Rosales 1ab81f7901 Select tags column on vhosts table 2025-04-30 18:22:20 +02:00
Marcial Rosales 01ca72edc0 Test adding vhost 2025-04-30 18:08:58 +02:00
Marcial Rosales 0cb63bb544 Add queues and streams page and test suite 2025-04-25 17:04:40 +02:00
Marcial Rosales 0b1a4d283b Remove commented out exchange 2025-04-25 16:34:09 +02:00
Marcial Rosales 9e69496c85 Remove event exchange 2025-04-25 14:23:07 +02:00
Marcial Rosales b6d2ff85b2 Parse multi-line enabled_plugins
Use only needed required plugins for basic auth suite
2025-04-25 14:23:07 +02:00
Marcial Rosales ceb7b244f2 Convert multiline enabled_plugins to single value 2025-04-25 14:23:07 +02:00
Marcial Rosales 6262c849a2 Use RABBITMQ_ENABLED_PLUGINS instead of RABBITMQ_ENABLED_PLUGINS_FILE
gmake was ignoring the former env var.
2025-04-25 14:23:07 +02:00
Marcial Rosales 06bd98ddd1 Renconcile changes from tanzu rabbitmq 2025-04-08 11:06:50 +02:00
Marcial Rosales 03fae668e0 Test management custom path on each commit to PRs 2025-04-01 17:01:09 +02:00
Marcial Rosales 8dfcfa61e4 Use relative path for the path linked to the cookie
used by mangement ui oauth logic to store the
token until it is moved onto the local storage
2025-04-01 14:02:51 +02:00
Michael Klishin 3756775ebe
Revert "Redirect to end_session_endpoint for idp_initiated logon when it is configured" 2025-03-28 02:31:09 -04:00
Marcial Rosales 46808c3ea6
Test with oauth2-proxy 2025-03-27 19:01:13 -04:00
Michael Klishin ab8799a739
Redirect to end_session_endpoint for idp-initiated logon
Conflicts:
	selenium/bin/components/fakeportal
2025-03-27 19:01:01 -04:00
Michael Klishin ea5345e045
Merge pull request #13476 from rabbitmq/mgt-oauth-login-without-redirect
Improve oauth2 idp-initiated login
2025-03-12 15:16:41 -04:00
Marcial Rosales 69b54869c9 Use POST+Redirect_with_cookie 2025-03-12 16:48:02 +01:00
Marcial Rosales e6fe38b504 Fix issue thanks to @zerpet 2025-03-12 13:12:26 +01:00
Marcial Rosales f9eec1ea82 Add initOnly function
For scenarios where rabbitmq needs
the certificates of an idp but the
idp has not been started yet and
hence the cert has not been generated
With this function, the idp generates
its certificates without starting
2025-03-12 11:54:09 +01:00
Marcial Rosales 8b0589bd5c Add missing function that
checks if element is not visible
2025-03-12 10:32:04 +01:00
Michael Klishin 9dd6fa7fdd
Merge pull request #13408 from rabbitmq/mqtt-optional-password-cred
Do not propagate `none` password to http backend
2025-02-25 13:27:10 -05:00
Aitor Perez a5b8d194b8
Update selenium README
[skip ci]
2025-02-25 16:30:02 +00:00
Aitor Perez ef8b4fc767
Make Selenium image configurable
In certain environments, we may want to customise the docker image e.g.
to use a proxy to avoid docker hub rate limiting. The default behaviour
remains unchanged.

The `if` logic was broken because `uname -a` returns the entire uname,
including OS, Kernel version, machine type and what not. The string
always starts with the OS i.e. Linux or Darwin, therefore, the matching
for `arm*` was always false; therefore, it was always defaulting to the
`else` image, which happens to be multi-arch. However, it was using
`seleniarm`, which is a community driven effort, not the official
Selenium account.

In the official OSS image, version 123.0 is too old. The oldest
available is 127.0. This commit bumps to the latest available. We could
consider depending on version `4`. Version `4` refers to Selenium
version, whilst version 123.0/133.0 refer to the browser version.
2025-02-25 14:00:41 +00:00
Marcial Rosales b09bfb25b6 Do not propagate none password for http auth backend 2025-02-25 12:50:58 +01:00
Aitor Perez c2b9fece78
Selenium: make conf_dir configurable
CI can configure this variable to use a dynamic variable e.g. `${{
worker.temp }}`
2025-02-25 11:23:45 +00:00
Marcial Rosales c3da54c3ea Remove duplicate flag 2025-02-21 11:53:27 +01:00
Marcial Rosales 94c28d642b Configure location of mocha-test dockerfile 2025-02-21 11:33:26 +01:00
Marcial Rosales 2ab890f344
Fix flake on rabbitmq_mqtt auth_SUITE (#13180)
* Separate invalid client test from the valid one

* Apply same changes from pr #13197

* Deal with stalereferences caused by timing issues

looking up objects in the DOM

* Unlink before assertion
2025-02-12 17:15:51 +01:00
Marcial Rosales 1d8b28d10e Clean up 2024-11-28 16:56:12 +01:00
Marcial Rosales 0f9a7cfb9c Fix queue name 2024-11-28 16:54:19 +01:00
Marcial Rosales 40d150fb9d Fix bug building connection options for amqps 2024-11-28 16:30:50 +01:00
Marcial Rosales 31f0a5487f Fix issue in amqp10 2024-11-28 16:18:38 +01:00
Marcial Rosales 713c7c9a53 Fix queue name used in amqp10 2024-11-28 16:02:23 +01:00
Marcial Rosales 0ba194ae53 Replace java amqp10 with javascript one 2024-11-27 10:40:23 +01:00
Marcial Rosales 106012d57f Add extra logging
To capture where the flake occurs
2024-11-25 14:46:09 +01:00
Marcial Rosales 751dd41eb2 Fix issue 2024-11-25 14:46:09 +01:00
Marcial Rosales e5bcf7f327
Remove extra delay in AMQP 1.0 selenium round trip test 2024-11-22 11:17:51 -05:00
Marcial Rosales 50a316ac1e Add missing vhost 2024-11-21 17:07:27 +01:00
Marcial Rosales ce760c688b Insert control-cache headers to every resource and reload index.html 2024-11-21 16:47:48 +01:00
Marcial Rosales a8e7d69ed0 Clean up 2024-11-18 13:45:07 +01:00
Marcial Rosales 0bc9a49b24 Test live data 2024-11-18 13:22:34 +01:00
Marcial Rosales 310b7e91e6 Include other vhost 2024-11-18 12:44:17 +01:00
Marcial Rosales b46a7ed684 Test session and links details 2024-11-18 11:47:44 +01:00
Marcial Rosales 5b845a6474 Extract table of sessions and links 2024-11-18 11:47:44 +01:00
Marcial Rosales 86bf3e108f Navigate from connections to connection page 2024-11-18 11:47:44 +01:00
Marcial Rosales 88f1028333 Use monitoring-only user to list connections 2024-11-18 11:47:44 +01:00
Marcial Rosales 6fac16c648 Read RABBITMQ_CERTS env var only when tls is in use 2024-11-18 11:47:44 +01:00
Marcial Rosales b864957d94 Upgrade dependencies for chrome and selenium 2024-11-18 11:47:44 +01:00
Marcial Rosales 0b9ab515ac Add suite 2024-11-18 11:47:44 +01:00
Marcial Rosales dbc398b705 WIP Test amqp10 connection information in mangement ui 2024-11-18 11:47:44 +01:00
Marcial Rosales 6bf27a212f Use tls in oauth providers and rabbitmq 2024-11-14 19:39:06 +01:00
Marcial Rosales 4b7f8b28e2 Fix schema mapping issues
And location of cert files when running
multioauth test suites locally
2024-10-08 08:17:48 +02:00
Marcial Rosales 6d0e195957 Fix schema issues
And fix selenium script to run
rabbitrmq locally
2024-10-08 08:17:48 +02:00
Marcial Rosales f61ba39b00 Add explicitly sub preferred_username 2024-10-08 08:17:48 +02:00
Marcial Rosales 3cf5b7e03e Reduce verbosity of some log statements 2024-10-08 08:17:47 +02:00
Marcial Rosales 4da45996ca Minor refactor
Improve logging
Fix an issue running selenium tests locally
WIP modify schema to configure queryParameters for
oauth2 endpoints
2024-10-08 08:17:47 +02:00
dependabot[bot] dfabf97bf7
build(deps): bump ch.qos.logback:logback-classic
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.2.11 to 1.2.13.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.2.11...v_1.2.13)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-06 17:17:09 +00:00
Marcial Rosales 94f7540b9c Minor doc correction 2024-09-04 16:10:15 +01:00
Marcial Rosales a1206dc801 Move selenium to the root of the repo 2024-09-04 14:59:58 +01:00