Commit Graph

423 Commits

Author SHA1 Message Date
Luke Bakken 6de0656fce
Add redbug library
`redbug` compliments `recon` well and has a better tracing interface IMHO.
2022-01-11 16:22:05 -08:00
Philip Kuryloski 3b48ebabf7 Fixup the "Failed to symlink private_log directory." error in bazel
While it doesn't cause any tests to fail, it's confusing to see it in
the logs
2021-11-16 13:25:53 +01:00
Philip Kuryloski 1f7db0fa35 Update rabbit_ct_broker_helpers:force_vhost_failure/4 for erpc
https://www.erlang.org/doc/man/erpc.html#call-5
2021-11-15 10:53:10 +01:00
Philip Kuryloski 76287fb30c format with bazel files with buildifier 2021-11-02 18:24:26 +01:00
Philip Kuryloski 8c0eece3cd Adjustments for the latest bazel-erlang 2021-11-02 16:24:26 +01:00
Philip Kuryloski 862917955b Adopt new default branch for ra 2021-10-06 13:36:32 +02:00
Alexey Lebedeff 46df4f1689 Update makefiles/bazel to reflect CT helpers repo merge-in 2021-09-30 10:48:11 +02:00
Alexey Lebedeff efce6b9f0d Allocate tcp port for prometheus plugin 2021-09-22 09:13:33 +02:00
Philip Kuryloski efe8da4d41 Allow the rabbit_ct_config_schema helper to work on v3.8 & v3.9
by checking for the presence of lager on the code path as a marker
distinguising rabbit versions
2021-09-07 14:47:51 +02:00
Alexey Lebedeff 1e8ba5bffc Use elixir itself to find its lib directory
This removes all the guesswork from the process. E.g. the old version
was not working with elixir from nixpkgs/NixOS.
2021-08-11 15:41:00 +02:00
Philip Kuryloski 6fec1faea5 Additional rpc -> erpc updates 2021-07-21 09:21:41 +02:00
Philip Kuryloski 6edb1ea016 Use bazel-erlang 1.1.0 2021-07-12 19:06:20 +02:00
Philip Kuryloski dbb09f1bf5 Add ?awaitMatch/4 to rabbit_assert.hrl
?awaitMatch/4 is the same as ?awaitMatch/3, but where the polling
interval is configurable
2021-07-05 15:21:27 +02:00
Philip Kuryloski f8c09121c1 Revert "Add ?awaitMatch/4 to rabbit_assert.hrl"
This reverts commit 3bb9d0084d.
2021-07-05 11:46:51 +02:00
Philip Kuryloski 3bb9d0084d Add ?awaitMatch/4 to rabbit_assert.hrl
?awaitMatch/4 is the same as ?awaitMatch/3, but where the polling
interval is configurable
2021-07-05 11:40:42 +02:00
Philip Kuryloski 07220e4e13 Fix handling of `broker_with_plugins` config "flag" under bazel
If unset, the flag actually has no effect, rather than assumed to be false
2021-06-30 16:20:11 +02:00
Philip Kuryloski 77073529a6 Use bazel-erlang 1.0.0 2021-06-29 16:49:53 +02:00
Philip Kuryloski f0941c806d Add is_mixed_versions/0
So that the check can be performed before run_setup_steps on a Config
2021-06-25 11:06:17 +02:00
Philip Kuryloski 4c4e2926ea Avoid using mixed cluster args for node start in normal tests
Enhances b56cc4d0fb
2021-06-24 10:28:30 +02:00
Philip Kuryloski b56cc4d0fb Activate plugins correctly in bazel mixed version cluster tests
Bazel mixed version nodes are prebuilt with all plugins, so they need
an alternate mechanism than gnu make for selecting which plugins to enable
2021-06-23 12:17:48 +02:00
Philip Kuryloski 88134b416e Follow up changes for the rpc:call -> erpc:call change
Some tests would make rpc calls, ignoring the result. Since erpc
throws errors, this broke some tests. This commit restores the
non-throw behavior to add_vhost, delete_vhost, add_user,
set_user_tags, delete_user & clear_permissions.
2021-06-22 11:06:27 +02:00
Philip Kuryloski 67e9f02075 Use `erpc:call/{4,5}` in `rabbit_ct_broker_helpers:rpc/{4,5}`
erpc was introduced in Erlang 23, and importantly now provides much
more information when a call fails, like the stacktrace
2021-06-21 17:17:42 +02:00
Philip Kuryloski f5719cd45f Updates for mixed version testing with bazel 2021-06-18 13:01:11 +02:00
Michael Klishin 4126807e71 rabbit_mgmt_test_util: modernize for recent JSX versions 2021-06-12 08:10:36 +08:00
Michael Klishin 820ed74d21 Merge pull request #48 from rabbitmq/stream-tls
Add stream TLS port
2021-05-14 00:24:11 +03:00
dcorbacho f0009e4008 Add stream TLS port 2021-05-13 17:00:03 +02:00
Michael Klishin ca017ac42c Export init_skip_as_error_flag/1 2021-04-30 17:01:26 +03:00
Michael Klishin 45c037d12a Merge pull request #46 from Ayanda-D/poison-messages-in-classic-queues
Add rabbit_ct_broker_helpers:set_ha_policy_all/2
2021-04-30 15:59:44 +03:00
Michael Klishin 488d0d90bb Use Buster for all Erlang versions we support
(cherry picked from commit 61600caf32e8c5c64ea44da4dd1bcdf16b117893)
2021-04-19 17:50:11 +03:00
Michael Klishin ca3f5eaa10 Use -auto-approve instead of -force for forward Terraform compat 2021-04-19 17:03:11 +03:00
Michael Klishin 8ebb059d54 Revert "Upgrade VM helpers to Terraform 0.15.0"
This reverts commit bade323f67.
2021-04-19 17:00:21 +03:00
Michael Klishin 844a63b324 Revert "Adapt more flags to Terraform 0.15"
This reverts commit dbb52257f8.
2021-04-19 17:00:08 +03:00
Michael Klishin 3d9a8aebc4 Run apt-get update before installing any packages 2021-04-19 16:34:15 +03:00
Michael Klishin 34a2e995c7 Install GnuPG as it isn't available on Buster by default 2021-04-19 16:28:45 +03:00
Michael Klishin ad54825b77 Erlang setup: modernize, switch away from Bintray 2021-04-19 16:19:26 +03:00
Michael Klishin dbb52257f8 Adapt more flags to Terraform 0.15 2021-04-17 00:21:39 +03:00
Michael Klishin eda3be6fcd Ignore a few more Terraform 0.15 artefacts 2021-04-17 00:18:42 +03:00
Michael Klishin bade323f67 Upgrade VM helpers to Terraform 0.15.0
See [1]. Docker images are already upgraded
in the CI/CD repo.

