=== Test case: graphql_muc_light_SUITE:user_list_room_users/1 (click for source code)
=== Config value:
[{schema_endpoint,user},
{watchdog,<0.18214.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_muc_light_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.graphql_muc_light_SUITE.logs/run.2022-03-04_11.19.12/graphql_muc_light_suite.user_list_room_users.20227.html"},
{tc_group_properties,[{name,user_muc_light},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_muc_light_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.graphql_muc_light_SUITE.logs/run.2022-03-04_11.19.12/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{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"}]},
{welcome_message,{[],[]}}],
mod_roster => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18"
=== Started at 2022-03-04 11:19:12
*** User 2022-03-04 11:19:12.507 ***
alicE_user_list_room_users_685@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-03-04 11:19:12.507 ***
alicE_user_list_room_users_685@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff643354655e2e6c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:19:12.507 ***
alicE_user_list_room_users_685@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-03-04 11:19:12.508 ***
alicE_user_list_room_users_685@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfbGlzdF9yb29tX3VzZXJzXzY4NQBtYXR5Z3J5c2E=</auth>
*** User 2022-03-04 11:19:12.509 ***
alicE_user_list_room_users_685@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:19:12.509 ***
alicE_user_list_room_users_685@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-03-04 11:19:12.510 ***
alicE_user_list_room_users_685@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6450f1e734713809' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:19:12.510 ***
alicE_user_list_room_users_685@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-03-04 11:19:12.510 ***
alicE_user_list_room_users_685@localhost/res1 out
<iq type='set' id='c0291b6b94a528072512ebd97dc92d1b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:19:12.510 ***
alicE_user_list_room_users_685@localhost/res1 in
<iq id='c0291b6b94a528072512ebd97dc92d1b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_user_list_room_users_685@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:19:12.511 ***
alicE_user_list_room_users_685@localhost/res1 out
<iq type='set' id='1656ad8d58c895c0ebb76b65707fd90b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:19:12.511 ***
alicE_user_list_room_users_685@localhost/res1 in
<iq type='result' id='1656ad8d58c895c0ebb76b65707fd90b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:19:12.511 ***
alicE_user_list_room_users_685@localhost/res1 out
<presence/>
*** User 2022-03-04 11:19:12.515 ***
alicE_user_list_room_users_685@localhost/res1 in
<presence from='alicE_user_list_room_users_685@localhost/res1' to='alice_user_list_room_users_685@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:19:12.515 ***
bOb_user_list_room_users_685@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-03-04 11:19:12.547 ***
bOb_user_list_room_users_685@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7eab006147764aab' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:19:12.547 ***
bOb_user_list_room_users_685@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-03-04 11:19:12.547 ***
bOb_user_list_room_users_685@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2xpc3Rfcm9vbV91c2Vyc182ODUAbWFrcm9saWth</auth>
*** User 2022-03-04 11:19:12.548 ***
bOb_user_list_room_users_685@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:19:12.548 ***
bOb_user_list_room_users_685@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-03-04 11:19:12.549 ***
bOb_user_list_room_users_685@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='817c37fe9d237071' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:19:12.549 ***
bOb_user_list_room_users_685@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-03-04 11:19:12.549 ***
bOb_user_list_room_users_685@localhost/res1 out
<iq type='set' id='44ac01c212a384e12298bbebde82b776'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:19:12.550 ***
bOb_user_list_room_users_685@localhost/res1 in
<iq id='44ac01c212a384e12298bbebde82b776' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_user_list_room_users_685@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:19:12.550 ***
bOb_user_list_room_users_685@localhost/res1 out
<iq type='set' id='4d8b0d897805ed028fbd5ce1d418f997'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:19:12.550 ***
bOb_user_list_room_users_685@localhost/res1 in
<iq type='result' id='4d8b0d897805ed028fbd5ce1d418f997'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:19:12.550 ***
bOb_user_list_room_users_685@localhost/res1 out
<presence/>
*** User 2022-03-04 11:19:12.554 ***
bOb_user_list_room_users_685@localhost/res1 in
<presence from='bOb_user_list_room_users_685@localhost/res1' to='bob_user_list_room_users_685@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:19:12.558 ***
REST request:
Code: 200
Req: {<0.18470.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"79df6b1d60acfc9e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9saXN0X3Jvb21fdXNlcnNfNjg1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"room\":\"1646-392752-555295@muclight.localhost\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"115">>}],
<<"{\"data\":{\"muc_light\":{\"listRoomUsers\":[{\"jid\":\"alice_user_list_room_users_685@localhost\",\"affiliation\":\"OWNER\"}]}}}">>,
254,1412}
Params: #{body =>
<<"{\"variables\":{\"room\":\"1646-392752-555295@muclight.localhost\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>,
creds =>
{<<"alice_user_list_room_users_685@localhost">>,<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,<<"user">>},
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:19:12.561 ***
REST request:
Code: 200
Req: {<0.18478.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"390b6c5f2e225eda">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9saXN0X3Jvb21fdXNlcnNfNjg1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"room\":\"1646-392752-555295@not-existing-domain\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"321">>}],
<<"{\"errors\":[{\"path\":[\"muc_light\",\"listRoomUsers\"],\"message\":\"MUC Light server not found\",\"extensions\":{\"room\":\"{jid,<<\\\"1646-392752-555295\\\">>,<<\\\"not-existing-domain\\\">>,<<>>,\\n <<\\\"1646-392752-555295\\\">>,<<\\\"not-existing-domain\\\">>,<<>>}\",\"code\":\"muc_server_not_found\"}}],\"data\":{\"muc_light\":{\"listRoomUsers\":null}}}">>,
460,1498}
Params: #{body =>
<<"{\"variables\":{\"room\":\"1646-392752-555295@not-existing-domain\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>,
creds =>
{<<"alice_user_list_room_users_685@localhost">>,<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,<<"user">>},
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:19:12.564 ***
REST request:
Code: 200
Req: {<0.18484.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"186edcb65c16c7d1">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9saXN0X3Jvb21fdXNlcnNfNjg1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"room\":\"not-existing@muclight.localhost\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"289">>}],
<<"{\"errors\":[{\"path\":[\"muc_light\",\"listRoomUsers\"],\"message\":\"Room not found\",\"extensions\":{\"room\":\"{jid,<<\\\"not-existing\\\">>,<<\\\"muclight.localhost\\\">>,<<>>,<<\\\"not-existing\\\">>,\\n <<\\\"muclight.localhost\\\">>,<<>>}\",\"code\":\"room_not_found\"}}],\"data\":{\"muc_light\":{\"listRoomUsers\":null}}}">>,
428,1624}
Params: #{body =>
<<"{\"variables\":{\"room\":\"not-existing@muclight.localhost\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>,
creds =>
{<<"alice_user_list_room_users_685@localhost">>,<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,<<"user">>},
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:19:12.567 ***
REST request:
Code: 200
Req: {<0.18502.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"87a7458c71fd7af3">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbGlzdF9yb29tX3VzZXJzXzY4NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"room\":\"1646-392752-555295@muclight.localhost\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"324">>}],
<<"{\"errors\":[{\"path\":[\"muc_light\",\"listRoomUsers\"],\"message\":\"Given user does not occupy this room\",\"extensions\":{\"room\":\"{jid,<<\\\"1646-392752-555295\\\">>,<<\\\"muclight.localhost\\\">>,<<>>,\\n <<\\\"1646-392752-555295\\\">>,<<\\\"muclight.localhost\\\">>,<<>>}\",\"code\":\"not_room_member\"}}],\"data\":{\"muc_light\":{\"listRoomUsers\":null}}}">>,
463,1386}
Params: #{body =>
<<"{\"variables\":{\"room\":\"1646-392752-555295@muclight.localhost\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>,
creds =>
{<<"bob_user_list_room_users_685@localhost">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,<<"user">>},
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:19:12.574 ***
bOb_user_list_room_users_685@localhost/res1 in
<message from='1646-392752-555295@muclight.localhost' to='bob_user_list_room_users_685@localhost' id='96513801-fc0e-4147-b7f8-f27112a374ac' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-392752-568721</version>
<user affiliation='member'>bob_user_list_room_users_685@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-04 11:19:12.577 ***
REST request:
Code: 200
Req: {<0.18537.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d26243778fece22b">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbGlzdF9yb29tX3VzZXJzXzY4NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"room\":\"1646-392752-555295@muclight.localhost\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"187">>}],
<<"{\"data\":{\"muc_light\":{\"listRoomUsers\":[{\"jid\":\"alice_user_list_room_users_685@localhost\",\"affiliation\":\"OWNER\"},{\"jid\":\"bob_user_list_room_users_685@localhost\",\"affiliation\":\"MEMBER\"}]}}}">>,
326,1159}
Params: #{body =>
<<"{\"variables\":{\"room\":\"1646-392752-555295@muclight.localhost\"},\"query\":\"query Q1($room: JID!)\\n { muc_light { listRoomUsers(room: $room)\\n { jid affiliation} } }\",\"operationName\":\"Q1\"}">>,
creds =>
{<<"bob_user_list_room_users_685@localhost">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,<<"user">>},
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:19:12.577 ***
bOb_user_list_room_users_685@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:19:12.578 ***
bOb_user_list_room_users_685@localhost/res1 in
</stream:stream>
*** User 2022-03-04 11:19:12.578 ***
alicE_user_list_room_users_685@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:19:12.578 ***
alicE_user_list_room_users_685@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:19:12
=== successfully completed test case
=== === Returned value: ok