=== Test case: graphql_muc_light_SUITE:user_send_message_to_room_errors/1 (click for source code)

=== Config value:

    [{schema_endpoint,user},
     {watchdog,<0.18214.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_muc_light_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.graphql_muc_light_SUITE.logs/run.2022-03-04_11.19.12/graphql_muc_light_suite.user_send_message_to_room_errors.12036.html"},
     {tc_group_properties,[{name,user_muc_light},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_muc_light_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.graphql_muc_light_SUITE.logs/run.2022-03-04_11.19.12/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => [],mod_amp => [],mod_bosh => [],
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco => [{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"}]},
             {welcome_message,{[],[]}}],
        mod_roster => [{backend,rdbms}],
        mod_sic => [],mod_stream_management => [],
        mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18"

=== Started at 2022-03-04 11:19:12


*** CT 2022-03-04 11:19:12.491 *** View log from node mongooseim@localhost when started mongooseim@localhost_903.html
*** CT 2022-03-04 11:19:12.491 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_489.html

*** User 2022-03-04 11:19:12.507 ***
alicE_user_send_message_to_room_errors_682@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-03-04 11:19:12.508 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='48953ac608859375' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:19:12.508 ***
alicE_user_send_message_to_room_errors_682@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-03-04 11:19:12.508 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfc2VuZF9tZXNzYWdlX3RvX3Jvb21fZXJyb3JzXzY4MgBtYXR5Z3J5c2E=</auth>



*** User 2022-03-04 11:19:12.509 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:19:12.509 ***
alicE_user_send_message_to_room_errors_682@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-03-04 11:19:12.509 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8774006649b64ae1' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:19:12.509 ***
alicE_user_send_message_to_room_errors_682@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-03-04 11:19:12.509 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 out
<iq type='set' id='cd6984cf75e3b416d62439d2803505b8'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:19:12.510 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 in
<iq id='cd6984cf75e3b416d62439d2803505b8' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_user_send_message_to_room_errors_682@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:19:12.510 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 out
<iq type='set' id='f40b22ebdba55efc99bebe669688d180'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:19:12.511 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 in
<iq type='result' id='f40b22ebdba55efc99bebe669688d180'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:19:12.511 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 out
<presence/>



*** User 2022-03-04 11:19:12.516 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 in
<presence from='alicE_user_send_message_to_room_errors_682@localhost/res1' to='alice_user_send_message_to_room_errors_682@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:19:12.517 ***
bOb_user_send_message_to_room_errors_682@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-03-04 11:19:12.518 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f5c59d91662456e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:19:12.518 ***
bOb_user_send_message_to_room_errors_682@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-03-04 11:19:12.518 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX3NlbmRfbWVzc2FnZV90b19yb29tX2Vycm9yc182ODIAbWFrcm9saWth</auth>



*** User 2022-03-04 11:19:12.519 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:19:12.519 ***
bOb_user_send_message_to_room_errors_682@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-03-04 11:19:12.546 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f7accc3a69e6ec6d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:19:12.547 ***
bOb_user_send_message_to_room_errors_682@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-03-04 11:19:12.547 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 out
<iq type='set' id='497c7530594330a3b60fd245d8eae473'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:19:12.548 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 in
<iq id='497c7530594330a3b60fd245d8eae473' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_user_send_message_to_room_errors_682@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:19:12.548 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 out
<iq type='set' id='890105be75c134e0f504d0d06c4e237c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:19:12.549 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 in
<iq type='result' id='890105be75c134e0f504d0d06c4e237c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:19:12.549 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 out
<presence/>



*** User 2022-03-04 11:19:12.553 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 in
<presence from='bOb_user_send_message_to_room_errors_682@localhost/res1' to='bob_user_send_message_to_room_errors_682@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:19:12.557 ***
REST request:
Code: 200
Req: {<0.18462.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"609d952fbbb97051">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9zZW5kX21lc3NhZ2VfdG9fcm9vbV9lcnJvcnNfNjgyQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"variables\":{\"room\":\"1646-392752-553896@not-existing-domain\",\"body\":\"Hello there!\"},\"query\":\"mutation M1($room: JID!, $body: String!)\\n              { muc_light { sendMessageToRoom(room: $room, body: $body)} }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:19:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"235">>}],
         <<"{\"errors\":[{\"path\":[\"muc_light\",\"sendMessageToRoom\"],\"message\":\"MUC Light server not found\",\"extensions\":{\"room\":\"1646-392752-553896@not-existing-domain\",\"code\":\"muc_server_not_found\"}}],\"data\":{\"muc_light\":{\"sendMessageToRoom\":null}}}">>,
         374,1915}
Params: #{body =>
              <<"{\"variables\":{\"room\":\"1646-392752-553896@not-existing-domain\",\"body\":\"Hello there!\"},\"query\":\"mutation M1($room: JID!, $body: String!)\\n              { muc_light { sendMessageToRoom(room: $room, body: $body)} }\",\"operationName\":\"M1\"}">>,
          creds =>
              {<<"alice_user_send_message_to_room_errors_682@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
          return_headers => true,return_maps => true,
          role => {graphql,<<"user">>},
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:19:12.560 ***
REST request:
Code: 200
Req: {<0.18476.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ed4039a7cf53420c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfc2VuZF9tZXNzYWdlX3RvX3Jvb21fZXJyb3JzXzY4MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"variables\":{\"room\":\"1646-392752-553896@muclight.localhost\",\"body\":\"Hello there!\"},\"query\":\"mutation M1($room: JID!, $body: String!)\\n              { muc_light { sendMessageToRoom(room: $room, body: $body)} }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:19:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"239">>}],
         <<"{\"errors\":[{\"path\":[\"muc_light\",\"sendMessageToRoom\"],\"message\":\"Given user does not occupy this room\",\"extensions\":{\"room\":\"1646-392752-553896@muclight.localhost\",\"code\":\"not_room_member\"}}],\"data\":{\"muc_light\":{\"sendMessageToRoom\":null}}}">>,
         378,1752}
Params: #{body =>
              <<"{\"variables\":{\"room\":\"1646-392752-553896@muclight.localhost\",\"body\":\"Hello there!\"},\"query\":\"mutation M1($room: JID!, $body: String!)\\n              { muc_light { sendMessageToRoom(room: $room, body: $body)} }\",\"operationName\":\"M1\"}">>,
          creds =>
              {<<"bob_user_send_message_to_room_errors_682@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
          return_headers => true,return_maps => true,
          role => {graphql,<<"user">>},
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:19:12.564 ***
REST request:
Code: 200
Req: {<0.18486.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"199f3c765beab363">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3VzZXJfc2VuZF9tZXNzYWdlX3RvX3Jvb21fZXJyb3JzXzY4MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"variables\":{\"room\":\"1646-392752-553896@muclight.localhost\",\"body\":\"Hello there!\"},\"query\":\"mutation M1($room: JID!, $body: String!)\\n              { muc_light { sendMessageToRoom(room: $room, body: $body)} }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:19:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"239">>}],
         <<"{\"errors\":[{\"path\":[\"muc_light\",\"sendMessageToRoom\"],\"message\":\"Given user does not occupy this room\",\"extensions\":{\"room\":\"1646-392752-553896@muclight.localhost\",\"code\":\"not_room_member\"}}],\"data\":{\"muc_light\":{\"sendMessageToRoom\":null}}}">>,
         378,1934}
Params: #{body =>
              <<"{\"variables\":{\"room\":\"1646-392752-553896@muclight.localhost\",\"body\":\"Hello there!\"},\"query\":\"mutation M1($room: JID!, $body: String!)\\n              { muc_light { sendMessageToRoom(room: $room, body: $body)} }\",\"operationName\":\"M1\"}">>,
          creds =>
              {<<"bob_user_send_message_to_room_errors_682@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
          return_headers => true,return_maps => true,
          role => {graphql,<<"user">>},
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:19:12.564 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 out
</stream:stream>

*** User 2022-03-04 11:19:12.565 ***
bOb_user_send_message_to_room_errors_682@localhost/res1 in
</stream:stream>

*** User 2022-03-04 11:19:12.565 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 out
</stream:stream>

*** User 2022-03-04 11:19:12.565 ***
alicE_user_send_message_to_room_errors_682@localhost/res1 in
</stream:stream>
*** CT 2022-03-04 11:19:12.567 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_489.html
*** CT 2022-03-04 11:19:12.567 *** View log from node mongooseim@localhost when finished mongooseim@localhost_904.html



=== Ended at 2022-03-04 11:19:12
=== successfully completed test case
=== === Returned value: ok