=== Test case: graphql_muc_SUITE:user_list_room_affiliations/1 (click for source code)
=== Config value:
[{watchdog,<0.19535.0>},
{schema_endpoint,user},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_muc_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@b324fd85012a.2024-02-19_17.21.03/big_tests.tests.graphql_muc_SUITE.logs/run.2024-02-19_17.25.03/graphql_muc_suite.user_list_room_affiliations.41347.html"},
{tc_group_properties,[{name,user_muc_configured},parallel]},
{tc_group_path,[[{name,user}]]},
{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@b324fd85012a.2024-02-19_17.21.03/big_tests.tests.graphql_muc_SUITE.logs/run.2024-02-19_17.25.03/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@b324fd85012a.2024-02-19_17.21.03"
=== Started at 2024-02-19 17:25:03
Could not find element wait_for_parallel_writer in Config.
*** User 2024-02-19 17:25:03.669 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-19 17:25:03.670 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='560b173bc4a98a72' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-19 17:25:03.672 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-19 17:25:03.673 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfbGlzdF9yb29tX2FmZmlsaWF0aW9uc184NjQAbWF0eWdyeXNh</auth>
*** User 2024-02-19 17:25:03.675 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-19 17:25:03.675 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-19 17:25:03.676 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='84c9201ca3c51e55' from='domain.example.com' version='1.0' xml:lang='en' to='alice_user_list_room_affiliations_864@domain.example.com'>
*** User 2024-02-19 17:25:03.676 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-19 17:25:03.676 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 out
<iq type='set' id='fafd53e9ad9431590d69f1385eb7aa4a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-19 17:25:03.677 ***🔗
alicE_user_list_room_affiliations_864@domain.example.com/res1 in
<iq id='fafd53e9ad9431590d69f1385eb7aa4a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_list_room_affiliations_864@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-19 17:25:03.678 ***🔗
alice_user_list_room_affiliations_864@domain.example.com/res1 out
<iq type='set' id='03be0ef1270797f4128fe0545365d775'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-19 17:25:03.679 ***🔗
alice_user_list_room_affiliations_864@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_user_list_room_affiliations_864@domain.example.com/res1' id='03be0ef1270797f4128fe0545365d775' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-19 17:25:03.679 ***🔗
alice_user_list_room_affiliations_864@domain.example.com/res1 out
<presence/>
*** User 2024-02-19 17:25:03.681 ***🔗
alice_user_list_room_affiliations_864@domain.example.com/res1 in
<presence from='alice_user_list_room_affiliations_864@domain.example.com/res1' to='alice_user_list_room_affiliations_864@domain.example.com/res1'/>
*** User 2024-02-19 17:25:03.682 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-19 17:25:03.683 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a3f696a45b60561' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-19 17:25:03.683 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-19 17:25:03.684 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2xpc3Rfcm9vbV9hZmZpbGlhdGlvbnNfODY0AG1ha3JvbGlrYQ==</auth>
*** User 2024-02-19 17:25:03.685 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-19 17:25:03.685 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-19 17:25:03.686 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6b3be7c204d90ec' from='domain.example.com' version='1.0' xml:lang='en' to='bob_user_list_room_affiliations_864@domain.example.com'>
*** User 2024-02-19 17:25:03.686 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-19 17:25:03.687 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 out
<iq type='set' id='02c0e80a60d47f7ada4d49bc1b828d04'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-19 17:25:03.688 ***🔗
bOb_user_list_room_affiliations_864@domain.example.com/res1 in
<iq id='02c0e80a60d47f7ada4d49bc1b828d04' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_list_room_affiliations_864@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-19 17:25:03.688 ***🔗
bob_user_list_room_affiliations_864@domain.example.com/res1 out
<iq type='set' id='3094a9ba48b7780adc778f71266c6025'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-19 17:25:03.689 ***🔗
bob_user_list_room_affiliations_864@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_user_list_room_affiliations_864@domain.example.com/res1' id='3094a9ba48b7780adc778f71266c6025' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-19 17:25:03.689 ***🔗
bob_user_list_room_affiliations_864@domain.example.com/res1 out
<presence/>
*** User 2024-02-19 17:25:03.690 ***🔗
bob_user_list_room_affiliations_864@domain.example.com/res1 in
<presence from='bob_user_list_room_affiliations_864@domain.example.com/res1' to='bob_user_list_room_affiliations_864@domain.example.com/res1'/>
*** User 2024-02-19 17:25:03.691 ***🔗
bob_user_list_room_affiliations_864@domain.example.com/res1 out
<presence to='room-alice_user_list_room_affiliations_864@groupchats.domain.example.com/Bobek'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
*** User 2024-02-19 17:25:03.693 ***🔗
bob_user_list_room_affiliations_864@domain.example.com/res1 in
<presence from='room-alice_user_list_room_affiliations_864@groupchats.domain.example.com/Bobek' to='bob_user_list_room_affiliations_864@domain.example.com/res1'>
<x xmlns='http://jabber.org/protocol/muc'>
<item affiliation='none' role='participant'/>
<status code='110'/>
<status code='201'/>
</x>
</presence>
*** User 2024-02-19 17:25:03.693 ***🔗
alice_user_list_room_affiliations_864@domain.example.com/res1 out
<presence to='room-alice_user_list_room_affiliations_864@groupchats.domain.example.com/Ali'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
*** User 2024-02-19 17:25:03.695 ***🔗
alice_user_list_room_affiliations_864@domain.example.com/res1 in
<presence from='room-alice_user_list_room_affiliations_864@groupchats.domain.example.com/Bobek' to='alice_user_list_room_affiliations_864@domain.example.com/res1'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item jid='bob_user_list_room_affiliations_864@domain.example.com/res1' affiliation='none' role='participant'/>
</x>
</presence>
*** User 2024-02-19 17:25:03.701 ***🔗
REST request:
Code: 200
Req: {<0.20120.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c1b4f69f292dd3b6">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9saXN0X3Jvb21fYWZmaWxpYXRpb25zXzg2NEBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<"{\"variables\":{\"room\":\"room-alice_user_list_room_affiliations_864@groupchats.domain.example.com\",\"affiliation\":\"OWNER\"},\"query\":\"query ($affiliation: MUCAffiliation, $room: BareJID!) { muc { listRoomAffiliations(affiliation: $affiliation, room: $room) { affiliation jid } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 19 Feb 2024 17:25:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"132">>}],
<<"{\"data\":{\"muc\":{\"listRoomAffiliations\":[{\"jid\":\"alice_user_list_room_affiliations_864@domain.example.com\",\"affiliation\":\"OWNER\"}]}}}">>,
271,2789}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"room\":\"room-alice_user_list_room_affiliations_864@groupchats.domain.example.com\",\"affiliation\":\"OWNER\"},\"query\":\"query ($affiliation: MUCAffiliation, $room: BareJID!) { muc { listRoomAffiliations(affiliation: $affiliation, room: $room) { affiliation jid } } }\"}">>,
creds =>
{<<"alice_user_list_room_affiliations_864@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-02-19 17:25:03.706 ***🔗
REST request:
Code: 200
Req: {<0.20132.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7508c73afcfab844">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9saXN0X3Jvb21fYWZmaWxpYXRpb25zXzg2NEBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<"{\"variables\":{\"room\":\"room-alice_user_list_room_affiliations_864@groupchats.domain.example.com\",\"affiliation\":\"MEMBER\",\"user\":\"bob_user_list_room_affiliations_864@domain.example.com\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 19 Feb 2024 17:25:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"70">>}],
<<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
208,2228}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"room\":\"room-alice_user_list_room_affiliations_864@groupchats.domain.example.com\",\"affiliation\":\"MEMBER\",\"user\":\"bob_user_list_room_affiliations_864@domain.example.com\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
creds =>
{<<"alice_user_list_room_affiliations_864@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-02-19 17:25:03.710 ***🔗
REST request:
Code: 200
Req: {<0.20149.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ca90ffa72cb18c40">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9saXN0X3Jvb21fYWZmaWxpYXRpb25zXzg2NEBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<"{\"variables\":{\"room\":\"room-alice_user_list_room_affiliations_864@groupchats.domain.example.com\",\"affiliation\":\"MEMBER\"},\"query\":\"query ($affiliation: MUCAffiliation, $room: BareJID!) { muc { listRoomAffiliations(affiliation: $affiliation, room: $room) { affiliation jid } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 19 Feb 2024 17:25:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"131">>}],
<<"{\"data\":{\"muc\":{\"listRoomAffiliations\":[{\"jid\":\"bob_user_list_room_affiliations_864@domain.example.com\",\"affiliation\":\"MEMBER\"}]}}}">>,
270,1700}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"room\":\"room-alice_user_list_room_affiliations_864@groupchats.domain.example.com\",\"affiliation\":\"MEMBER\"},\"query\":\"query ($affiliation: MUCAffiliation, $room: BareJID!) { muc { listRoomAffiliations(affiliation: $affiliation, room: $room) { affiliation jid } } }\"}">>,
creds =>
{<<"alice_user_list_room_affiliations_864@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-02-19 17:25:03.772 ***🔗
REST request:
Code: 200
Req: {<0.20157.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a4095a9676d416e5">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9saXN0X3Jvb21fYWZmaWxpYXRpb25zXzg2NEBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<"{\"variables\":{\"room\":\"room-alice_user_list_room_affiliations_864@groupchats.domain.example.com\",\"affiliation\":null},\"query\":\"query ($affiliation: MUCAffiliation, $room: BareJID!) { muc { listRoomAffiliations(affiliation: $affiliation, room: $room) { affiliation jid } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 19 Feb 2024 17:25:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"220">>}],
<<"{\"data\":{\"muc\":{\"listRoomAffiliations\":[{\"jid\":\"alice_user_list_room_affiliations_864@domain.example.com\",\"affiliation\":\"OWNER\"},{\"jid\":\"bob_user_list_room_affiliations_864@domain.example.com\",\"affiliation\":\"MEMBER\"}]}}}">>,
359,1538}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"room\":\"room-alice_user_list_room_affiliations_864@groupchats.domain.example.com\",\"affiliation\":null},\"query\":\"query ($affiliation: MUCAffiliation, $room: BareJID!) { muc { listRoomAffiliations(affiliation: $affiliation, room: $room) { affiliation jid } } }\"}">>,
creds =>
{<<"alice_user_list_room_affiliations_864@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-02-19 17:25:03.772 ***🔗
bob_user_list_room_affiliations_864@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-19 17:25:03.772 ***🔗
bob_user_list_room_affiliations_864@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-19 17:25:03.772 ***🔗
alice_user_list_room_affiliations_864@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-19 17:25:03.773 ***🔗
alice_user_list_room_affiliations_864@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-19 17:25:03.774 ***🔗
waiting for room_archive_size is done in 0 miliseconds
=== Ended at 2024-02-19 17:25:03
=== successfully completed test case
=== === Returned value: ok