=== Test case: graphql_muc_SUITE:user_member_set_user_affiliation/1 (click for source code)
=== Config value:
[{watchdog,<0.19864.0>},
{schema_endpoint,user},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{preset,"odbc_mssql_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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.graphql_muc_SUITE.logs/run.2024-03-08_09.03.31/graphql_muc_suite.user_member_set_user_affiliation.43138.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.graphql_muc_SUITE.logs/run.2024-03-08_09.03.31/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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}}},
{{saved_modules,mongooseim@localhost,<<"localhost.bis">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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@d091d39a81d0.2024-03-08_08.59.35"
=== Started at 2024-03-08 09:03:32
*** User 2024-03-08 09:03:32.416 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:03:32.416 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7048a190f9fe6d29' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:03:32.417 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/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-08 09:03:32.417 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3NQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-08 09:03:32.419 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:03:32.419 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:03:32.420 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5299bc322b6880eb' from='localhost' version='1.0' xml:lang='en' to='alice_user_member_set_user_affiliation_875@localhost'>
*** User 2024-03-08 09:03:32.420 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/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-08 09:03:32.420 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/res1 out
<iq type='set' id='c2d6bb61510ec3244d1857e1e2a7813d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:03:32.420 ***🔗
alicE_user_member_set_user_affiliation_875@localhost/res1 in
<iq id='c2d6bb61510ec3244d1857e1e2a7813d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_member_set_user_affiliation_875@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:03:32.421 ***🔗
alice_user_member_set_user_affiliation_875@localhost/res1 out
<iq type='set' id='ae722abde58972ada4813515f3c81dad'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:03:32.422 ***🔗
alice_user_member_set_user_affiliation_875@localhost/res1 in
<iq from='localhost' to='alice_user_member_set_user_affiliation_875@localhost/res1' id='ae722abde58972ada4813515f3c81dad' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:03:32.422 ***🔗
alice_user_member_set_user_affiliation_875@localhost/res1 out
<presence/>
*** User 2024-03-08 09:03:32.487 ***🔗
alice_user_member_set_user_affiliation_875@localhost/res1 in
<presence from='alice_user_member_set_user_affiliation_875@localhost/res1' to='alice_user_member_set_user_affiliation_875@localhost/res1'/>
Could not find element wait_for_parallel_writer in Config.
*** User 2024-03-08 09:03:32.489 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:03:32.489 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bfd3a8b59252fe3c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:03:32.490 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/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-08 09:03:32.490 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX21lbWJlcl9zZXRfdXNlcl9hZmZpbGlhdGlvbl84NzUAbWFrcm9saWth</auth>
*** User 2024-03-08 09:03:32.493 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:03:32.493 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:03:32.493 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='73b95ef2122bd453' from='localhost' version='1.0' xml:lang='en' to='bob_user_member_set_user_affiliation_875@localhost'>
*** User 2024-03-08 09:03:32.493 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/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-08 09:03:32.494 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/res1 out
<iq type='set' id='63425a76e9bc9553f83e974de94cae9d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:03:32.495 ***🔗
bOb_user_member_set_user_affiliation_875@localhost/res1 in
<iq id='63425a76e9bc9553f83e974de94cae9d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_member_set_user_affiliation_875@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:03:32.495 ***🔗
bob_user_member_set_user_affiliation_875@localhost/res1 out
<iq type='set' id='7452b000fc7187f732c0be999f4c5f3c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:03:32.496 ***🔗
bob_user_member_set_user_affiliation_875@localhost/res1 in
<iq from='localhost' to='bob_user_member_set_user_affiliation_875@localhost/res1' id='7452b000fc7187f732c0be999f4c5f3c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:03:32.496 ***🔗
bob_user_member_set_user_affiliation_875@localhost/res1 out
<presence/>
*** User 2024-03-08 09:03:32.498 ***🔗
bob_user_member_set_user_affiliation_875@localhost/res1 in
<presence from='bob_user_member_set_user_affiliation_875@localhost/res1' to='bob_user_member_set_user_affiliation_875@localhost/res1'/>
*** User 2024-03-08 09:03:32.500 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:03:32.500 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7b436724676e72f5' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:03:32.501 ***🔗
kate_user_member_set_user_affiliation_875@localhost/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-08 09:03:32.501 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODc1AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-08 09:03:32.506 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:03:32.506 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:03:32.506 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e98e25299b509b8' from='localhost' version='1.0' xml:lang='en' to='kate_user_member_set_user_affiliation_875@localhost'>
*** User 2024-03-08 09:03:32.506 ***🔗
kate_user_member_set_user_affiliation_875@localhost/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-08 09:03:32.507 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 out
<iq type='set' id='3716eab478ff701d409c2a6ff3ae6a0e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:03:32.507 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 in
<iq id='3716eab478ff701d409c2a6ff3ae6a0e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_user_member_set_user_affiliation_875@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:03:32.507 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 out
<iq type='set' id='af95ceb3a0dbd4ec242308d895efc769'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:03:32.508 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 in
<iq from='localhost' to='kate_user_member_set_user_affiliation_875@localhost/res1' id='af95ceb3a0dbd4ec242308d895efc769' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:03:32.508 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 out
<presence/>
*** User 2024-03-08 09:03:32.509 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 in
<presence from='kate_user_member_set_user_affiliation_875@localhost/res1' to='kate_user_member_set_user_affiliation_875@localhost/res1'/>
*** User 2024-03-08 09:03:32.516 ***🔗
REST request:
Code: 200
Req: {<0.20470.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b8393228256354be">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODc1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"bob_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"70">>}],
<<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
208,1934}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_user_member_set_user_affiliation_875@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"bob_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-08 09:03:32.588 ***🔗
REST request:
Code: 200
Req: {<0.20489.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4d86b8dcc4ae9c87">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"278">>}],
<<"{\"errors\":[{\"path\":[\"muc\",\"setUserAffiliation\"],\"message\":\"Given user does not have permission to set the member affiliation\",\"extensions\":{\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
417,2373}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_member_set_user_affiliation_875@localhost">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-08 09:03:32.591 ***🔗
REST request:
Code: 200
Req: {<0.20506.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9fd2be3fe3e24a69">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"affiliation\":\"ADMIN\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"277">>}],
<<"{\"errors\":[{\"path\":[\"muc\",\"setUserAffiliation\"],\"message\":\"Given user does not have permission to set the admin affiliation\",\"extensions\":{\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
416,1898}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_member_set_user_affiliation_875@localhost">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"variables\":{\"affiliation\":\"ADMIN\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-08 09:03:32.594 ***🔗
REST request:
Code: 200
Req: {<0.20520.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6154c0ebe6d67321">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"affiliation\":\"OWNER\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"277">>}],
<<"{\"errors\":[{\"path\":[\"muc\",\"setUserAffiliation\"],\"message\":\"Given user does not have permission to set the owner affiliation\",\"extensions\":{\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
416,1751}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_member_set_user_affiliation_875@localhost">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"variables\":{\"affiliation\":\"OWNER\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-08 09:03:32.597 ***🔗
REST request:
Code: 200
Req: {<0.20522.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"44f6ae6e95fce717">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODc1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"70">>}],
<<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
208,1956}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_user_member_set_user_affiliation_875@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-08 09:03:32.601 ***🔗
REST request:
Code: 200
Req: {<0.20526.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c953f12edd2bc52">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"affiliation\":\"NONE\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"276">>}],
<<"{\"errors\":[{\"path\":[\"muc\",\"setUserAffiliation\"],\"message\":\"Given user does not have permission to set the none affiliation\",\"extensions\":{\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
415,2200}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_member_set_user_affiliation_875@localhost">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"variables\":{\"affiliation\":\"NONE\",\"room\":\"room-alice_user_member_set_user_affiliation_875@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_875@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
return_maps => true,return_headers => true}
*** User 2024-03-08 09:03:32.601 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:03:32.601 ***🔗
kate_user_member_set_user_affiliation_875@localhost/res1 in
</stream:stream>
*** User 2024-03-08 09:03:32.601 ***🔗
bob_user_member_set_user_affiliation_875@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:03:32.602 ***🔗
bob_user_member_set_user_affiliation_875@localhost/res1 in
</stream:stream>
*** User 2024-03-08 09:03:32.602 ***🔗
alice_user_member_set_user_affiliation_875@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:03:32.602 ***🔗
alice_user_member_set_user_affiliation_875@localhost/res1 in
</stream:stream>
*** User 2024-03-08 09:03:32.603 ***🔗
waiting for room_archive_size is done in 0 miliseconds
=== Ended at 2024-03-08 09:03:32
=== successfully completed test case
=== === Returned value: ok