@@ -34,7 +34,8 @@ groups() ->
3434 ClusterSize1Tests = [
3535 single_node_vhost_deletion_forces_connection_closure ,
3636 vhost_failure_forces_connection_closure ,
37- dead_vhost_connection_refused
37+ dead_vhost_connection_refused ,
38+ vhost_creation_idempotency
3839 ],
3940 ClusterSize2Tests = [
4041 cluster_vhost_deletion_forces_connection_closure ,
@@ -43,7 +44,8 @@ groups() ->
4344 vhost_failure_forces_connection_closure_on_failure_node ,
4445 dead_vhost_connection_refused_on_failure_node ,
4546 node_starts_with_dead_vhosts ,
46- node_starts_with_dead_vhosts_and_ignore_slaves
47+ node_starts_with_dead_vhosts_and_ignore_slaves ,
48+ vhost_creation_idempotency
4749 ],
4850 [
4951 {cluster_size_1_network , [], ClusterSize1Tests },
@@ -373,6 +375,12 @@ node_starts_with_dead_vhosts_and_ignore_slaves(Config) ->
373375 true = rabbit_ct_broker_helpers :rpc (Config , 1 ,
374376 rabbit_vhost_sup_sup , is_vhost_alive , [VHost2 ]).
375377
378+ vhost_creation_idempotency (Config ) ->
379+ VHost = <<" idempotency-test" >>,
380+ ? assertEqual (ok , rabbit_ct_broker_helpers :add_vhost (Config , VHost )),
381+ ? assertEqual (ok , rabbit_ct_broker_helpers :add_vhost (Config , VHost )),
382+ ? assertEqual (ok , rabbit_ct_broker_helpers :add_vhost (Config , VHost )).
383+
376384% % -------------------------------------------------------------------
377385% % Helpers
378386% % -------------------------------------------------------------------
0 commit comments