=== Test case: graphql_muc_SUITE:user_member_set_user_affiliation/1 (click for source code)

=== Config value:

    [{watchdog,<0.19370.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@647ed17fbff4.2024-02-20_07.34.51/big_tests.tests.graphql_muc_SUITE.logs/run.2024-02-20_07.38.56/graphql_muc_suite.user_member_set_user_affiliation.23044.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@647ed17fbff4.2024-02-20_07.34.51/big_tests.tests.graphql_muc_SUITE.logs/run.2024-02-20_07.38.56/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@647ed17fbff4.2024-02-20_07.34.51"

=== Started at 2024-02-20 07:38:57


*** CT 2024-02-20 07:38:57.110 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1495.html

*** User 2024-02-20 07:38:57.393 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-20 07:38:57.397 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d0c369480fbeec5' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-20 07:38:57.397 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-20 07:38:57.397 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3NwBtYXR5Z3J5c2E=</auth>



*** User 2024-02-20 07:38:57.400 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-20 07:38:57.400 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-20 07:38:57.402 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='24efbe6f1fd6fbc5' from='domain.example.com' version='1.0' xml:lang='en' to='alice_user_member_set_user_affiliation_877@domain.example.com'>

*** User 2024-02-20 07:38:57.402 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-20 07:38:57.402 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 out
<iq type='set' id='a28780324c62aefcb59d1557fea2127a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-20 07:38:57.403 ***🔗
alicE_user_member_set_user_affiliation_877@domain.example.com/res1 in
<iq id='a28780324c62aefcb59d1557fea2127a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_user_member_set_user_affiliation_877@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-20 07:38:57.403 ***🔗
alice_user_member_set_user_affiliation_877@domain.example.com/res1 out
<iq type='set' id='802a8377e8ababa2c590bfc1d9661e12'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 07:38:57.404 ***🔗
alice_user_member_set_user_affiliation_877@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_user_member_set_user_affiliation_877@domain.example.com/res1' id='802a8377e8ababa2c590bfc1d9661e12' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 07:38:57.404 ***🔗
alice_user_member_set_user_affiliation_877@domain.example.com/res1 out
<presence/>



*** User 2024-02-20 07:38:57.463 ***🔗
alice_user_member_set_user_affiliation_877@domain.example.com/res1 in
<presence from='alice_user_member_set_user_affiliation_877@domain.example.com/res1' to='alice_user_member_set_user_affiliation_877@domain.example.com/res1'/>



*** User 2024-02-20 07:38:57.464 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-20 07:38:57.465 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d4eb48bc77353b7b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-20 07:38:57.465 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-20 07:38:57.466 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX21lbWJlcl9zZXRfdXNlcl9hZmZpbGlhdGlvbl84NzcAbWFrcm9saWth</auth>



*** User 2024-02-20 07:38:57.468 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-20 07:38:57.468 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-20 07:38:57.468 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f1618dda81b7e31' from='domain.example.com' version='1.0' xml:lang='en' to='bob_user_member_set_user_affiliation_877@domain.example.com'>

*** User 2024-02-20 07:38:57.468 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-20 07:38:57.469 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 out
<iq type='set' id='a8ce12e3b30274f6e5b5b1d78b24e4c9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-20 07:38:57.469 ***🔗
bOb_user_member_set_user_affiliation_877@domain.example.com/res1 in
<iq id='a8ce12e3b30274f6e5b5b1d78b24e4c9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_user_member_set_user_affiliation_877@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-20 07:38:57.470 ***🔗
bob_user_member_set_user_affiliation_877@domain.example.com/res1 out
<iq type='set' id='becccab3c0a5dd751646d728c647d047'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 07:38:57.470 ***🔗
bob_user_member_set_user_affiliation_877@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_user_member_set_user_affiliation_877@domain.example.com/res1' id='becccab3c0a5dd751646d728c647d047' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 07:38:57.471 ***🔗
bob_user_member_set_user_affiliation_877@domain.example.com/res1 out
<presence/>


Could not find element wait_for_parallel_writer in Config.


*** User 2024-02-20 07:38:57.473 ***🔗
bob_user_member_set_user_affiliation_877@domain.example.com/res1 in
<presence from='bob_user_member_set_user_affiliation_877@domain.example.com/res1' to='bob_user_member_set_user_affiliation_877@domain.example.com/res1'/>



*** User 2024-02-20 07:38:57.474 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-20 07:38:57.474 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c0691e5116b03fc2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-20 07:38:57.475 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-20 07:38:57.475 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODc3AG1ha3Jvd2U7cA==</auth>



*** User 2024-02-20 07:38:57.478 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-20 07:38:57.478 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-20 07:38:57.479 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4bb27f96de48026e' from='domain.example.com' version='1.0' xml:lang='en' to='kate_user_member_set_user_affiliation_877@domain.example.com'>

*** User 2024-02-20 07:38:57.479 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-20 07:38:57.479 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 out
<iq type='set' id='1d12036bb65c636e50c933a5c1c74fe4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-20 07:38:57.480 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
<iq id='1d12036bb65c636e50c933a5c1c74fe4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_user_member_set_user_affiliation_877@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-20 07:38:57.480 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 out
<iq type='set' id='ef97959cf8fa90090643b73994637542'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 07:38:57.480 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_user_member_set_user_affiliation_877@domain.example.com/res1' id='ef97959cf8fa90090643b73994637542' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 07:38:57.480 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 out
<presence/>



*** User 2024-02-20 07:38:57.487 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
<presence from='kate_user_member_set_user_affiliation_877@domain.example.com/res1' to='kate_user_member_set_user_affiliation_877@domain.example.com/res1'/>



*** User 2024-02-20 07:38:57.490 ***🔗
REST request:
Code: 200
Req: {<0.19965.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"931a33c9c6796804">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODc3QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"bob_user_member_set_user_affiliation_877@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">>,<<"Tue, 20 Feb 2024 07:38:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"70">>}],
         <<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
         208,1551}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_user_member_set_user_affiliation_877@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          body =>
              <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"bob_user_member_set_user_affiliation_877@domain.example.com\"},\"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-02-20 07:38:57.494 ***🔗
REST request:
Code: 200
Req: {<0.19975.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7b087b7a7f7710c6">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@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">>,<<"Tue, 20 Feb 2024 07:38:56 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_877@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
         433,2303}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_user_member_set_user_affiliation_877@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,
          body =>
              <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@domain.example.com\"},\"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-02-20 07:38:57.497 ***🔗
REST request:
Code: 200
Req: {<0.19990.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5ccfd53715dc241a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"variables\":{\"affiliation\":\"ADMIN\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@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">>,<<"Tue, 20 Feb 2024 07:38:56 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_877@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
         432,1650}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_user_member_set_user_affiliation_877@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,
          body =>
              <<"{\"variables\":{\"affiliation\":\"ADMIN\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@domain.example.com\"},\"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-02-20 07:38:57.565 ***🔗
REST request:
Code: 200
Req: {<0.20004.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"852e8ed001de336a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"variables\":{\"affiliation\":\"OWNER\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@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">>,<<"Tue, 20 Feb 2024 07:38:56 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_877@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
         432,2291}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_user_member_set_user_affiliation_877@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,
          body =>
              <<"{\"variables\":{\"affiliation\":\"OWNER\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@domain.example.com\"},\"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-02-20 07:38:57.568 ***🔗
REST request:
Code: 200
Req: {<0.20014.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1cdde0b06be5d89d">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODc3QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@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">>,<<"Tue, 20 Feb 2024 07:38:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"70">>}],
         <<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
         208,1393}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_user_member_set_user_affiliation_877@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          body =>
              <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@domain.example.com\"},\"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-02-20 07:38:57.571 ***🔗
REST request:
Code: 200
Req: {<0.20017.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5eabdc668dd91c61">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg3N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"variables\":{\"affiliation\":\"NONE\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@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">>,<<"Tue, 20 Feb 2024 07:38:56 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_877@groupchats.domain.example.com\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
         431,1516}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_user_member_set_user_affiliation_877@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,
          body =>
              <<"{\"variables\":{\"affiliation\":\"NONE\",\"room\":\"room-alice_user_member_set_user_affiliation_877@groupchats.domain.example.com\",\"user\":\"kate_user_member_set_user_affiliation_877@domain.example.com\"},\"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-02-20 07:38:57.571 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-20 07:38:57.571 ***🔗
kate_user_member_set_user_affiliation_877@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-20 07:38:57.571 ***🔗
bob_user_member_set_user_affiliation_877@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-20 07:38:57.572 ***🔗
bob_user_member_set_user_affiliation_877@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-20 07:38:57.572 ***🔗
alice_user_member_set_user_affiliation_877@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-20 07:38:57.572 ***🔗
alice_user_member_set_user_affiliation_877@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-20 07:38:57.573 ***🔗
waiting for room_archive_size is done in 0 miliseconds
*** CT 2024-02-20 07:38:57.575 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1497.html



=== Ended at 2024-02-20 07:38:57
=== successfully completed test case
=== === Returned value: ok