summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2020-06-03 01:30:45 +0300
committerMichael Klishin <michael@clojurewerkz.org>2020-06-03 01:32:09 +0300
commit24d5b9d28f15db3a7530ee818142c52123cf219d (patch)
tree76370da51c87a719dacc7d04861f51c64c11e0b6
parent4efd598e385144e145d8c11732d7cf160961f8b3 (diff)
downloadrabbitmq-server-git-24d5b9d28f15db3a7530ee818142c52123cf219d.tar.gz
Test cases for short peer discovery aliases
(cherry picked from commit a986322540c94009c94833157f95e0c0cbf6729a)
-rw-r--r--test/config_schema_SUITE_data/rabbit.snippets26
1 files changed, 25 insertions, 1 deletions
diff --git a/test/config_schema_SUITE_data/rabbit.snippets b/test/config_schema_SUITE_data/rabbit.snippets
index 96930a375b..e2384e178b 100644
--- a/test/config_schema_SUITE_data/rabbit.snippets
+++ b/test/config_schema_SUITE_data/rabbit.snippets
@@ -102,7 +102,31 @@ cluster_formation.node_type = disc",
{node_type,disc}]},
{cluster_nodes,{[rabbit@hostname2,rabbit@hostname1],disc}}]}],
[]},
- {cluster_formation_disK,
+
+ {cluster_formation_module_classic_confog_alias,
+ "cluster_formation.peer_discovery_backend = classic_config
+cluster_formation.classic_config.nodes.peer1 = rabbit@hostname1
+cluster_formation.classic_config.nodes.peer2 = rabbit@hostname2",
+ [{rabbit,
+ [{cluster_formation,
+ [{peer_discovery_backend,rabbit_peer_discovery_classic_config}]},
+ {cluster_nodes,{[rabbit@hostname2,rabbit@hostname1],disc}}]}],
+ []},
+
+ {cluster_formation_module_dns_alias,
+ "cluster_formation.peer_discovery_backend = dns
+cluster_formation.dns.hostname = discovery.eng.example.local",
+ [{rabbit,
+ [
+ {cluster_formation,
+ [{peer_discovery_backend,rabbit_peer_discovery_dns},
+ {peer_discovery_dns, [
+ {hostname, <<"discovery.eng.example.local">>}
+ ]}]}
+ ]}],
+ []},
+
+ {cluster_formation_disk,
"cluster_formation.peer_discovery_backend = rabbit_peer_discovery_classic_config
cluster_formation.classic_config.nodes.peer1 = rabbit@hostname1
cluster_formation.classic_config.nodes.peer2 = rabbit@hostname2