=== Test case: graphql_muc_SUITE:user_member_set_user_affiliation/1 (click for source code)
=== Config value:
[{watchdog,<0.19742.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@9653e50c5872.2024-04-25_14.32.38/big_tests.tests.graphql_muc_SUITE.logs/run.2024-04-25_14.36.45/graphql_muc_suite.user_member_set_user_affiliation.18436.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@9653e50c5872.2024-04-25_14.32.38/big_tests.tests.graphql_muc_SUITE.logs/run.2024-04-25_14.36.45/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_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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@9653e50c5872.2024-04-25_14.32.38"
=== Started at 2024-04-25 14:36:46
*** User 2024-04-25 14:36:46.784 ***🔗
alicE_user_member_set_user_affiliation_885@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-04-25 14:36:46.786 ***🔗
alicE_user_member_set_user_affiliation_885@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d33685c4472ae13' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:36:46.787 ***🔗
alicE_user_member_set_user_affiliation_885@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-04-25 14:36:46.787 ***🔗
alicE_user_member_set_user_affiliation_885@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg4NQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-25 14:36:46.796 ***🔗
alicE_user_member_set_user_affiliation_885@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:36:46.796 ***🔗
alicE_user_member_set_user_affiliation_885@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-04-25 14:36:46.798 ***🔗
alicE_user_member_set_user_affiliation_885@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='06fb351fa8ca1b77' from='domain.example.com' version='1.0' xml:lang='en' to='alice_user_member_set_user_affiliation_885@domain.example.com'>
*** User 2024-04-25 14:36:46.798 ***🔗
alicE_user_member_set_user_affiliation_885@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-04-25 14:36:46.799 ***🔗
alicE_user_member_set_user_affiliation_885@domain.example.com/res1 out
<iq type='set' id='31b7c3cad781841b5d3d9215cd4a258d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 14:36:46.800 ***🔗
alicE_user_member_set_user_affiliation_885@domain.example.com/res1 in
<iq id='31b7c3cad781841b5d3d9215cd4a258d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_member_set_user_affiliation_885@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-25 14:36:46.800 ***🔗
alice_user_member_set_user_affiliation_885@domain.example.com/res1 out
<iq type='set' id='6516ac64210ce6b1293b8461cffc6e02'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:36:46.801 ***🔗
alice_user_member_set_user_affiliation_885@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_user_member_set_user_affiliation_885@domain.example.com/res1' id='6516ac64210ce6b1293b8461cffc6e02' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:36:46.802 ***🔗
alice_user_member_set_user_affiliation_885@domain.example.com/res1 out
<presence/>
*** User 2024-04-25 14:36:46.804 ***🔗
alice_user_member_set_user_affiliation_885@domain.example.com/res1 in
<presence from='alice_user_member_set_user_affiliation_885@domain.example.com/res1' to='alice_user_member_set_user_affiliation_885@domain.example.com/res1'/>
*** User 2024-04-25 14:36:46.808 ***🔗
bOb_user_member_set_user_affiliation_885@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-04-25 14:36:46.809 ***🔗
bOb_user_member_set_user_affiliation_885@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='35e01096802c5feb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:36:46.809 ***🔗
bOb_user_member_set_user_affiliation_885@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-04-25 14:36:46.809 ***🔗
bOb_user_member_set_user_affiliation_885@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX21lbWJlcl9zZXRfdXNlcl9hZmZpbGlhdGlvbl84ODUAbWFrcm9saWth</auth>
*** User 2024-04-25 14:36:46.811 ***🔗
bOb_user_member_set_user_affiliation_885@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:36:46.812 ***🔗
bOb_user_member_set_user_affiliation_885@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-04-25 14:36:46.812 ***🔗
bOb_user_member_set_user_affiliation_885@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='df793ef2b6989de6' from='domain.example.com' version='1.0' xml:lang='en' to='bob_user_member_set_user_affiliation_885@domain.example.com'>
*** User 2024-04-25 14:36:46.812 ***🔗
bOb_user_member_set_user_affiliation_885@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-04-25 14:36:46.812 ***🔗
bOb_user_member_set_user_affiliation_885@domain.example.com/res1 out
<iq type='set' id='9650e4c72395ecf6250ffc89eccc3632'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 14:36:46.813 ***🔗
bOb_user_member_set_user_affiliation_885@domain.example.com/res1 in
<iq id='9650e4c72395ecf6250ffc89eccc3632' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_member_set_user_affiliation_885@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-25 14:36:46.813 ***🔗
bob_user_member_set_user_affiliation_885@domain.example.com/res1 out
<iq type='set' id='0d244addb8da0ced67cd6870fafad1fc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:36:46.814 ***🔗
bob_user_member_set_user_affiliation_885@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_user_member_set_user_affiliation_885@domain.example.com/res1' id='0d244addb8da0ced67cd6870fafad1fc' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:36:46.814 ***🔗
bob_user_member_set_user_affiliation_885@domain.example.com/res1 out
<presence/>
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-25 14:36:46.819 ***🔗
bob_user_member_set_user_affiliation_885@domain.example.com/res1 in
<presence from='bob_user_member_set_user_affiliation_885@domain.example.com/res1' to='bob_user_member_set_user_affiliation_885@domain.example.com/res1'/>
*** User 2024-04-25 14:36:46.824 ***🔗
kate_user_member_set_user_affiliation_885@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-04-25 14:36:46.825 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f704b9f4005d4670' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:36:46.825 ***🔗
kate_user_member_set_user_affiliation_885@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-04-25 14:36:46.825 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODg1AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-25 14:36:46.868 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:36:46.869 ***🔗
kate_user_member_set_user_affiliation_885@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-04-25 14:36:46.870 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e86d3dbd63c1c9c' from='domain.example.com' version='1.0' xml:lang='en' to='kate_user_member_set_user_affiliation_885@domain.example.com'>
*** User 2024-04-25 14:36:46.870 ***🔗
kate_user_member_set_user_affiliation_885@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-04-25 14:36:46.870 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 out
<iq type='set' id='1c0b449424897671b6c580b6c52b0055'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 14:36:46.871 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 in
<iq id='1c0b449424897671b6c580b6c52b0055' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_user_member_set_user_affiliation_885@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-25 14:36:46.871 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 out
<iq type='set' id='d636c98a781d624feefd8a1a67402085'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:36:46.872 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_user_member_set_user_affiliation_885@domain.example.com/res1' id='d636c98a781d624feefd8a1a67402085' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:36:46.872 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 out
<presence/>
*** User 2024-04-25 14:36:46.874 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 in
<presence from='kate_user_member_set_user_affiliation_885@domain.example.com/res1' to='kate_user_member_set_user_affiliation_885@domain.example.com/res1'/>
*** User 2024-04-25 14:36:46.881 ***🔗
REST request:
Code: 200
Req: {<0.20311.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"92de71865d065f14">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODg1QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"bob_user_member_set_user_affiliation_885@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">>,<<"Thu, 25 Apr 2024 14:36:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"70">>}],
<<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
208,2180}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"bob_user_member_set_user_affiliation_885@domain.example.com\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
method => <<"POST">>,return_maps => true,
creds =>
{<<"alice_user_member_set_user_affiliation_885@domain.example.com">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-25 14:36:46.887 ***🔗
REST request:
Code: 200
Req: {<0.20320.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8d2dbfe8a65988e7">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg4NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@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">>,<<"Thu, 25 Apr 2024 14:36:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"294">>}],
<<"{\"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_885@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
433,2070}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@domain.example.com\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
method => <<"POST">>,return_maps => true,
creds =>
{<<"bob_user_member_set_user_affiliation_885@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-25 14:36:46.897 ***🔗
REST request:
Code: 200
Req: {<0.20328.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2d6cdaa4a37e19a4">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg4NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"variables\":{\"affiliation\":\"ADMIN\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@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">>,<<"Thu, 25 Apr 2024 14:36:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"293">>}],
<<"{\"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_885@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
432,7116}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"affiliation\":\"ADMIN\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@domain.example.com\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
method => <<"POST">>,return_maps => true,
creds =>
{<<"bob_user_member_set_user_affiliation_885@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-25 14:36:46.906 ***🔗
REST request:
Code: 200
Req: {<0.20347.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ce09d860438e2507">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg4NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"variables\":{\"affiliation\":\"OWNER\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@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">>,<<"Thu, 25 Apr 2024 14:36:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"293">>}],
<<"{\"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_885@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
432,1915}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"affiliation\":\"OWNER\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@domain.example.com\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
method => <<"POST">>,return_maps => true,
creds =>
{<<"bob_user_member_set_user_affiliation_885@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-25 14:36:46.912 ***🔗
REST request:
Code: 200
Req: {<0.20365.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c94131dac2d4226">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODg1QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@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">>,<<"Thu, 25 Apr 2024 14:36:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"70">>}],
<<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
208,3405}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@domain.example.com\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
method => <<"POST">>,return_maps => true,
creds =>
{<<"alice_user_member_set_user_affiliation_885@domain.example.com">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-25 14:36:46.976 ***🔗
REST request:
Code: 200
Req: {<0.20374.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cf8b2419697099ac">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg4NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"variables\":{\"affiliation\":\"NONE\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@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">>,<<"Thu, 25 Apr 2024 14:36:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"292">>}],
<<"{\"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_885@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
431,58459}
Params: #{port => 5561,path => <<"/api/graphql">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"variables\":{\"affiliation\":\"NONE\",\"room\":\"room-alice_user_member_set_user_affiliation_885@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_885@domain.example.com\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
role => {graphql,user},
method => <<"POST">>,return_maps => true,
creds =>
{<<"bob_user_member_set_user_affiliation_885@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-25 14:36:46.976 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-25 14:36:46.980 ***🔗
kate_user_member_set_user_affiliation_885@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-25 14:36:46.981 ***🔗
bob_user_member_set_user_affiliation_885@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-25 14:36:46.983 ***🔗
bob_user_member_set_user_affiliation_885@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-25 14:36:46.983 ***🔗
alice_user_member_set_user_affiliation_885@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-25 14:36:46.984 ***🔗
alice_user_member_set_user_affiliation_885@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-25 14:36:46.986 ***🔗
waiting for room_archive_size is done in 0 miliseconds
=== Ended at 2024-04-25 14:36:47
=== successfully completed test case
=== === Returned value: ok