summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bakken <lbakken@pivotal.io>2020-12-02 12:32:33 -0800
committerLuke Bakken <lbakken@pivotal.io>2020-12-02 12:33:02 -0800
commitccf624211a74519a6212a6c765aaba5899b01fa1 (patch)
treedc09001eb04056c4ba2484c4cf5b1a587eeaad15
parente6c97547e498d4b5361a626dde92872c582ae107 (diff)
downloadrabbitmq-server-git-ccf624211a74519a6212a6c765aaba5899b01fa1.tar.gz
Add test that fails prior to the change for #2668
-rw-r--r--deps/rabbit/test/definition_import_SUITE.erl5
-rw-r--r--deps/rabbit/test/definition_import_SUITE_data/case14.json34
2 files changed, 38 insertions, 1 deletions
diff --git a/deps/rabbit/test/definition_import_SUITE.erl b/deps/rabbit/test/definition_import_SUITE.erl
index ac0c18da99..6c1b04cd2a 100644
--- a/deps/rabbit/test/definition_import_SUITE.erl
+++ b/deps/rabbit/test/definition_import_SUITE.erl
@@ -39,7 +39,8 @@ groups() ->
import_case10,
import_case11,
import_case12,
- import_case13
+ import_case13,
+ import_case14
]},
{boot_time_import, [], [
import_on_a_booting_node
@@ -141,6 +142,8 @@ import_case13(Config) ->
Skip
end.
+import_case14(Config) -> import_file_case(Config, "case14").
+
export_import_round_trip_case1(Config) ->
%% case 6 has runtime parameters that do not depend on any plugins
import_file_case(Config, "case6"),
diff --git a/deps/rabbit/test/definition_import_SUITE_data/case14.json b/deps/rabbit/test/definition_import_SUITE_data/case14.json
new file mode 100644
index 0000000000..ef75f8422c
--- /dev/null
+++ b/deps/rabbit/test/definition_import_SUITE_data/case14.json
@@ -0,0 +1,34 @@
+{
+ "vhosts": [
+ {
+ "name": "/"
+ }
+ ],
+ "exchanges": [
+ {
+ "name": "x_demo",
+ "vhost": "/",
+ "type": "fanout",
+ "durable": true,
+ "auto_delete": false,
+ "internal": false
+ }
+ ],
+ "queues": [
+ {
+ "name": "q_demo",
+ "vhost": "/",
+ "durable": true,
+ "auto_delete": false
+ }
+ ],
+ "bindings": [
+ {
+ "source": "x_demo",
+ "vhost": "/",
+ "destination": "q_demo",
+ "destination_type": "queue",
+ "routing_key": "#"
+ }
+ ]
+}