Commit Graph

59481 Commits

Author SHA1 Message Date
Marcial Rosales efcbde4f34 Add missing id tag 2025-05-29 09:27:26 +02:00
Marcial Rosales c73fdf79ff Remove log statement 2025-05-29 09:02:29 +02:00
Marcial Rosales 1d942027a9 Add system test for variable expansion 2025-05-29 09:02:29 +02:00
Marcial Rosales 0023ba2a01 Add var expansion to vhost and resource access 2025-05-29 09:02:29 +02:00
Michael Klishin b09e2f2dad
Merge pull request #13970 from rabbitmq/stream-plugin-emit-consumer-deleted
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Has been cancelled Details
Always emit consumer_deleted event when stream consumer goes away
2025-05-29 10:24:18 +04:00
Michael Klishin 3c4fc996e4
Merge pull request #13972 from rabbitmq/md/clear-auth-session-on-expiry
Clear management auth storage when redirecting to login
2025-05-29 09:57:24 +04:00
Michael Klishin e0a79f3f1e
Merge pull request #13963 from rabbitmq/selenium-use-var-over-tmp
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Blocked by required conditions Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Waiting to run Details
Selenium: minor refactoring
2025-05-28 22:13:21 +04:00
Michael Davis 2a1b65df17
Clear management auth storage when redirecting to login
This branch redirects the client to the login page when the cookie
expires. To complete the logout process we should also clear any auth
data stored in local storage: local storage has no built-in expiration
mechanism.

To test this locally you can use `make run-broker`, set the session
timeout to one minute for quick testing:

    application:set_env(rabbitmq_management, login_session_timeout, 1)

go to the management page (`http://localhost:15672/#/`), login with
default credentials and wait a minute. After this change the local
storage only contains info like `rabbitmq.vhost` and `rabbitmq.version`.
2025-05-28 12:42:53 -04:00
Arnaud Cogoluègnes 52c89ab7a3
Always emit consumer_deleted event when stream consumer goes away
Not only when it is removed explicitly by the client. This is necessary
to make sure the consumer record is removed from the management ETS
tables (consumer_stats) and to avoid ghost consumers.

For other protocols like AMQP 091, the consumer_status ETS table is
cleaned up when a channel goes down, but there is no channel concept in
the stream protocol.

This is not consistent with other protocols or queue implementations
(which emits the event only on explicit consumer cancellation)
but is necessary to clean up stats correctly.

