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

=== Config value:

    [{watchdog,<0.19586.0>},
     {schema_endpoint,user},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"mysql_redis"},
     {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@a91c848225da.2024-04-24_13.09.45/big_tests.tests.graphql_muc_SUITE.logs/run.2024-04-24_13.12.58/graphql_muc_suite.user_member_set_user_affiliation.11141.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@a91c848225da.2024-04-24_13.09.45/big_tests.tests.graphql_muc_SUITE.logs/run.2024-04-24_13.12.58/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        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,
              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}}},
     {{saved_modules,mongooseim@localhost,<<"localhost.bis">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        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,
              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@a91c848225da.2024-04-24_13.09.45"

=== Started at 2024-04-24 13:12:58


*** CT 2024-04-24 13:12:58.456 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1393.html

*** User 2024-04-24 13:12:58.626 ***🔗
alicE_user_member_set_user_affiliation_855@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-04-24 13:12:58.627 ***🔗
alicE_user_member_set_user_affiliation_855@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='28011db1db047914' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:12:58.627 ***🔗
alicE_user_member_set_user_affiliation_855@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-04-24 13:12:58.628 ***🔗
alicE_user_member_set_user_affiliation_855@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg1NQBtYXR5Z3J5c2E=</auth>


Could not find element wait_for_parallel_writer in Config.


*** User 2024-04-24 13:12:58.632 ***🔗
alicE_user_member_set_user_affiliation_855@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:12:58.632 ***🔗
alicE_user_member_set_user_affiliation_855@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-04-24 13:12:58.632 ***🔗
alicE_user_member_set_user_affiliation_855@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f2b7b1ccd00a00c3' from='localhost' version='1.0' xml:lang='en' to='alice_user_member_set_user_affiliation_855@localhost'>

*** User 2024-04-24 13:12:58.632 ***🔗
alicE_user_member_set_user_affiliation_855@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-04-24 13:12:58.632 ***🔗
alicE_user_member_set_user_affiliation_855@localhost/res1 out
<iq type='set' id='07f650ad94ffad9bc655c97781818bba'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:12:58.633 ***🔗
alicE_user_member_set_user_affiliation_855@localhost/res1 in
<iq id='07f650ad94ffad9bc655c97781818bba' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_user_member_set_user_affiliation_855@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:12:58.633 ***🔗
alice_user_member_set_user_affiliation_855@localhost/res1 out
<iq type='set' id='e2f93d07a01c44615adb4194bd5d5547'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:12:58.634 ***🔗
alice_user_member_set_user_affiliation_855@localhost/res1 in
<iq from='localhost' to='alice_user_member_set_user_affiliation_855@localhost/res1' id='e2f93d07a01c44615adb4194bd5d5547' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:12:58.634 ***🔗
alice_user_member_set_user_affiliation_855@localhost/res1 out
<presence/>



*** User 2024-04-24 13:12:58.637 ***🔗
alice_user_member_set_user_affiliation_855@localhost/res1 in
<presence from='alice_user_member_set_user_affiliation_855@localhost/res1' to='alice_user_member_set_user_affiliation_855@localhost/res1'/>



*** User 2024-04-24 13:12:58.638 ***🔗
bOb_user_member_set_user_affiliation_855@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-04-24 13:12:58.638 ***🔗
bOb_user_member_set_user_affiliation_855@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e50e7ef3c39722e3' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:12:58.638 ***🔗
bOb_user_member_set_user_affiliation_855@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-04-24 13:12:58.638 ***🔗
bOb_user_member_set_user_affiliation_855@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX21lbWJlcl9zZXRfdXNlcl9hZmZpbGlhdGlvbl84NTUAbWFrcm9saWth</auth>



*** User 2024-04-24 13:12:58.705 ***🔗
bOb_user_member_set_user_affiliation_855@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:12:58.705 ***🔗
bOb_user_member_set_user_affiliation_855@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-04-24 13:12:58.706 ***🔗
bOb_user_member_set_user_affiliation_855@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e77ffd866e51065' from='localhost' version='1.0' xml:lang='en' to='bob_user_member_set_user_affiliation_855@localhost'>

*** User 2024-04-24 13:12:58.706 ***🔗
bOb_user_member_set_user_affiliation_855@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-04-24 13:12:58.706 ***🔗
bOb_user_member_set_user_affiliation_855@localhost/res1 out
<iq type='set' id='c9b488a00232020d3bed608dd7538663'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:12:58.706 ***🔗
bOb_user_member_set_user_affiliation_855@localhost/res1 in
<iq id='c9b488a00232020d3bed608dd7538663' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_user_member_set_user_affiliation_855@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:12:58.706 ***🔗
bob_user_member_set_user_affiliation_855@localhost/res1 out
<iq type='set' id='3915d4daa121d01be8b97a2d958ab6b0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:12:58.707 ***🔗
bob_user_member_set_user_affiliation_855@localhost/res1 in
<iq from='localhost' to='bob_user_member_set_user_affiliation_855@localhost/res1' id='3915d4daa121d01be8b97a2d958ab6b0' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:12:58.707 ***🔗
bob_user_member_set_user_affiliation_855@localhost/res1 out
<presence/>



*** User 2024-04-24 13:12:58.709 ***🔗
bob_user_member_set_user_affiliation_855@localhost/res1 in
<presence from='bob_user_member_set_user_affiliation_855@localhost/res1' to='bob_user_member_set_user_affiliation_855@localhost/res1'/>



*** User 2024-04-24 13:12:58.709 ***🔗
kate_user_member_set_user_affiliation_855@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-04-24 13:12:58.710 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c45f1874edba523' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:12:58.710 ***🔗
kate_user_member_set_user_affiliation_855@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-04-24 13:12:58.710 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODU1AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-24 13:12:58.711 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:12:58.711 ***🔗
kate_user_member_set_user_affiliation_855@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-04-24 13:12:58.712 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='940406792342f4ba' from='localhost' version='1.0' xml:lang='en' to='kate_user_member_set_user_affiliation_855@localhost'>

*** User 2024-04-24 13:12:58.712 ***🔗
kate_user_member_set_user_affiliation_855@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-04-24 13:12:58.712 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 out
<iq type='set' id='030bc5d9e78b87b7a402621f8fd68b52'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:12:58.712 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 in
<iq id='030bc5d9e78b87b7a402621f8fd68b52' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_user_member_set_user_affiliation_855@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:12:58.712 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 out
<iq type='set' id='4bafd90588b2a6d87812895754f103de'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:12:58.713 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 in
<iq from='localhost' to='kate_user_member_set_user_affiliation_855@localhost/res1' id='4bafd90588b2a6d87812895754f103de' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:12:58.714 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 out
<presence/>



*** User 2024-04-24 13:12:58.715 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 in
<presence from='kate_user_member_set_user_affiliation_855@localhost/res1' to='kate_user_member_set_user_affiliation_855@localhost/res1'/>



*** User 2024-04-24 13:12:58.718 ***🔗
REST request:
Code: 200
Req: {<0.20201.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"13046bcffedbced6">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODU1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"bob_user_member_set_user_affiliation_855@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">>,<<"Wed, 24 Apr 2024 13:12:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"70">>}],
         <<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
         208,1132}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          role => {graphql,user},
          creds =>
              {<<"alice_user_member_set_user_affiliation_855@localhost">>,
               <<"matygrysa">>},
          body =>
              <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"bob_user_member_set_user_affiliation_855@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
          return_maps => true,return_headers => true}


*** User 2024-04-24 13:12:58.720 ***🔗
REST request:
Code: 200
Req: {<0.20209.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"271f8d99b5e8a27c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg1NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@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">>,<<"Wed, 24 Apr 2024 13:12:57 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_855@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
         417,1113}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          role => {graphql,user},
          creds =>
              {<<"bob_user_member_set_user_affiliation_855@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
          return_maps => true,return_headers => true}


*** User 2024-04-24 13:12:58.722 ***🔗
REST request:
Code: 200
Req: {<0.20217.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7298a2bf5a83c318">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg1NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"variables\":{\"affiliation\":\"ADMIN\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@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">>,<<"Wed, 24 Apr 2024 13:12:57 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_855@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
         416,1083}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          role => {graphql,user},
          creds =>
              {<<"bob_user_member_set_user_affiliation_855@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"variables\":{\"affiliation\":\"ADMIN\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
          return_maps => true,return_headers => true}


*** User 2024-04-24 13:12:58.724 ***🔗
REST request:
Code: 200
Req: {<0.20225.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"14520678c34857bc">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg1NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"variables\":{\"affiliation\":\"OWNER\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@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">>,<<"Wed, 24 Apr 2024 13:12:57 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_855@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
         416,1043}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          role => {graphql,user},
          creds =>
              {<<"bob_user_member_set_user_affiliation_855@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"variables\":{\"affiliation\":\"OWNER\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
          return_maps => true,return_headers => true}


*** User 2024-04-24 13:12:58.726 ***🔗
REST request:
Code: 200
Req: {<0.20235.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9ceb388d48defb6f">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9tZW1iZXJfc2V0X3VzZXJfYWZmaWxpYXRpb25fODU1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@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">>,<<"Wed, 24 Apr 2024 13:12:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"70">>}],
         <<"{\"data\":{\"muc\":{\"setUserAffiliation\":\"Affiliation set successfully\"}}}">>,
         208,870}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          role => {graphql,user},
          creds =>
              {<<"alice_user_member_set_user_affiliation_855@localhost">>,
               <<"matygrysa">>},
          body =>
              <<"{\"variables\":{\"affiliation\":\"MEMBER\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
          return_maps => true,return_headers => true}


