Jean-Sébastien Pédron
2c03dc56c2
test/ctl/*feature_flags*: Use arbitrary feature flags, not `quorum_queue`
...
This allows to backport the test to v3.7.x.
2019-05-06 15:37:40 +02:00
Michael Klishin
3bdfae0392
Give queue proceess and client some time to boot before consuming in slower CI environments
2019-04-24 22:09:44 +03:00
Michael Klishin
d926bc26b8
enable_feature_flag: handle cases where target node does not support the flag
...
or any flags.
[#163980302 ]
2019-04-20 02:44:22 +03:00
Michael Klishin
11774a3ff1
cluster_status: list RabbitMQ and Erlang versions
...
Per suggestion from @gerhard.
2019-04-19 05:17:12 +03:00
Michael Klishin
11f0b45732
cluster_status: rework output format, support JSON formatter
...
[#165435068 ]
2019-04-18 04:00:05 +04:00
Michael Klishin
23bbf5babe
Reset an unintionally lowered timeout in this test
...
(cherry picked from commit 69b5784410
)
2019-04-12 04:19:52 +04:00
Michael Klishin
66d6cf1173
Update :badrpc test cases to be more resilient (part 2)
...
On some networks the response is a timeout, not a nodedown. That's
acceptable for this test.
2019-04-12 02:27:15 +04:00
Michael Klishin
796c973a1c
Extract Core.Memory from Core.Helpers
...
In preparation for #340 .
(cherry picked from commit 990e38a245
)
2019-04-12 01:44:58 +04:00
Michael Klishin
d2549de22e
Extract several modules from RabbitMQ.CLI.Core.Helpers
...
In preparation to changing status command output for 3.8
2019-04-10 13:31:38 +03:00
Michael Klishin
d89feb4dec
close_all_connections test: reduce duplication
2019-04-10 13:30:44 +03:00
Michael Klishin
ed4a1fe5f4
Squash a warning
2019-04-09 15:07:01 +04:00
Michael Klishin
7ec98d5924
Extra tests that helped narrow #339 down
2019-04-09 14:37:00 +04:00
Michael Klishin
03d2e921d9
Update assertions for #336
2019-04-08 21:33:45 +04:00
Michael Klishin
94f47ee51c
ctl close_all_connections command test suite improvements
...
Use more but shorter retries when asserting on connection lists.
Discovered when investigating rabbitmq/rabbitmq-server#1971 .
2019-04-08 15:18:27 +04:00
Spring Operator
0a2541afd3
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.
* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
([https](https://blog.listincomprehension.com/search/label/procket ) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
([https](https://dozzie.jarowit.net/trac/wiki/TOML ) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
([https](https://dozzie.jarowit.net/trac/wiki/subproc ) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
([https](https://e2project.org ) result AnnotatedConnectException).
* http://erlang.org/doc/reference_manual/distributed.html (200) with 1 occurrences could not be migrated:
([https](https://erlang.org/doc/reference_manual/distributed.html ) result ConnectTimeoutException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
([https](https://nitrogenproject.com/ ) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
([https](https://proper.softlab.ntua.gr ) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
([https](https://yaws.hyber.org ) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
([https](https://choven.ca ) result ConnectTimeoutException).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
https://fixtrading.org ([https](https://fixprotocol.org/ ) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
https://erldb.org ([https](https://erldb.org ) result UnknownHostException).
* http://elixir-lang.org/docs/stable/elixir/OptionParser.html (301) with 1 occurrences migrated to:
https://elixir-lang.org/docs/stable/elixir/OptionParser.html ([https](https://elixir-lang.org/docs/stable/elixir/OptionParser.html ) result 404).
* http://elixir-lang.org/docs/stable/elixir/Stream.html (301) with 1 occurrences migrated to:
https://elixir-lang.org/docs/stable/elixir/Stream.html ([https](https://elixir-lang.org/docs/stable/elixir/Stream.html ) result 404).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* http://cloudi.org/ with 27 occurrences migrated to:
https://cloudi.org/ ([https](https://cloudi.org/ ) result 200).
* http://elixir-lang.org with 1 occurrences migrated to:
https://elixir-lang.org ([https](https://elixir-lang.org ) result 200).
* http://elixir-lang.org/ with 2 occurrences migrated to:
https://elixir-lang.org/ ([https](https://elixir-lang.org/ ) result 200).
* http://elixir-lang.org/getting-started/typespecs-and-behaviours.html with 1 occurrences migrated to:
https://elixir-lang.org/getting-started/typespecs-and-behaviours.html ([https](https://elixir-lang.org/getting-started/typespecs-and-behaviours.html ) result 200).
* http://elixir-lang.org/install.html with 1 occurrences migrated to:
https://elixir-lang.org/install.html ([https](https://elixir-lang.org/install.html ) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
https://erlware.org/ ([https](https://erlware.org/ ) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/ ) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
https://ninenines.eu ([https](https://ninenines.eu ) result 200).
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
https://www.actordb.com/ ([https](https://www.actordb.com/ ) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html ) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
https://www.rebar3.org ([https](https://www.rebar3.org ) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
https://contributor-covenant.org ([https](https://contributor-covenant.org ) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/ ) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl ) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/ ) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
https://lasp-lang.org/ ([https](https://lasp-lang.org/ ) result 301).
* http://rabbitmq.com/documentation.html with 1 occurrences migrated to:
https://rabbitmq.com/documentation.html ([https](https://rabbitmq.com/documentation.html ) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec ) result 301).
* http://www.mozilla.org/MPL/ with 290 occurrences migrated to:
https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/ ) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli ) result 301).
2019-03-20 03:13:07 -05:00
Michael Klishin
b5d39b2a2f
Handle info keys that are strings
...
Some commands define them as atoms, others
as strings.
2019-03-17 14:01:04 +03:00
Michael Klishin
bea9cf4486
Rework command-specific help
...
* Display command-specific options first instead of
generic at the top
* Include one line command synopsis from --list-commands
in the command-specific message
* List timeout in a separate section. It doesn't
integrate very well with either command-specific
or general section
* Format section headings as H2s in Markdown, this makes them stand out
* Assorted small formatting changes
* Update tests to be less fragile to copywriting changes
2019-03-17 13:54:18 +03:00
Michael Klishin
7f6ef260da
ctl shutdown: consider @localhost nodes to be local
...
Without this -n has to be used when it previously wasn't required.
Follow-up to #328 , references #327 , #309 .
Per discussion with @lukebakken.
2019-03-07 01:29:23 +03:00
Michael Klishin
c339b6a10c
ctl shutdown: infer hostnames from node names
...
inet_db is not a very reliable source as it doesn't take
node name CLI arguments and ERL_INETRC file settings.
That can lead to false positives in environments where
inet_db returns the same value (e.g. `localhost`) for
every cluster member.
Per discussion with @gerhard.
Closes #327 .
References #309 .
2019-03-06 20:19:52 +03:00
Josh Soref
fd4e361f43
spelling: unrecognised
2019-02-24 02:10:56 -05:00
Josh Soref
8f5cb9d9aa
spelling: success
2019-02-24 02:06:39 -05:00
Josh Soref
f1333cfa00
spelling: providing
2019-02-24 02:04:05 -05:00
Josh Soref
ecabb4e763
spelling: exchange
2019-02-13 00:20:24 -05:00
Josh Soref
ce893da54c
spelling: already
2019-02-13 00:17:15 -05:00
Michael Klishin
ea6294be41
New command: `rabbitmqctl force_gc`
...
Developed as part of a live coding training session but can be
useful in practice, so let's keep it.
Per discussion with @hairyhum.
2019-02-21 19:11:30 +03:00
Michael Klishin
12f8debdc6
Update help command tests for the new grouped output
2019-02-21 16:35:21 +03:00
Michael Klishin
667373119e
Feature flag tests belong under test/ctl
2019-02-20 12:09:33 +03:00
Michael Klishin
99eaec4a8e
version command test: remove an environment-specific test
...
`rabbit_misc:version/0` requires rabbit.app to be on code path
and loaded which is not always the case on the test node.
The command is so simple that this doesn't introduce enough risk
to justify spending more time on it.
2019-02-14 16:34:55 +03:00
Michael Klishin
b4b4bb4345
Return :ok from setup_all
2019-02-14 16:17:35 +03:00
Michael Klishin
b7579f9027
Squash a couple of test warnings
2019-02-14 15:48:36 +03:00
Michael Klishin
c7e8ab9b56
New command: version, closes #314
2019-02-14 15:10:22 +03:00
Luke Bakken
962e0cf7c7
Ensure longnames option is passed to normalise_node
...
Fixes #311
2019-02-05 07:27:34 -08:00
Arnaud Cogoluègnes
97c048cf37
Add active consumer fields if necessary
...
When calling node is 3.8 and one of the nodes is < 3.8, active and
activity status fields need to be set with default values.
[#163298456 ]
2019-02-05 15:06:51 +01:00
Michael Klishin
041a6c2bdf
Reuse existing modules more, rearrange functions
2019-02-04 02:22:21 +03:00
Michael Klishin
e11e7d1885
shutdown: add a test for 56ac8d1cf7
...
References #309 .
2019-02-03 22:10:22 +03:00
Michael Klishin
7ad9176435
Further improvements to the shutdown command
...
Add --[no-]wait (enabled by default) for those who would prefer
to use it to shut down remote nodes even though it wouldn't wait for
a verified node termination.
Propagate --timeout to calls.
References #309 .
2019-02-03 20:40:01 +03:00
Michael Klishin
2ad334c91f
Refactor
2019-02-03 04:55:37 +03:00
Jean-Sébastien Pédron
95f5b85498
forget_cluster_node_command_test: Set `feature_flags_file` config
...
... by querying the node for the actual value.
[#160169569 ]
2019-02-02 12:09:10 +01:00
Michael Klishin
724dbca331
Merge pull request #303 from rabbitmq/await_startup_with_a_timeout
...
New command: `rabbitmqctl await_startup`
2019-01-28 21:06:41 +03:00
Michael Klishin
5fad316390
New command: `rabbitmqctl await_startup`
...
Like `rabbitmqctl wait` but doesn't use a pid file path.
Pair: @gerhard.
References rabbitmq/rabbitmq-server#1848 .
2019-01-28 20:45:08 +03:00
Michael Klishin
badbc59dc9
Drive-by change: remove a TODO
...
Currently integration tests do not start
or stop the runtime (only the RabbitMQ app on it),
and it will likely remain the case for a while.
2019-01-28 17:05:01 +03:00
Arnaud Cogoluègnes
606b72b5a6
Add active to default fields for list_consumers
...
[#163298456 ]
References rabbitmq/rabbitmq-server#1839
2019-01-24 18:26:39 +01:00
Arnaud Cogoluègnes
1732932f7b
Merge branch 'master' into rabbitmq-server-1838-active-field-for-consumers
2019-01-24 10:46:58 +01:00
Michael Klishin
1c621c4fdd
RestartVhostCommandTest stability and efficiency improvements
...
Virtual host process tree needs a bit more time to start and stop/
update state on failure.
Before this test a slower 5 year old machine had a 20% failure test rate
with this test (2 out of 10 attempts), with this change it has a %0
failure rate (0 out of 50).
While at it, only set up the vhost for tests that will actually hit
the test node.
2019-01-24 12:25:03 +03:00
Michael Klishin
77c4f3672e
Rearrange test files
...
Most test/* files belong to either test/ctl or test/core.
2019-01-24 11:25:57 +03:00