Commit Graph

763 Commits

Author SHA1 Message Date
Michael Klishin 11760f95bd
Don't run #3319 assertions in mixed version clusters 2021-08-19 23:03:09 +03:00
Michael Klishin f5fe419892
Make PUT /api/vhosts/{name} update tags and/or description 2021-08-18 19:07:25 +03:00
Iliia Khaprov 53d67fda1f
Merge pull request #3205 from rabbitmq/send-www-authenticate-when-basic-auth-present
Send www-authenticate header when basic auth present but it's wrong
2021-07-21 11:19:22 +02:00
Philip Kuryloski 5bc25fb2ff Fix accidental test case skip when not using mixed versions 2021-07-21 08:35:00 +02:00
Ilya Khaprov 39693cfb07
Send www-authenticate header when basic auth present but it's wrong
close #3181
2021-07-20 21:44:36 +02:00
Philip Kuryloski d6399bbb5b
Mixed version testing in bazel (#3200)
Unlike with gnu make, mixed version testing with bazel uses a package-generic-unix for the secondary umbrella rather than the source. This brings the benefit of being able to mixed version test releases built with older erlang versions (even though all nodes will run under the single version given to bazel)

This introduces new test labels, adding a `-mixed` suffix for every existing test. They can be skipped if necessary with `--test_tag_filters` (see the github actions workflow for an example)

As part of the change, it is now possible to run an old release of rabbit with rabbitmq_run rule, such as:

`bazel run @rabbitmq-server-generic-unix-3.8.17//:rabbitmq-run run-broker`
2021-07-19 14:33:25 +02:00
Philip Kuryloski 2fc112e29c Correct some test cleanup in rabbit_mgmt_http_SUITE 2021-07-07 18:05:55 +02:00
Michael Klishin 2826225cde
Drive-by change: speed up two tests in rabbit_mgmt_rabbitmqadmin_SUITE
This makes sure rabbitmqadmin suite doesn't spend minutes resolving
a non-existent hostname in environments with certain DNS client
settings.
2021-06-13 12:32:03 +08:00
Michael Klishin 300196ea4e
Second attempt at upgrading JSX to 3.1 2021-06-12 08:03:18 +08:00
dcorbacho 930c78795c Rename consumer_utilisation to consumer_capacity
Capacity is 100% when there are online consumers and no messages
2021-02-24 16:20:52 +01:00
Michael Klishin 52479099ec
Bump (c) year 2021-01-22 09:00:14 +03:00
Michael Klishin 10ced3cbd4
Adapt HTTP API test suite expectations 2020-12-10 15:27:17 +03:00
Luke Bakken 55c3f3670f wait_for_confirms timeout is in seconds
References rabbitmq/rabbitmq-erlang-client#138

cc @dumbbell
2020-11-02 11:20:15 -08:00
Jean-Sébastien Pédron ac303a2c74 rabbit_mgmt_http_health_checks_SUITE: Remove trailing whitespaces 2020-10-22 15:00:04 +02:00
Jean-Sébastien Pédron 6864929fe8 rabbit_mgmt_http_health_checks_SUITE: Don't import unused functions 2020-10-22 14:59:41 +02:00
Jean-Sébastien Pédron d39b691216 rabbit_mgmt_http_health_checks_SUITE: Pay attention to rabbit_ct_broker_helpers:enable_feature_flag() return value
If it returns `{skip, _}`, we must skip the test group.
2020-10-22 14:58:47 +02:00
Michael Klishin 22f447157f Include top-level port property for TLS listeners
This value is used at listener registration and will show up in
`rabbitmq-diagnostics listeners' output.

Closes #857
2020-10-19 13:48:21 +03:00
Michael Klishin c2350b1f59 Update tests to not use foobar x-arguments
Queues now validate x-arguments in addition to policy definitions.
2020-10-19 12:58:38 +03:00
Michael Klishin 07ec5b6fc3 Merge pull request #856 from rabbitmq/rabbitmq-management-855
Take error scenarios into account in aliveness test
2020-10-16 05:43:17 +03:00
Michael Klishin b6f775fa24 /api/auth-attempts/ => /api/auth/attempts 2020-10-14 08:03:17 +03:00
dcorbacho db637b6d56 Split get auth attempts API into global counters and detailed by source 2020-10-14 05:18:49 +03:00
dcorbacho 86bc48fc81 Query and rest auth attempt metrics 2020-10-14 05:18:48 +03:00
Luke Bakken a2b0df6524 Use -include directive when appropriate 2020-10-13 12:00:33 -07:00
Michael Klishin f3b4caa996 Finish cluster-wide and local alarm health check tests 2020-10-07 22:14:49 +03:00
dcorbacho 9d04d95250 Test health checks 2020-10-07 15:27:00 +01:00
Michael Klishin c2e7d0e04b HTTP API health check test suite WIP 2020-10-07 12:40:08 +03:00
dcorbacho ad805eb091 Introduce health checks
GET /api/health/checks/certificate-expiration
GET /api/health/checks/port-listener
GET /api/health/checks/protocol-listener
GET /api/health/checks/virtual-hosts
GET /api/health/checks/node-is-mirror-sync-critical
GET /api/health/checks/node-is-quorum-critical
2020-10-06 12:11:23 +01:00
kjnilsson a8947ac6f0 Uncomment some tests 2020-09-30 14:29:01 +01:00
dcorbacho 0686190f15 Stream queue
[#171206871]
2020-09-30 14:29:01 +01:00
Michael Klishin 641bc625b2 More test massaging 2020-09-24 14:18:18 +03:00
Michael Klishin ca84821a4c Regular HTTP API suite: bring back samples test
Per discussion with @dcorbacho
2020-09-24 13:59:52 +03:00
Michael Klishin 502c74579e Test suite massaging to reduce flakiness of some tests
Some tests are timing-sensitive in nature. Given enough cores,
the assumptions in some of them are no longer true.

In addition, some sample test assertions only make sense when
stats collection is disabled; removed them from the "regular" HTTP
API suite per discussion with @dcorbacho.

While at it, remove some overly opinionated assertions
and a test for the deprecated One True Health Check™.
2020-09-24 12:59:43 +03:00
Michael Klishin 46f94711cb Respond with a Bad Request when client provides double-encoded JSON
instead of a 500.

Closes #839.
2020-09-23 15:23:26 -07:00
Michael Klishin ba26c7721f Extract user limits FF tests into its own group
So that they are easy to skip in mixed-version clusters where
this feature flag can't be guaranteed to be available.

References #rabbitmq/rabbitmq-server#2380.
2020-09-03 06:05:15 +03:00
Michael Klishin 3bceaad700 Use await_condition in this timing-sensitive test 2020-09-02 17:44:23 +03:00
Michael Klishin b7de77e21d Wording 2020-08-31 09:05:32 +03:00
Michael Klishin a647cc4826 Naming and cosmetics 2020-08-31 09:05:32 +03:00
Michael Klishin 639fb6823e Avoid using deprecated http_uri:encode/1
It will be removed in Erlang 25.
2020-08-31 09:05:32 +03:00
Ayanda-D 6018abed6a Per user-limits tests 2020-08-31 09:02:46 +03:00
dcorbacho 449414a7e9 Switch to Mozilla Public License 2.0 (MPL 2.0) 2020-07-13 16:45:00 +01:00
Jean-Sébastien Pédron 6e563037a0 Change copyright holder from Pivotal to VMware 2020-06-17 14:06:10 +02:00
Michael Klishin c52f34e989 Make it possible to configure db cache multiplier via rabbitmq.conf
Closes rabbitmq/rabbitmq-management#821.
2020-06-10 11:30:43 +03:00
Philip Kuryloski 968c644401 Dedupe calls to rabbit_mgmt_test_util:reset_management_setting/1
It was called as a setup step in init_per_group, but also in every init_per_testcase.
2020-05-11 16:56:57 +02:00
Jean-Sébastien Pédron da1f4f6795 rabbit_mgmt_rabbitmqadmin_SUITE: Reset $HOME in end_per_testcase
It polluted the common_test node and caused inter-node communication
failures: a new `.erlang.cookie` file was re-generated in the overriden
$HOME directory, and this new cookie was used by RabbitMQ nodes started
after this testsuite.
2020-05-05 17:39:43 +02:00
Michael Klishin ce6fbba80d rabbitmqadmin: make --cli-switches take precedence over config file values
With most CLI tools, command line arguments
take precedence over values in the configuration file.

This was not the case in rabbitmqadmin, and very likely
unintentionally so, at least I could not find
any evidence of the contrary.

There was a test case that implicitly depended
on this behavior. Again, no indication of this
being an intentional design choice.

While this can be a breaking change, most
users either use CLI flags or the config file;
this is why this behavior has gone unnoticed
for at least 8 years. We therefore treat
this change as low risk and worth
shipping e.g. in a patch release.
rabbitmqadmin is installed manually and
therefore won't be replaced during a node
upgrade anyway. Operators would
have to opt-in.

Closes #804.
2020-04-18 21:29:33 +03:00
Michael Klishin 67f80ce900 One more test 2020-04-15 19:35:13 +03:00
Michael Klishin 8fe756d9f6 Remove a function that's no longer used 2020-04-15 18:39:44 +03:00
Michael Klishin 584b06069c Simplify and adapt listener_config_SUITE
Part of #800
2020-04-15 18:30:35 +03:00
Michael Klishin d4f7f85fef Squash a compilation warning
(cherry picked from commit 1ec6f64658)
2020-04-15 15:29:15 +03:00
Michael Klishin 3de47a2f2b Use rabbit_ct_helpers:await_condition/2 to detect rate changes 2020-04-10 11:07:12 +03:00