From cb40d77e8605b98073750505a34a24623bc8dea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Wojtasik?= Date: Wed, 16 Feb 2022 18:21:26 +0100 Subject: [PATCH] Use Domain instead of MUCLightServer in requests MUC Light admin rest API required a domain to create a room and a muc light domain for other operations. Now it is unified and uses a domain everywhere. --- big_tests/tests/muc_light_http_api_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/big_tests/tests/muc_light_http_api_SUITE.erl b/big_tests/tests/muc_light_http_api_SUITE.erl index b7db81c4d5..f546d60a3b 100644 --- a/big_tests/tests/muc_light_http_api_SUITE.erl +++ b/big_tests/tests/muc_light_http_api_SUITE.erl @@ -128,7 +128,7 @@ create_identifiable_room(Config) -> invite_to_room(Config) -> Name = <<"wonderland">>, - Path = path([muc_light_domain(), Name, "participants"]), + Path = path([domain_helper:domain(), Name, "participants"]), escalus:fresh_story(Config, [{alice, 1}, {bob, 1}, {kate, 1}], fun(Alice, Bob, Kate) -> %% XMPP: Alice creates a room. @@ -155,7 +155,7 @@ invite_to_room(Config) -> send_message_to_room(Config) -> Name = <<"wonderland">>, - Path = path([muc_light_domain(), Name, "messages"]), + Path = path([domain_helper:domain(), Name, "messages"]), Text = <<"Hello everyone!">>, escalus:fresh_story(Config, [{alice, 1}, {bob, 1}, {kate, 1}], @@ -290,7 +290,7 @@ check_delete_room(_Config, RoomNameToCreate, RoomNameToDelete, RoomOwner, escalus:assert(is_iq_result, CreationResult), muc_light_helper:verify_aff_bcast(Members, Affiliations), ShortJID = escalus_client:short_jid(UserToExecuteDelete), - Path = path([muc_light_domain(), RoomNameToDelete, ShortJID, "management"]), + Path = path([domain_helper:domain(), RoomNameToDelete, ShortJID, "management"]), rest_helper:delete(admin, Path).