Commit Graph

43 Commits

Author SHA1 Message Date
Rin Kuryloski dec3d3eb89 Add rabbitmqctl to rabbitmq_federation PLT_APPS 2024-04-30 11:17:42 +02:00
Loïc Hoguin dc70cbf281
Update Erlang.mk and switch to new xref code 2022-05-31 13:51:12 +02:00
Philip Kuryloski a63f169fcb Remove duplicate rabbitmq-components.mk and erlang.mk files
Also adjust the references in rabbitmq-components.mk to account for
post monorepo locations
2021-03-22 15:40:19 +01:00
Michael Klishin 468c4b7cb7 Decrease internal exchange check frequency
it should not run more often than a connection timeout.
90s is a reasonable default interval for this check.
2020-06-17 14:15:23 +03:00
Michael Klishin c1d9733e12 Merge branch 'stable' 2017-07-24 18:07:54 +03:00
Diana Corbacho 0bd9a9f5c0 Detect internal upstream exchange deletion and restart the link
When network partitions happen, two nodes might connect to the upstream
swapping the exchange (A -> B, B -> A). The last surviving link
after healing might have lost its exchange. The periodic check using
a passive declare allows to detect the situation and restart the link,
restoring the connectivity.

Related to rabbitmq-federation#43
rabbitmq-federation#59
2017-07-21 17:37:21 +01:00
Jean-Sébastien Pédron 3a86ae1ccf Merge branch 'stable' 2017-05-16 18:08:17 +02:00
Jean-Sébastien Pédron dcaefec03e Makefile: Load the new `rabbitmq-early-plugin.mk` early-stage plugin
See the corresponding commit in rabbitmq-common for an explanation.

[#144697185]
2017-05-16 17:32:56 +02:00
Jean-Sébastien Pédron 2e44351f16 Merge branch 'stable' 2016-12-07 15:37:31 +01:00
Jean-Sébastien Pédron d18c5f46e8 Move from .app.src to Makefile variables
This is the recommended way with Erlang.mk.

By default, the version is inherited from rabbitmq-server-release when
the source archive is created, or computed from git-describe(1) (see
`rabbitmq-components.mk`). One can override the version from the command
line by setting the `PROJECT_VERSION` variable.

[#130992027]
2016-12-06 16:01:45 +01:00
Jean-Sébastien Pédron 870b1f8a31 Add rabbitmq_ct_client_helpers to TEST_DEPS 2016-11-24 10:18:16 +01:00
Jean-Sébastien Pédron 71dff3a5c4 Makefile: Explicitely list all DEPS
Sync rabbitmq-components.mk with rabbitmq-common to remove automatic
DEPS handling.

[#130086871]
2016-09-19 13:55:33 +02:00
Jean-Sébastien Pédron 22a7a0ec3c Makefile: No need to filter out rabbitmq_test from TEST_DEPS anymore
[#127356157]
2016-09-02 12:26:41 +02:00
Jean-Sébastien Pédron 4e70c06538 Switch testsuite to common_test
While here, update Erlang.mk. It fixes the use of the `t=` argument to
`make ct-$suite`.

[#121412011]
2016-06-24 12:49:37 +02:00
Jean-Sébastien Pédron 02f69be5cc Add "rabbit" to the TEST_DEPS
It is required by the standalone tests.
2015-11-30 09:09:02 +01:00
Jean-Sébastien Pédron 351020288c TEST_PLUGINS_ROOTDIR definition was not committed 2015-10-20 16:18:49 +02:00
Jean-Sébastien Pédron 0e057156bf Initial move to erlang.mk 2015-10-19 17:29:55 +02:00
Simon MacMullen 46394d23a9 Easier to just override this than tweak the umbrella. 2014-05-15 12:18:26 +01:00
Simon MacMullen d7ca888acc Remove some no-longer-needed stuff 2014-05-14 14:30:28 +01:00
Simon MacMullen f79cde3496 Federation tests tend to spam /tmp rather, let's be a bit more civilised. 2012-10-18 16:28:28 +01:00
Simon MacMullen d014b4ef45 Put the "-e" in the right place so that tests actually fail if rabbitmqctl fails. 2012-04-10 16:36:27 +01:00
Simon MacMullen 7eff3ffb01 (Incidentally) Fix use of /tmp instead of $TMPDIR, aka run tests on a Mac. 2012-04-10 16:05:13 +01:00
Simon MacMullen fbb3ef1fb3 Switch to configuring tests via the new config mechanism. 2012-04-05 15:31:54 +01:00
Simon MacMullen 90239e86ad Simple test for the legacy case where we connect to an upstream that does not know about the x-federation-upstream exchange. 2012-03-13 16:38:59 +00:00
Simon MacMullen 4a1e00ae24 Remove any PID file before starting tests. 2011-10-10 15:29:11 +01:00
Simon MacMullen c549b5df38 Update to use new rabbitmqctl wait form. Unfortunately this is fiddly because:
* Getting the pid file from $$ in the script isn't going to work if we use
  erl -detached since, err, it'll start a new process.

* If we background the process then eunit's ?assertCmd macro seems to just
  hang. I tried redirecting stdout and stderr, setsid and nohup. Nothing
  worked.

* So we have to use os:cmd rather than ?assertCmd. And that doesn't let you
  get the status code out! So we have to work around that too...
2011-07-20 16:55:30 +01:00
Simon MacMullen 38779ccf1f Run binding recovery test on hare to work round bug 24256 2011-07-11 14:02:58 +01:00
Simon MacMullen 3aeb2ae604 Make the pre-test cleanup actually happen *before* the test. 2011-06-22 13:34:15 +01:00
Simon MacMullen 54497b3e0f Test max_hops by building a ring with three brokers. 2011-06-16 17:56:23 +01:00
Simon MacMullen 5adf0b4429 This looked like an error and confused me. 2011-05-04 16:09:44 +01:00
Simon MacMullen 87e333be56 Build system changes. 2011-04-12 12:18:42 +01:00
Simon MacMullen 56bc814d8c Remove URIs from configuration. 2011-03-03 14:13:05 +00:00
Simon MacMullen 6d1b4e1a60 Make tests independent of any crazy configuration file you may have lying around. 2011-03-03 10:43:47 +00:00
Simon MacMullen 1cdaeef21f Use rabbitmqctl wait 2011-02-22 17:02:15 +00:00
Simon MacMullen 5f0cd4d884 Add forwarding information in a header. 2011-02-18 16:27:12 +00:00
Simon MacMullen f756188eac Make the static configuration more useful / flexible. 2011-02-17 16:30:13 +00:00
Simon MacMullen e74bd6b923 Use acks / confirms to make sure we're never responsible for anything. 2011-02-17 15:23:48 +00:00
Simon MacMullen c1cf725a5d Grab the port number from URLs, add a test across two brokers. 2011-02-15 14:30:42 +00:00
Simon MacMullen 011c19dfe1 Separate out the config based exchange tests entirely. 2011-02-15 12:15:23 +00:00
Simon MacMullen 537f7b9c69 Multiple upstreams. 2011-02-11 14:44:37 +00:00
Simon MacMullen 3b2c67075e Refactor tests, test configuration, allow more than one federation exchange per broker(!) 2011-02-11 13:33:32 +00:00
Simon MacMullen e8bd411781 The simplest possible test. 2011-02-11 12:06:27 +00:00
Simon MacMullen 8f4cf84e23 The beginnings of a federation plugin. Does not work. 2011-02-10 16:26:32 +00:00