=== Test case: graphql_muc_SUITE:user_member_set_user_affiliation/1 (click for source code)
=== Config value:
[{schema_endpoint,user},
{watchdog,<0.15515.0>},
{mam_backend,riak},
{archive_wait,2500},
{mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_muc_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.graphql_muc_SUITE.logs/run.2022-06-22_08.47.50/graphql_muc_suite.user_member_set_user_affiliation.28674.html"},
{tc_group_properties,[{name,user_muc},parallel]},
{tc_group_path,[]},
{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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.graphql_muc_SUITE.logs/run.2022-06-22_08.47.50/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_commands => #{},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
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"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => riak,iqdisc => one_queue,
riak =>
#{bucket_type => <<"rosters">>,
version_bucket_type => <<"roster_versions">>},
store_current_id => false,versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => riak,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,
riak =>
#{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58"
=== Started at 2022-06-22 08:47:50
*** User 2022-06-22 08:47:51.457 ***🔗
alicE_user_member_set_user_affiliation_701@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-06-22 08:47:51.457 ***🔗
alicE_user_member_set_user_affiliation_701@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb03d74a4c23766f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:47:51.458 ***🔗
alicE_user_member_set_user_affiliation_701@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-06-22 08:47:51.458 ***🔗
alicE_user_member_set_user_affiliation_701@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzcwMQBtYXR5Z3J5c2E=</auth>
*** User 2022-06-22 08:47:51.468 ***🔗
alicE_user_member_set_user_affiliation_701@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:47:51.468 ***🔗
alicE_user_member_set_user_affiliation_701@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-06-22 08:47:51.474 ***🔗
alicE_user_member_set_user_affiliation_701@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a9c4b8738bf04cb9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:47:51.474 ***🔗
alicE_user_member_set_user_affiliation_701@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-06-22 08:47:51.474 ***🔗
alicE_user_member_set_user_affiliation_701@localhost/res1 out
<iq type='set' id='48ea6c06111db5a5ec4aff019a5f39b6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:47:51.557 ***🔗
alicE_user_member_set_user_affiliation_701@localhost/res1 in
<iq id='48ea6c06111db5a5ec4aff019a5f39b6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_member_set_user_affiliation_701@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:47:51.557 ***🔗
alice_user_member_set_user_affiliation_701@localhost/res1 out
<iq type='set' id='f94635cee22cb5bacf687e19a7acd2c5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:47:51.557 ***🔗
alice_user_member_set_user_affiliation_701@localhost/res1 in
<iq type='result' id='f94635cee22cb5bacf687e19a7acd2c5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:47:51.558 ***🔗
alice_user_member_set_user_affiliation_701@localhost/res1 out
<presence/>
*** User 2022-06-22 08:47:51.669 ***🔗
alice_user_member_set_user_affiliation_701@localhost/res1 in
<presence from='alice_user_member_set_user_affiliation_701@localhost/res1' to='alice_user_member_set_user_affiliation_701@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:47:51.669 ***🔗
bOb_user_member_set_user_affiliation_701@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-06-22 08:47:51.670 ***🔗
bOb_user_member_set_user_affiliation_701@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='644a3cf3784b4332' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:47:51.670 ***🔗
bOb_user_member_set_user_affiliation_701@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-06-22 08:47:51.670 ***🔗
bOb_user_member_set_user_affiliation_701@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX21lbWJlcl9zZXRfdXNlcl9hZmZpbGlhdGlvbl83MDEAbWFrcm9saWth</auth>
*** User 2022-06-22 08:47:51.861 ***🔗
bOb_user_member_set_user_affiliation_701@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:47:51.861 ***🔗
bOb_user_member_set_user_affiliation_701@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-06-22 08:47:51.861 ***🔗
bOb_user_member_set_user_affiliation_701@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a468d86443286a09' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:47:51.861 ***🔗
bOb_user_member_set_user_affiliation_701@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-06-22 08:47:51.862 ***🔗
bOb_user_member_set_user_affiliation_701@localhost/res1 out
<iq type='set' id='ea3048fcc7e52309750dfae9e1de730e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:47:51.862 ***🔗
bOb_user_member_set_user_affiliation_701@localhost/res1 in
<iq id='ea3048fcc7e52309750dfae9e1de730e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_member_set_user_affiliation_701@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:47:51.862 ***🔗
bob_user_member_set_user_affiliation_701@localhost/res1 out
<iq type='set' id='262b6d7f119c9307d89ae8b90de3f81c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:47:51.863 ***🔗
bob_user_member_set_user_affiliation_701@localhost/res1 in
<iq type='result' id='262b6d7f119c9307d89ae8b90de3f81c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:47:51.863 ***🔗
bob_user_member_set_user_affiliation_701@localhost/res1 out
<presence/>
*** User 2022-06-22 08:47:51.959 ***🔗
bob_user_member_set_user_affiliation_701@localhost/res1 in
<presence from='bob_user_member_set_user_affiliation_701@localhost/res1' to='bob_user_member_set_user_affiliation_701@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:47:51.960 ***🔗
kate_user_member_set_user_affiliation_701@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-06-22 08:47:51.960 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6a01faf02992c05' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:47:51.960 ***🔗
kate_user_member_set_user_affiliation_701@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-06-22 08:47:51.960 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fNzAxAG1ha3Jvd2U7cA==</auth>
*** User 2022-06-22 08:47:51.968 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:47:51.968 ***🔗
kate_user_member_set_user_affiliation_701@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-06-22 08:47:51.968 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='95952177365a0a68' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:47:51.968 ***🔗
kate_user_member_set_user_affiliation_701@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-06-22 08:47:51.968 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 out
<iq type='set' id='4973a186de394d05deee59d15659788a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:47:51.968 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 in
<iq id='4973a186de394d05deee59d15659788a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_user_member_set_user_affiliation_701@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:47:51.969 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 out
<iq type='set' id='fb78efe92df07b86b27589c65dea22c0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:47:51.969 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 in
<iq type='result' id='fb78efe92df07b86b27589c65dea22c0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:47:51.969 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 out
<presence/>
*** User 2022-06-22 08:47:52.090 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 in
<presence from='kate_user_member_set_user_affiliation_701@localhost/res1' to='kate_user_member_set_user_affiliation_701@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:47:52.099 ***🔗
REST request:
Code: 200
Req: {<0.16267.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a465314e2d0c4f76">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fNzAxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"user\":\"bob_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"MEMBER\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 08:47:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"70">>}],
<<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
208,2208}
Params: #{body =>
<<"{\"variables\":{\"user\":\"bob_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"MEMBER\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>,
creds =>
{<<"alice_user_member_set_user_affiliation_701@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,user},
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 08:47:52.164 ***🔗
REST request:
Code: 200
Req: {<0.16279.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b79d66c4e1d14178">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzcwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"MEMBER\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 08:47:51 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_701@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
417,63630}
Params: #{body =>
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"MEMBER\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>,
creds =>
{<<"bob_user_member_set_user_affiliation_701@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,user},
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 08:47:52.167 ***🔗
REST request:
Code: 200
Req: {<0.16301.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2c632cba60c52abc">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzcwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"ADMIN\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 08:47:51 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_701@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
416,1810}
Params: #{body =>
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"ADMIN\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>,
creds =>
{<<"bob_user_member_set_user_affiliation_701@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,user},
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 08:47:52.170 ***🔗
REST request:
Code: 200
Req: {<0.16305.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9b830bdb1dff7731">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzcwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"OWNER\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 08:47:51 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_701@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
416,2013}
Params: #{body =>
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"OWNER\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>,
creds =>
{<<"bob_user_member_set_user_affiliation_701@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,user},
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 08:47:52.173 ***🔗
REST request:
Code: 200
Req: {<0.16313.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bb194a047eac4fb8">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fNzAxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"MEMBER\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 08:47:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"70">>}],
<<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
208,2001}
Params: #{body =>
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"MEMBER\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>,
creds =>
{<<"alice_user_member_set_user_affiliation_701@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,user},
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 08:47:52.179 ***🔗
REST request:
Code: 200
Req: {<0.16321.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c793b101b8ec8d5c">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzcwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"NONE\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 08:47:51 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_701@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
415,3798}
Params: #{body =>
<<"{\"variables\":{\"user\":\"kate_user_member_set_user_affiliation_701@localhost\",\"room\":\"room-alice_user_member_set_user_affiliation_701@muc.localhost\",\"affiliation\":\"NONE\"},\"query\":\"mutation M1($room: JID!, $user: JID!, $affiliation: MUCAffiliation!)\\n { muc { setUserAffiliation(room: $room, user: $user, affiliation: $affiliation) } }\",\"operationName\":\"M1\"}">>,
creds =>
{<<"bob_user_member_set_user_affiliation_701@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,user},
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 08:47:52.179 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:47:52.179 ***🔗
kate_user_member_set_user_affiliation_701@localhost/res1 in
</stream:stream>
*** User 2022-06-22 08:47:52.179 ***🔗
bob_user_member_set_user_affiliation_701@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:47:52.179 ***🔗
bob_user_member_set_user_affiliation_701@localhost/res1 in
</stream:stream>
*** User 2022-06-22 08:47:52.179 ***🔗
alice_user_member_set_user_affiliation_701@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:47:52.180 ***🔗
alice_user_member_set_user_affiliation_701@localhost/res1 in
</stream:stream>
=== Ended at 2022-06-22 08:47:52
=== successfully completed test case
=== === Returned value: ok