=== Test case: graphql_muc_SUITE:admin_list_rooms/1 (click for source code)
=== Config value:
[{schema_endpoint,admin},
{listener_opts,#{host => "localhost",
module => mongoose_graphql_cowboy_handler,
password => <<"secret">>,path => "/api/graphql",
schema_endpoint => admin,username => <<"admin">>}},
{watchdog,<0.16009.0>},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_muc_SUITE_data"},
{preset,"elasticsearch_and_cassandra_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07/big_tests.tests.graphql_muc_SUITE.logs/run.2022-06-22_09.19.48/graphql_muc_suite.admin_list_rooms.16132.html"},
{tc_group_properties,[{name,admin_muc},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_muc_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07/big_tests.tests.graphql_muc_SUITE.logs/run.2022-06-22_09.19.48/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_commands => #{},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => #{},mod_muc_light_commands => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => mnesia,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => mnesia,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07"
=== Started at 2022-06-22 09:19:49
*** User 2022-06-22 09:19:49.204 ***🔗
alicE_admin_list_rooms_668@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 09:19:49.204 ***🔗
alicE_admin_list_rooms_668@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='386a9992be253253' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:19:49.205 ***🔗
alicE_admin_list_rooms_668@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-06-22 09:19:49.205 ***🔗
alicE_admin_list_rooms_668@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2xpc3Rfcm9vbXNfNjY4AG1hdHlncnlzYQ==</auth>
*** User 2022-06-22 09:19:49.205 ***🔗
alicE_admin_list_rooms_668@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:19:49.205 ***🔗
alicE_admin_list_rooms_668@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 09:19:49.206 ***🔗
alicE_admin_list_rooms_668@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b36925e87163ba20' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:19:49.206 ***🔗
alicE_admin_list_rooms_668@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-06-22 09:19:49.206 ***🔗
alicE_admin_list_rooms_668@localhost/res1 out
<iq type='set' id='71dc48bccb7f0463672d58b02c83a7d1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:19:49.206 ***🔗
alicE_admin_list_rooms_668@localhost/res1 in
<iq id='71dc48bccb7f0463672d58b02c83a7d1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_admin_list_rooms_668@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:19:49.206 ***🔗
alice_admin_list_rooms_668@localhost/res1 out
<iq type='set' id='72c35097aca91f20e835601db3aecae1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:19:49.207 ***🔗
alice_admin_list_rooms_668@localhost/res1 in
<iq type='result' id='72c35097aca91f20e835601db3aecae1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:19:49.207 ***🔗
alice_admin_list_rooms_668@localhost/res1 out
<presence/>
*** User 2022-06-22 09:19:49.207 ***🔗
alice_admin_list_rooms_668@localhost/res1 in
<presence from='alice_admin_list_rooms_668@localhost/res1' to='alice_admin_list_rooms_668@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:19:49.208 ***🔗
bOb_admin_list_rooms_668@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 09:19:49.209 ***🔗
bOb_admin_list_rooms_668@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='42da88e7b54a2caa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:19:49.209 ***🔗
bOb_admin_list_rooms_668@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-06-22 09:19:49.209 ***🔗
bOb_admin_list_rooms_668@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZG1pbl9saXN0X3Jvb21zXzY2OABtYWtyb2xpa2E=</auth>
*** User 2022-06-22 09:19:49.209 ***🔗
bOb_admin_list_rooms_668@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:19:49.210 ***🔗
bOb_admin_list_rooms_668@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 09:19:49.210 ***🔗
bOb_admin_list_rooms_668@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf7cef6e1409db52' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:19:49.210 ***🔗
bOb_admin_list_rooms_668@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-06-22 09:19:49.210 ***🔗
bOb_admin_list_rooms_668@localhost/res1 out
<iq type='set' id='787da86fc85cb755331a903890e5a021'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:19:49.211 ***🔗
bOb_admin_list_rooms_668@localhost/res1 in
<iq id='787da86fc85cb755331a903890e5a021' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_admin_list_rooms_668@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:19:49.211 ***🔗
bob_admin_list_rooms_668@localhost/res1 out
<iq type='set' id='bfd4ea6c1331baf135c9f78f64d8f039'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:19:49.211 ***🔗
bob_admin_list_rooms_668@localhost/res1 in
<iq type='result' id='bfd4ea6c1331baf135c9f78f64d8f039'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:19:49.211 ***🔗
bob_admin_list_rooms_668@localhost/res1 out
<presence/>
*** User 2022-06-22 09:19:49.212 ***🔗
bob_admin_list_rooms_668@localhost/res1 in
<presence from='bob_admin_list_rooms_668@localhost/res1' to='bob_admin_list_rooms_668@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:19:49.218 ***🔗
REST request:
Code: 200
Req: {<0.16411.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9e8fd89162600314">>},
{<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
<<"{\"variables\":{\"mucDomain\":\"muc.localhost\",\"limit\":null,\"index\":null,\"from\":\"alice_admin_list_rooms_668@localhost\"},\"query\":\"query Q1($mucDomain: String!, $from: JID, $limit: Int, $index: Int)\\n { muc { listRooms(mucDomain: $mucDomain, from: $from, limit: $limit, index: $index)\\n { rooms { jid title private usersNumber } count index first last} } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 09:19:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2968">>}],
<<"{\"data\":{\"muc\":{\"listRooms\":{\"rooms\":[{\"usersNumber\":0,\"title\":\"297142d8f85d0139\",\"private\":false,\"jid\":\"297142d8f85d0139@muc.localhost\"},{\"usersNumber\":0,\"title\":\"2f57a81ddfde58f0\",\"private\":false,\"jid\":\"2f57a81ddfde58f0@muc.localhost\"},{\"usersNumber\":null,\"title\":\"7703d81014aa4753\",\"private\":null,\"jid\":\"7703d81014aa4753@muc.localhost\"},{\"usersNumber\":0,\"title\":\"f71cba3b71a8bb9c\",\"private\":false,\"jid\":\"f71cba3b71a8bb9c@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_admin_set_user_affiliation_652\",\"private\":false,\"jid\":\"room-alice_user_admin_set_user_affiliation_652@muc.localhost\"},{\"usersNumber\":1,\"title\":\"room-alice_user_can_enter_room_659\",\"private\":false,\"jid\":\"room-alice_user_can_enter_room_659@muc.localhost\"},{\"usersNumber\":2,\"title\":\"room-alice_user_can_enter_room_with_password_661\",\"private\":false,\"jid\":\"room-alice_user_can_enter_room_with_password_661@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_can_exit_room_658\",\"private\":false,\"jid\":\"room-alice_user_can_exit_room_658@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_get_room_config_639\",\"private\":false,\"jid\":\"room-alice_user_get_room_config_639@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_invite_user_642\",\"private\":false,\"jid\":\"room-alice_user_invite_user_642@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_member_set_user_affiliation_653\",\"private\":false,\"jid\":\"room-alice_user_member_set_user_affiliation_653@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_moderator_set_user_role_656\",\"private\":false,\"jid\":\"room-alice_user_moderator_set_user_role_656@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_owner_set_user_affiliation_651\",\"private\":false,\"jid\":\"room-alice_user_owner_set_user_affiliation_651@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_participant_set_user_role_654\",\"private\":false,\"jid\":\"room-alice_user_participant_set_user_role_654@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_delete_room_by_not_owner_630\",\"private\":false,\"jid\":\"room-alice_user_try_delete_room_by_not_owner_630@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_get_room_messages_without_permission_649\",\"private\":false,\"jid\":\"room-alice_user_try_get_room_messages_without_permission_649@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_list_room_affiliations_without_permission_660\",\"private\":false,\"jid\":\"room-alice_user_try_list_room_affiliations_without_permission_660@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_list_room_users_without_permission_635\",\"private\":false,\"jid\":\"room-alice_user_try_list_room_users_without_permission_635@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_without_session_send_message_to_room_650\",\"private\":false,\"jid\":\"room-alice_user_without_session_send_message_to_room_650@muc.localhost\"}],\"last\":\"room-alice_user_without_session_send_message_to_room_650\",\"index\":0,\"first\":\"297142d8f85d0139\",\"count\":20}}}}">>,
3108,3347}
Params: #{body =>
<<"{\"variables\":{\"mucDomain\":\"muc.localhost\",\"limit\":null,\"index\":null,\"from\":\"alice_admin_list_rooms_668@localhost\"},\"query\":\"query Q1($mucDomain: String!, $from: JID, $limit: Int, $index: Int)\\n { muc { listRooms(mucDomain: $mucDomain, from: $from, limit: $limit, index: $index)\\n { rooms { jid title private usersNumber } count index first last} } }\",\"operationName\":\"Q1\"}">>,
creds => {<<"admin">>,<<"secret">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
return_headers => true,return_maps => true,
role => {graphql,admin},
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 09:19:49.219 ***🔗
bob_admin_list_rooms_668@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:19:49.219 ***🔗
bob_admin_list_rooms_668@localhost/res1 in
</stream:stream>
*** User 2022-06-22 09:19:49.219 ***🔗
alice_admin_list_rooms_668@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:19:49.220 ***🔗
alice_admin_list_rooms_668@localhost/res1 in
</stream:stream>
=== Ended at 2022-06-22 09:19:49
=== successfully completed test case
=== === Returned value: ok