1. https://www.terraform.io/upgrade-guides/0-15.html
2021-04-17 00:16:49 +03:00
Philip Kuryloski b9760d2f60 Allow unused test node dirs to be deleted rather than removed
by setting RABBITMQ_CT_HELPERS_DELETE_UNUSED_NODES in the env

helps reduce disk usage of tests
2021-04-15 09:30:53 +02:00
Michael Klishin 57eb064824 openssl.cnf: use sha256 for default_md
Modern Python and OpenSSL versions
can reject certificates that use SHA-1
as insufficiently secure.

This is the case with Python 3 on Debian
Buster, for example

Per discussion with @pjk25 @dumbbell
2021-04-14 19:00:39 +03:00
Philip Kuryloski bdc32c7f1f Make rabbit_srcdir is optional under bazel
d8d910ddd2 inadvertantly made it required
2021-04-13 12:41:54 +02:00
Philip Kuryloski d8d910ddd2 Adjustments for rabbitmq_federation under bazel 2021-04-13 11:23:39 +02:00
Philip Kuryloski de1839302a Fix for the consolidation of erlang.mk and rabbitmq-components.mk
After theses files were consolidated at the root of rabbitmq-server,
they were no longer uploaded to terraformed vms as needed. We now
check for the files at their original location, falling back to the
central location for upload.
2021-04-09 11:56:28 +02:00
Jean-Sébastien Pédron 25213067c5 rabbit_ct_config_schema: Remove default value for {rabbit, [{log, _}]}
This helper is designed to perform exact matching between the generated
configuration and the expected value. This does not work at all if the
schema has default values for untested configuration variables.

The correct solution would be to rewrite this helper and all testsuites
using it to do pattern matching instead. But in the meantime, work
around this design issue by removing the `{rabbit, {log, _}}`
configuration key.
2021-03-30 10:12:45 +02:00
Jean-Sébastien Pédron a2b7d73762 erlang.mk: Update to add support for Rebar lock file version 1.2.0 2021-03-29 11:57:57 +02:00
Philip Kuryloski d273660c92 Add Bazel build (#47)
Add Bazel build files corresponding to rabbitmq/rabbitmq-server#2938

The gnu make build should remain unchanged by theses additions
2021-03-29 11:27:33 +02:00
Michael Klishin 700f5c0baf Log loaded config schema snippets 2021-02-22 15:20:22 +03:00
Jean-Sébastien Pédron 4b190d27b7 tools/terraform: Fix warning reported by Terraform
We shouldn't interpolate a variable alone in a string: we should use the
variable directly.
2021-01-04 15:47:22 +01:00
Philip Kuryloski 58faef1e2e Update fetching of rabbit and rabbit_common deps 2020-12-16 09:32:41 +01:00
Philip Kuryloski 2efb44b8d5 Once again raise an error when add_code_path_to_node fails
A previous commit to increase logging would allow the call to continue
after errors.
2020-12-16 09:31:02 +01:00