Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Introduce rabbit_ct_broker_helpers:{add,delete}_vhost/2
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jul 2, 2016
1 parent 6bbcaa2 commit 7a458e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/rabbit_ct_broker_helpers.erl
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,15 @@ format_ipaddr_for_uri(
Res1 = re:replace(Res0, "(^0(:0)+$|^(0:)+|(:0)+$)|:(0:)+", "::"),
"[" ++ Res1 ++ "]".


%% Virtual host management

add_vhost(Config, VHost) ->
rabbit_ct_broker_helpers:rpc(Config, 0, rabbit_vhost, add, [VHost]).

delete_vhost(Config, VHost) ->
rabbit_ct_broker_helpers:rpc(Config, 0, rabbit_vhost, delete, [VHost]).

%% Functions to execute code on a remote node/broker.

add_code_path_to_node(Node, Module) ->
Expand Down

0 comments on commit 7a458e1

Please sign in to comment.