*** User 2024-04-24 13:12:58.729 ***🔗
REST request:
Code: 200
Req: {<0.20242.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8fc309f46a7b86b7">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfbWVtYmVyX3NldF91c2VyX2FmZmlsaWF0aW9uXzg1NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"variables\":{\"affiliation\":\"NONE\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@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">>,<<"Wed, 24 Apr 2024 13:12:57 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_855@muc.localhost\",\"code\":\"not_allowed\"}}],\"data\":{\"muc\":{\"setUserAffiliation\":null}}}">>,
         415,1783}
Params: #{port => 5561,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          role => {graphql,user},
          creds =>
              {<<"bob_user_member_set_user_affiliation_855@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"variables\":{\"affiliation\":\"NONE\",\"room\":\"room-alice_user_member_set_user_affiliation_855@muc.localhost\",\"user\":\"kate_user_member_set_user_affiliation_855@localhost\"},\"query\":\"mutation ($affiliation: MUCAffiliation!, $room: BareJID!, $user: JID!) { muc { setUserAffiliation(affiliation: $affiliation, room: $room, user: $user) } }\"}">>,
          return_maps => true,return_headers => true}


*** User 2024-04-24 13:12:58.729 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 out
</stream:stream>

*** User 2024-04-24 13:12:58.730 ***🔗
kate_user_member_set_user_affiliation_855@localhost/res1 in
</stream:stream>

*** User 2024-04-24 13:12:58.730 ***🔗
bob_user_member_set_user_affiliation_855@localhost/res1 out
</stream:stream>

*** User 2024-04-24 13:12:58.730 ***🔗
bob_user_member_set_user_affiliation_855@localhost/res1 in
</stream:stream>

*** User 2024-04-24 13:12:58.730 ***🔗
alice_user_member_set_user_affiliation_855@localhost/res1 out
</stream:stream>

*** User 2024-04-24 13:12:58.730 ***🔗
alice_user_member_set_user_affiliation_855@localhost/res1 in
</stream:stream>

*** User 2024-04-24 13:12:58.731 ***🔗
waiting for room_archive_size is done in 0 miliseconds
*** CT 2024-04-24 13:12:58.733 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1395.html



=== Ended at 2024-04-24 13:12:58
=== successfully completed test case
=== === Returned value: ok