diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2019-11-21 23:51:35 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2019-11-21 23:51:35 +0300 |
| commit | f13540a82072620eeb6bf7e5dfb510a4e7480bcb (patch) | |
| tree | 35caa24af6d865d5c9435c4d97523591f39de601 | |
| parent | 85b8a6928fdb9f7b600715ce6f7448424e9c93c7 (diff) | |
| download | rabbitmq-server-git-f13540a82072620eeb6bf7e5dfb510a4e7480bcb.tar.gz | |
Add one more definition import test case
| -rw-r--r-- | test/definition_import_SUITE.erl | 5 | ||||
| -rw-r--r-- | test/definition_import_SUITE_data/case11.json | 24 |
2 files changed, 28 insertions, 1 deletions
diff --git a/test/definition_import_SUITE.erl b/test/definition_import_SUITE.erl index fc49535f92..fbbfc95fb5 100644 --- a/test/definition_import_SUITE.erl +++ b/test/definition_import_SUITE.erl @@ -44,7 +44,8 @@ groups() -> import_case7, import_case8, import_case9, - import_case10 + import_case10, + import_case11 ]} ]. @@ -103,6 +104,8 @@ import_case5(Config) -> [{<<"1883">>,<<"/">>}, {<<"1884">>,<<"vhost2">>}]). +import_case11(Config) -> import_file_case(Config, "case11"). + import_file_case(Config, CaseName) -> CasePath = filename:join(?config(data_dir, Config), CaseName ++ ".json"), rabbit_ct_broker_helpers:rpc(Config, 0, ?MODULE, run_import_case, [CasePath]), diff --git a/test/definition_import_SUITE_data/case11.json b/test/definition_import_SUITE_data/case11.json new file mode 100644 index 0000000000..13afdf5cb5 --- /dev/null +++ b/test/definition_import_SUITE_data/case11.json @@ -0,0 +1,24 @@ +{ + "rabbit_version": "3.8.0+rc.1.5.g9148053", + "rabbitmq_version": "3.8.0+rc.1.5.g9148053", + "queues": [ + { + "name": "amq.queuebar", + "vhost": "/", + "durable": true, + "auto_delete": false, + "arguments": {} + } + ], + "exchanges": [ + { + "name": "amq.foobar", + "vhost": "/", + "type": "direct", + "durable": true, + "auto_delete": false, + "internal": false, + "arguments": {} + } + ] +} |