References #13092
2025-05-28 17:10:50 +02:00
Marcial Rosales 94cba43e75 Relocate temp folder from /tmp to /var 2025-05-28 13:01:46 +02:00
Michael Klishin 924b451b73
Merge pull request #13964 from rabbitmq/ik-qq-tests-reorg
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Blocked by required conditions Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Waiting to run Details
Refactor QQ tests slightly so useful parts are accessible elsewhere
2025-05-28 13:30:58 +04:00
Michael Klishin 49341b71ec
Merge pull request #13950 from rabbitmq/fix-13045
Selenium: Verify consumer state when using SAC
2025-05-28 11:52:12 +04:00
Iliia Khaprov 0c01e0b30f
Refactor rabbit/test/queue_utils to support other Ra-based queue types 2025-05-27 18:07:44 +02:00
Iliia Khaprov 76a5531d8c
Move test_utils.erl from rabbit to rabbitmq_ct_helpers
fake_pid function is useful for other plugins
2025-05-27 18:06:59 +02:00
Marcial Rosales 09fc5357a7 Fix credentials used to create vhost 2025-05-27 16:05:55 +02:00
Marcial Rosales a92242918b Stop page refresh
To prevent state element exception
2025-05-27 15:41:30 +02:00
Marcial Rosales 98061c8e96 Fix typo 2025-05-27 15:19:13 +02:00
Michael Klishin 7b1691dc67
Merge pull request #13921 from rabbitmq/split-federation
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Split federation plugin
2025-05-27 16:03:15 +04:00
Marcial Rosales 23eb9854ee Test SAC with consumres w/o priorities 2025-05-27 14:00:18 +02:00
Marcial Rosales 870c66734b Use different way to parse tables for consuers 2025-05-27 14:00:18 +02:00
Marcial Rosales 8960d19492 Apply patch that addresses the issue with SAC
And improve how to parse a html table to
extract its rows
2025-05-27 14:00:18 +02:00
Marcial Rosales d2767983dc Reproduce issue 2025-05-27 14:00:18 +02:00
Marcial Rosales 4fdbcb33e1 Add amqplib
Required to subscribe with a priority in the arguments
which is only possible in AMQP 0.9.1
2025-05-27 14:00:18 +02:00
Marcial Rosales 586a946213 Remove log statements 2025-05-27 14:00:18 +02:00
Marcial Rosales 70ec8dffdd Selenium test with SAC 2025-05-27 14:00:18 +02:00
Diana Parra Corbacho 4f86ae00ad Skip exchange federation testscase in mixed-version 2025-05-27 07:55:30 +02:00
Diana Parra Corbacho 597fb419f3 Update rabbitmq_cli federation test dependency 2025-05-27 07:55:29 +02:00
Diana Parra Corbacho 1616b7f295 Update Github workflows with new federation plugins 2025-05-27 07:55:29 +02:00
Diana Parra Corbacho a501a2c795 Make rabbitmq_federation a no-op plugin 2025-05-27 07:55:29 +02:00
Diana Parra Corbacho 74dfa06c29 Split rabbitmq_federation: rabbitmq_queue_federation, rabbitmq_exchange_federation and rabbitmq_federation_common 2025-05-27 07:55:29 +02:00
Michael Klishin 4c34155886
Merge pull request #13947 from rabbitmq/ik-rabbit_ct_hook
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Run rabbit_ct_hook before cth_styledout so that removing default logger handler works
2025-05-26 21:03:06 +04:00
Iliia Khaprov 6b528e2caf
Replace ct:pal with ct:log in select places 2025-05-26 16:57:41 +02:00
Iliia Khaprov 8512a4459b
Hardcode rabbit_ct_hook and cth_styledout inside our ct_master_fork.
Helps cleaning-up/coloring stdout for parallel targets
TODO: there are obvious races for different nodes outputs
In the next iteration I hope to implement cursor tracking for each node
2025-05-26 16:57:40 +02:00
Iliia Khaprov 8dcad8a4fd
Run rabbit_ct_hook for management, and mqtt 2025-05-26 16:57:40 +02:00
Iliia Khaprov - VMware by Broadcom 5ed2fbe2b6
Merge pull request #13955 from rabbitmq/ik-qq-reconciliation-followup
QQ Reconciliator - implement handle_info/2 for the event subscriber
2025-05-26 16:09:02 +02:00
Iliia Khaprov 458dc89614
QQ Reconciliator - implement handle_info/2 for the event subscriber to avoid warnings 2025-05-26 14:43:32 +02:00
Michael Klishin 7289487702
Merge pull request #13946 from rabbitmq/ik-qq-reconiliation
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
QQ member reconciliation: switch to gen_event events instead of hardcoded triggers
2025-05-26 08:13:28 +04:00
Iliia Khaprov 77477dee6e
Run rabbit_ct_hook before cth_styledout, so that default logger handler properly removed
As a follow-up to my GChat thread about removing default logger handler to clean CT stdout, I was looking at
injecting logger config with undefined default handler to ct_run. It is possible but breaks cth_styledout - no
nice green things whatsoever. Then I found rabbit_ct_hook which calls redirect_logger_to_ct_logs which in turn
calls logger:remove_handler(default) apparently with zero effect! To cut story short - turned out rabbit_ct_hook
must run before cth_styledout for remove_handler line to have any effect
2025-05-25 18:59:40 +02:00
Michael Klishin a71d0f93d0
More test comment wording 2025-05-25 14:44:03 +04:00
Michael Klishin 940e58c051
Test comment wording 2025-05-25 14:42:01 +04:00
Michael Klishin b527fc31ed
Merge pull request #13942 from rabbitmq/dependabot/maven/deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/main/prod-deps-801db9dc1e
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Has been cancelled Details
[skip ci] Bump the prod-deps group across 2 directories with 1 update
2025-05-25 13:29:59 +04:00
Iliia Khaprov 1e4460459a
QQ Reconciliator - add comments to SUITE, add new group for explicit triggers tests 2025-05-24 23:56:11 +02:00
Iliia Khaprov d47d7f9160
QQ Reconciliator - switch to Logger 2025-05-24 23:34:46 +02:00
Iliia Khaprov 8ea452d54f
QQ Reconciliator - move hardcoded triggers to events subscription 2025-05-24 23:34:46 +02:00
dependabot[bot] 395d3fd04c
[skip ci] Bump the prod-deps group across 2 directories with 1 update
Bumps the prod-deps group with 1 update in the /deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot directory: [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot).
Bumps the prod-deps group with 1 update in the /deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot_kotlin directory: [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot).


Updates `org.springframework.boot:spring-boot-starter-parent` from 3.4.5 to 3.5.0
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.4.5...v3.5.0)

Updates `org.springframework.boot:spring-boot-starter-parent` from 3.4.5 to 3.5.0
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.4.5...v3.5.0)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-parent
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-deps
- dependency-name: org.springframework.boot:spring-boot-starter-parent
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-24 18:14:17 +00:00
Michael Klishin 5f1bef6141
Merge pull request #13548 from rabbitmq/rabbitmq-server-13175-mk
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Has been cancelled Details
Test (make) / Build and Xref (1.17, 26) (push) Has been cancelled Details
Test (make) / Build and Xref (1.17, 27) (push) Has been cancelled Details
Test (make) / Test (1.17, 27, khepri) (push) Has been cancelled Details
Test (make) / Test (1.17, 27, mnesia) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Has been cancelled Details
Test (make) / Type check (1.17, 27) (push) Has been cancelled Details
For 4.1.x, by @aaron-seo: introduce a command that would force QQs to take a checkpoint and truncate its segments
2025-05-23 07:11:40 +04:00
Michael Klishin bf8fd69ba4
Merge pull request #13932 from cloudamqp/cq_index_v2_bounds_test
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Add tests for rabbit_classic_queue_index_v2:bounds/2
2025-05-23 06:05:59 +04:00
Michael Klishin 87b966ef0c
Merge pull request #13930 from rabbitmq/ik-observer-cli-plugins-as-boot-steps
Add CQ and QQ Observer CLI plugins from boot steps
2025-05-23 05:07:03 +04:00
Michael Klishin 510d2ca0ab
Merge pull request #13931 from rabbitmq/fix-selenium-issue
Fix selenium issue closing popup warning dialog since recent upgrade
2025-05-23 03:22:44 +04:00
Diana Parra Corbacho 0c2b6a1cb3 Force checkpoint in all members 2025-05-22 15:52:41 +02:00