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

=== Config value:

    [{schema_endpoint,admin},
     {listener_opts,[{password,<<"secret">>},
                     {schema_endpoint,<<"admin">>},
                     {username,<<"admin">>}]},
     {watchdog,<0.15985.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.graphql_muc_SUITE.logs/run.2022-04-05_07.47.05/graphql_muc_suite.admin_create_and_delete_room.5380.html"},
     {tc_group_properties,[{name,admin_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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.graphql_muc_SUITE.logs/run.2022-04-05_07.47.05/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 => [],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"}]},
             {welcome_message,{[],[]}}],
        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@22b4515d438b.2022-04-05_07.43.19"

=== Started at 2022-04-05 07:47:09


*** CT 2022-04-05 07:47:09.286 *** View log from node mongooseim@localhost when started mongooseim@localhost_846.html
*** CT 2022-04-05 07:47:09.288 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_397.html

*** User 2022-04-05 07:47:09.305 ***
alicE_admin_create_and_delete_room_621@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-04-05 07:47:09.306 ***
alicE_admin_create_and_delete_room_621@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1d2edf9cb4c77414' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:47:09.306 ***
alicE_admin_create_and_delete_room_621@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-04-05 07:47:09.306 ***
alicE_admin_create_and_delete_room_621@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2NyZWF0ZV9hbmRfZGVsZXRlX3Jvb21fNjIxAG1hdHlncnlzYQ==</auth>



*** User 2022-04-05 07:47:09.308 ***
alicE_admin_create_and_delete_room_621@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-05 07:47:09.308 ***
alicE_admin_create_and_delete_room_621@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-04-05 07:47:09.308 ***
alicE_admin_create_and_delete_room_621@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d4efafe5f8e4b02e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:47:09.308 ***
alicE_admin_create_and_delete_room_621@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-04-05 07:47:09.308 ***
alicE_admin_create_and_delete_room_621@localhost/res1 out
<iq type='set' id='9169253d0e6323ae26229bd1cdf73afe'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-05 07:47:09.309 ***
alicE_admin_create_and_delete_room_621@localhost/res1 in
<iq id='9169253d0e6323ae26229bd1cdf73afe' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_admin_create_and_delete_room_621@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-05 07:47:09.309 ***
alicE_admin_create_and_delete_room_621@localhost/res1 out
<iq type='set' id='36318c72e3b742cc6d2dccd671807f92'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:47:09.309 ***
alicE_admin_create_and_delete_room_621@localhost/res1 in
<iq type='result' id='36318c72e3b742cc6d2dccd671807f92'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:47:09.309 ***
alicE_admin_create_and_delete_room_621@localhost/res1 out
<presence/>



*** User 2022-04-05 07:47:09.313 ***
alicE_admin_create_and_delete_room_621@localhost/res1 in
<presence from='alicE_admin_create_and_delete_room_621@localhost/res1' to='alice_admin_create_and_delete_room_621@localhost/res1' xml:lang='en'/>



*** User 2022-04-05 07:47:09.320 ***
REST request:
Code: 200
Req: {<0.16177.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8c1579473686f952">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"owner\":\"alicE_admin_create_and_delete_room_621@localhost\",\"nick\":\"Ali\",\"name\":\"first-alice-room\",\"mucDomain\":\"muc.localhost\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $nick: String!)\\n              { muc { createInstantRoom(mucDomain: $mucDomain, name: $name, owner: $owner, nick: $nick)\\n              { jid title private usersNumber } } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:47:09 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"138">>}],
         <<"{\"data\":{\"muc\":{\"createInstantRoom\":{\"usersNumber\":0,\"title\":\"first-alice-room\",\"private\":false,\"jid\":\"first-alice-room@muc.localhost\"}}}}">>,
         277,5659}
Params: #{body =>
              <<"{\"variables\":{\"owner\":\"alicE_admin_create_and_delete_room_621@localhost\",\"nick\":\"Ali\",\"name\":\"first-alice-room\",\"mucDomain\":\"muc.localhost\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $nick: String!)\\n              { muc { createInstantRoom(mucDomain: $mucDomain, name: $name, owner: $owner, nick: $nick)\\n              { jid title private usersNumber } } }\",\"operationName\":\"M1\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,<<"admin">>},
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:47:09.361 ***
REST request:
Code: 200
Req: {<0.16203.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d759dd9fdeccd893">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"mucDomain\":\"muc.localhost\",\"limit\":null,\"index\":null,\"from\":\"alicE_admin_create_and_delete_room_621@localhost\"},\"query\":\"query Q1($mucDomain: String!, $from: JID, $limit: Int, $index: Int)\\n              { muc { listRooms(mucDomain: $mucDomain, from: $from, limit: $limit, index: $index)\\n              { rooms { jid title private usersNumber } count index first last} } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:47:09 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1726">>}],
         <<"{\"data\":{\"muc\":{\"listRooms\":{\"rooms\":[{\"usersNumber\":0,\"title\":\"54d646b557028c41\",\"private\":false,\"jid\":\"54d646b557028c41@muc.localhost\"},{\"usersNumber\":0,\"title\":\"b95c795b0ed752cf\",\"private\":false,\"jid\":\"b95c795b0ed752cf@muc.localhost\"},{\"usersNumber\":1,\"title\":\"first-alice-room\",\"private\":false,\"jid\":\"first-alice-room@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_admin_change_room_config_625\",\"private\":false,\"jid\":\"room-alice_admin_change_room_config_625@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_admin_get_room_config_626\",\"private\":false,\"jid\":\"room-alice_admin_get_room_config_626@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_get_room_config_613\",\"private\":false,\"jid\":\"room-alice_user_get_room_config_613@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_invite_user_615\",\"private\":false,\"jid\":\"room-alice_user_invite_user_615@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_delete_room_by_not_owner_602\",\"private\":false,\"jid\":\"room-alice_user_try_delete_room_by_not_owner_602@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_get_room_messages_without_permission_620\",\"private\":false,\"jid\":\"room-alice_user_try_get_room_messages_without_permission_620@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_list_room_users_without_permission_609\",\"private\":false,\"jid\":\"room-alice_user_try_list_room_users_without_permission_609@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_without_session_send_message_to_room_618\",\"private\":false,\"jid\":\"room-alice_user_without_session_send_message_to_room_618@muc.localhost\"}],\"last\":\"room-alice_user_without_session_send_message_to_room_618\",\"index\":0,\"first\":\"54d646b557028c41\",\"count\":12}}}}">>,
         1866,3188}
Params: #{body =>
              <<"{\"variables\":{\"mucDomain\":\"muc.localhost\",\"limit\":null,\"index\":null,\"from\":\"alicE_admin_create_and_delete_room_621@localhost\"},\"query\":\"query Q1($mucDomain: String!, $from: JID, $limit: Int, $index: Int)\\n              { muc { listRooms(mucDomain: $mucDomain, from: $from, limit: $limit, index: $index)\\n              { rooms { jid title private usersNumber } count index first last} } }\",\"operationName\":\"Q1\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,<<"admin">>},
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:47:09.365 ***
REST request:
Code: 200
Req: {<0.16222.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"307977cdc2bb9604">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"room\":\"first-alice-room@muc.localhost\",\"reason\":null},\"query\":\"mutation M1($room: JID!, $reason: String)\\n              { muc { deleteRoom(room: $room, reason: $reason) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:47:09 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"59">>}],
         <<"{\"data\":{\"muc\":{\"deleteRoom\":\"Room deleted successfully\"}}}">>,
         197,591}
Params: #{body =>
              <<"{\"variables\":{\"room\":\"first-alice-room@muc.localhost\",\"reason\":null},\"query\":\"mutation M1($room: JID!, $reason: String)\\n              { muc { deleteRoom(room: $room, reason: $reason) } }\",\"operationName\":\"M1\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,<<"admin">>},
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:47:09.369 ***
REST request:
Code: 200
Req: {<0.16233.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f9bce2810106638b">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"mucDomain\":\"muc.localhost\",\"limit\":null,\"index\":null,\"from\":\"alicE_admin_create_and_delete_room_621@localhost\"},\"query\":\"query Q1($mucDomain: String!, $from: JID, $limit: Int, $index: Int)\\n              { muc { listRooms(mucDomain: $mucDomain, from: $from, limit: $limit, index: $index)\\n              { rooms { jid title private usersNumber } count index first last} } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:47:09 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1898">>}],
         <<"{\"data\":{\"muc\":{\"listRooms\":{\"rooms\":[{\"usersNumber\":0,\"title\":\"54d646b557028c41\",\"private\":false,\"jid\":\"54d646b557028c41@muc.localhost\"},{\"usersNumber\":0,\"title\":\"b95c795b0ed752cf\",\"private\":false,\"jid\":\"b95c795b0ed752cf@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_admin_change_room_config_625\",\"private\":false,\"jid\":\"room-alice_admin_change_room_config_625@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_admin_get_room_config_626\",\"private\":false,\"jid\":\"room-alice_admin_get_room_config_626@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_admin_invite_user_627\",\"private\":false,\"jid\":\"room-alice_admin_invite_user_627@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_admin_list_room_users_623\",\"private\":false,\"jid\":\"room-alice_admin_list_room_users_623@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_get_room_config_613\",\"private\":false,\"jid\":\"room-alice_user_get_room_config_613@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_invite_user_615\",\"private\":false,\"jid\":\"room-alice_user_invite_user_615@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_delete_room_by_not_owner_602\",\"private\":false,\"jid\":\"room-alice_user_try_delete_room_by_not_owner_602@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_get_room_messages_without_permission_620\",\"private\":false,\"jid\":\"room-alice_user_try_get_room_messages_without_permission_620@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_try_list_room_users_without_permission_609\",\"private\":false,\"jid\":\"room-alice_user_try_list_room_users_without_permission_609@muc.localhost\"},{\"usersNumber\":0,\"title\":\"room-alice_user_without_session_send_message_to_room_618\",\"private\":false,\"jid\":\"room-alice_user_without_session_send_message_to_room_618@muc.localhost\"}],\"last\":\"room-alice_user_without_session_send_message_to_room_618\",\"index\":0,\"first\":\"54d646b557028c41\",\"count\":13}}}}">>,
         2038,2692}
Params: #{body =>
              <<"{\"variables\":{\"mucDomain\":\"muc.localhost\",\"limit\":null,\"index\":null,\"from\":\"alicE_admin_create_and_delete_room_621@localhost\"},\"query\":\"query Q1($mucDomain: String!, $from: JID, $limit: Int, $index: Int)\\n              { muc { listRooms(mucDomain: $mucDomain, from: $from, limit: $limit, index: $index)\\n              { rooms { jid title private usersNumber } count index first last} } }\",\"operationName\":\"Q1\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,<<"admin">>},
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:47:09.370 ***
alicE_admin_create_and_delete_room_621@localhost/res1 out
</stream:stream>

*** User 2022-04-05 07:47:09.370 ***
alicE_admin_create_and_delete_room_621@localhost/res1 in
</stream:stream>
*** CT 2022-04-05 07:47:09.377 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_397.html
*** CT 2022-04-05 07:47:09.378 *** View log from node mongooseim@localhost when finished mongooseim@localhost_846.html



=== Ended at 2022-04-05 07:47:09
=== successfully completed test case
=== === Returned value: ok