=== Test case: graphql_muc_SUITE:user_participant_set_user_role/1 (click for source code)
=== Config value:
[{watchdog,<0.19629.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@a950b60ae868.2024-03-18_09.25.02/big_tests.tests.graphql_muc_SUITE.logs/run.2024-03-18_09.28.34/graphql_muc_suite.user_participant_set_user_role.16005.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@a950b60ae868.2024-03-18_09.25.02/big_tests.tests.graphql_muc_SUITE.logs/run.2024-03-18_09.28.34/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_amp => #{},
mod_sic => #{iqdisc => one_queue},
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_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a950b60ae868.2024-03-18_09.25.02"
=== Started at 2024-03-18 09:28:35
Could not find element wait_for_parallel_writer in Config.
*** User 2024-03-18 09:28:35.326 ***🔗
alicE_user_participant_set_user_role_868@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-03-18 09:28:35.326 ***🔗
alicE_user_participant_set_user_role_868@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4d49dbfe798f9adb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:28:35.326 ***🔗
alicE_user_participant_set_user_role_868@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-03-18 09:28:35.327 ***🔗
alicE_user_participant_set_user_role_868@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfcGFydGljaXBhbnRfc2V0X3VzZXJfcm9sZV84NjgAbWF0eWdyeXNh</auth>
*** User 2024-03-18 09:28:35.328 ***🔗
alicE_user_participant_set_user_role_868@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:28:35.328 ***🔗
alicE_user_participant_set_user_role_868@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-03-18 09:28:35.328 ***🔗
alicE_user_participant_set_user_role_868@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='61e2ef2099da7527' from='domain.example.com' version='1.0' xml:lang='en' to='alice_user_participant_set_user_role_868@domain.example.com'>
*** User 2024-03-18 09:28:35.328 ***🔗
alicE_user_participant_set_user_role_868@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-03-18 09:28:35.328 ***🔗
alicE_user_participant_set_user_role_868@domain.example.com/res1 out
<iq type='set' id='233d811cb017bce72ba44253dfd63b97'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:28:35.329 ***🔗
alicE_user_participant_set_user_role_868@domain.example.com/res1 in
<iq id='233d811cb017bce72ba44253dfd63b97' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_participant_set_user_role_868@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:28:35.329 ***🔗
alice_user_participant_set_user_role_868@domain.example.com/res1 out
<iq type='set' id='77a56d9ebeb8a92601f952f1f6f50b4b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:28:35.329 ***🔗
alice_user_participant_set_user_role_868@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_user_participant_set_user_role_868@domain.example.com/res1' id='77a56d9ebeb8a92601f952f1f6f50b4b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:28:35.330 ***🔗
alice_user_participant_set_user_role_868@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:28:35.331 ***🔗
alice_user_participant_set_user_role_868@domain.example.com/res1 in
<presence from='alice_user_participant_set_user_role_868@domain.example.com/res1' to='alice_user_participant_set_user_role_868@domain.example.com/res1'/>
*** User 2024-03-18 09:28:35.332 ***🔗
bOb_user_participant_set_user_role_868@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-03-18 09:28:35.332 ***🔗
bOb_user_participant_set_user_role_868@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='81ff656f91e22405' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:28:35.332 ***🔗
bOb_user_participant_set_user_role_868@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-03-18 09:28:35.332 ***🔗
bOb_user_participant_set_user_role_868@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX3BhcnRpY2lwYW50X3NldF91c2VyX3JvbGVfODY4AG1ha3JvbGlrYQ==</auth>
*** User 2024-03-18 09:28:35.339 ***🔗
bOb_user_participant_set_user_role_868@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:28:35.339 ***🔗
bOb_user_participant_set_user_role_868@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-03-18 09:28:35.339 ***🔗
bOb_user_participant_set_user_role_868@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb830ecf651c11bf' from='domain.example.com' version='1.0' xml:lang='en' to='bob_user_participant_set_user_role_868@domain.example.com'>
*** User 2024-03-18 09:28:35.339 ***🔗
bOb_user_participant_set_user_role_868@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-03-18 09:28:35.339 ***🔗
bOb_user_participant_set_user_role_868@domain.example.com/res1 out
<iq type='set' id='6ef57bdd5d42b8992ea3fec47d12e06c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:28:35.340 ***🔗
bOb_user_participant_set_user_role_868@domain.example.com/res1 in
<iq id='6ef57bdd5d42b8992ea3fec47d12e06c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_participant_set_user_role_868@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:28:35.340 ***🔗
bob_user_participant_set_user_role_868@domain.example.com/res1 out
<iq type='set' id='d1c83bc77c1d91d55c5c6cef0c8a2f26'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:28:35.340 ***🔗
bob_user_participant_set_user_role_868@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_user_participant_set_user_role_868@domain.example.com/res1' id='d1c83bc77c1d91d55c5c6cef0c8a2f26' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:28:35.340 ***🔗
bob_user_participant_set_user_role_868@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:28:35.341 ***🔗
bob_user_participant_set_user_role_868@domain.example.com/res1 in
<presence from='bob_user_participant_set_user_role_868@domain.example.com/res1' to='bob_user_participant_set_user_role_868@domain.example.com/res1'/>
*** User 2024-03-18 09:28:35.401 ***🔗
kate_user_participant_set_user_role_868@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-03-18 09:28:35.401 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c33bb8ddc502a3e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:28:35.402 ***🔗
kate_user_participant_set_user_role_868@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-03-18 09:28:35.402 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdXNlcl9wYXJ0aWNpcGFudF9zZXRfdXNlcl9yb2xlXzg2OABtYWtyb3dlO3A=</auth>
*** User 2024-03-18 09:28:35.403 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:28:35.403 ***🔗
kate_user_participant_set_user_role_868@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-03-18 09:28:35.403 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='319db403ea5d19f1' from='domain.example.com' version='1.0' xml:lang='en' to='kate_user_participant_set_user_role_868@domain.example.com'>
*** User 2024-03-18 09:28:35.403 ***🔗
kate_user_participant_set_user_role_868@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-03-18 09:28:35.403 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 out
<iq type='set' id='f20e6c54c2fdcb8fb49767fdf803cb98'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:28:35.404 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 in
<iq id='f20e6c54c2fdcb8fb49767fdf803cb98' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_user_participant_set_user_role_868@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:28:35.404 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 out
<iq type='set' id='3c7fb0a32802cf80bf3e081a5179c1d5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:28:35.404 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_user_participant_set_user_role_868@domain.example.com/res1' id='3c7fb0a32802cf80bf3e081a5179c1d5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:28:35.404 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:28:35.406 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 in
<presence from='kate_user_participant_set_user_role_868@domain.example.com/res1' to='kate_user_participant_set_user_role_868@domain.example.com/res1'/>
*** User 2024-03-18 09:28:35.406 ***🔗
bob_user_participant_set_user_role_868@domain.example.com/res1 out
<presence to='room-alice_user_participant_set_user_role_868@groupchats.domain.example.com/Boobek'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
*** User 2024-03-18 09:28:35.407 ***🔗
bob_user_participant_set_user_role_868@domain.example.com/res1 in
<presence from='room-alice_user_participant_set_user_role_868@groupchats.domain.example.com/Boobek' to='bob_user_participant_set_user_role_868@domain.example.com/res1'>
<x xmlns='http://jabber.org/protocol/muc'>
<item jid='bob_user_participant_set_user_role_868@domain.example.com/res1' affiliation='none' role='participant'/>
<status code='110'/>
<status code='100'/>
<status code='201'/>
</x>
</presence>
*** User 2024-03-18 09:28:35.407 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 out
<presence to='room-alice_user_participant_set_user_role_868@groupchats.domain.example.com/Katek'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
*** User 2024-03-18 09:28:35.408 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 in
<presence from='room-alice_user_participant_set_user_role_868@groupchats.domain.example.com/Boobek' to='kate_user_participant_set_user_role_868@domain.example.com/res1'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item jid='bob_user_participant_set_user_role_868@domain.example.com/res1' affiliation='none' role='participant'/>
</x>
</presence>
*** User 2024-03-18 09:28:35.410 ***🔗
REST request:
Code: 200
Req: {<0.20232.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e5380edfe0c5deea">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfcGFydGljaXBhbnRfc2V0X3VzZXJfcm9sZV84NjhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"variables\":{\"role\":\"VISITOR\",\"room\":\"room-alice_user_participant_set_user_role_868@groupchats.domain.example.com\",\"nick\":\"Katek\"},\"query\":\"mutation ($nick: ResourceName!, $role: MUCRole!, $room: BareJID!) { muc { setUserRole(nick: $nick, role: $role, room: $room) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:28:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"272">>}],
<<"{\"errors\":[{\"path\":[\"muc\",\"setUserRole\"],\"message\":\"Given user does not have permission to set the visitor role\",\"extensions\":{\"room\":\"room-alice_user_participant_set_user_role_868@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserRole\":null}}}">>,
411,1106}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_participant_set_user_role_868@domain.example.com">>,
<<"makrolika">>},
body =>
<<"{\"variables\":{\"role\":\"VISITOR\",\"room\":\"room-alice_user_participant_set_user_role_868@groupchats.domain.example.com\",\"nick\":\"Katek\"},\"query\":\"mutation ($nick: ResourceName!, $role: MUCRole!, $room: BareJID!) { muc { setUserRole(nick: $nick, role: $role, room: $room) } }\"}">>,
method => <<"POST">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-18 09:28:35.416 ***🔗
REST request:
Code: 200
Req: {<0.20239.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"04133d0462844e0e">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfcGFydGljaXBhbnRfc2V0X3VzZXJfcm9sZV84NjhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"variables\":{\"role\":\"PARTICIPANT\",\"room\":\"room-alice_user_participant_set_user_role_868@groupchats.domain.example.com\",\"nick\":\"Katek\"},\"query\":\"mutation ($nick: ResourceName!, $role: MUCRole!, $room: BareJID!) { muc { setUserRole(nick: $nick, role: $role, room: $room) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:28:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"56">>}],
<<"{\"data\":{\"muc\":{\"setUserRole\":\"Role set successfully\"}}}">>,
194,4129}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_participant_set_user_role_868@domain.example.com">>,
<<"makrolika">>},
body =>
<<"{\"variables\":{\"role\":\"PARTICIPANT\",\"room\":\"room-alice_user_participant_set_user_role_868@groupchats.domain.example.com\",\"nick\":\"Katek\"},\"query\":\"mutation ($nick: ResourceName!, $role: MUCRole!, $room: BareJID!) { muc { setUserRole(nick: $nick, role: $role, room: $room) } }\"}">>,
method => <<"POST">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-18 09:28:35.419 ***🔗
REST request:
Code: 200
Req: {<0.20259.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a35cac8b3e07d2e0">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfcGFydGljaXBhbnRfc2V0X3VzZXJfcm9sZV84NjhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"variables\":{\"role\":\"MODERATOR\",\"room\":\"room-alice_user_participant_set_user_role_868@groupchats.domain.example.com\",\"nick\":\"Katek\"},\"query\":\"mutation ($nick: ResourceName!, $role: MUCRole!, $room: BareJID!) { muc { setUserRole(nick: $nick, role: $role, room: $room) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:28:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"274">>}],
<<"{\"errors\":[{\"path\":[\"muc\",\"setUserRole\"],\"message\":\"Given user does not have permission to set the moderator role\",\"extensions\":{\"room\":\"room-alice_user_participant_set_user_role_868@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserRole\":null}}}">>,
413,1350}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_participant_set_user_role_868@domain.example.com">>,
<<"makrolika">>},
body =>
<<"{\"variables\":{\"role\":\"MODERATOR\",\"room\":\"room-alice_user_participant_set_user_role_868@groupchats.domain.example.com\",\"nick\":\"Katek\"},\"query\":\"mutation ($nick: ResourceName!, $role: MUCRole!, $room: BareJID!) { muc { setUserRole(nick: $nick, role: $role, room: $room) } }\"}">>,
method => <<"POST">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-18 09:28:35.419 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:28:35.419 ***🔗
kate_user_participant_set_user_role_868@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-18 09:28:35.420 ***🔗
bob_user_participant_set_user_role_868@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:28:35.420 ***🔗
bob_user_participant_set_user_role_868@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-18 09:28:35.420 ***🔗
alice_user_participant_set_user_role_868@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:28:35.420 ***🔗
alice_user_participant_set_user_role_868@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-18 09:28:35.421 ***🔗
waiting for room_archive_size is done in 0 miliseconds
=== Ended at 2024-03-18 09:28:35
=== successfully completed test case
=== === Returned value: ok