=== Test case: rest_client_SUITE:user_is_invited_to_a_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.14860.1>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,disabled},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/rest_client_suite.user_is_invited_to_a_room.html"},
     {tc_group_properties,[{name,muc},pararell]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/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 => [],mod_sic => [],mod_stream_management => [],
        mod_vcard =>
            [{backend,ldap},
             {host,{prefix,<<"vjud.">>}},
             {ldap_base,"ou=Users,dc=esl,dc=com"},
             {ldap_filter,<<"(objectClass=inetOrgPerson)">>}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39"

=== Started at 2022-03-03 10:38:20


*** CT 2022-03-03 10:38:20.757 *** View log from node mongooseim@localhost when started mongooseim@localhost_5016.html
*** CT 2022-03-03 10:38:20.758 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2342.html

*** User 2022-03-03 10:38:20.763 ***
alicE_user_is_invited_to_a_room_1294@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-03 10:38:20.763 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='222adaa5dc7afcaa' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:20.763 ***
alicE_user_is_invited_to_a_room_1294@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>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-03 10:38:20.763 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfaXNfaW52aXRlZF90b19hX3Jvb21fMTI5NABtYXR5Z3J5c2E=</auth>



*** User 2022-03-03 10:38:20.764 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:20.765 ***
alicE_user_is_invited_to_a_room_1294@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-03 10:38:20.765 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8ecee6ab65d70322' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:20.765 ***
alicE_user_is_invited_to_a_room_1294@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-03 10:38:20.765 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 out
<iq type='set' id='00d52cabb06d7a7a842361b1338252ce'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:20.765 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
<iq id='00d52cabb06d7a7a842361b1338252ce' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_user_is_invited_to_a_room_1294@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:20.765 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 out
<iq type='set' id='12cd71d998cf8338ec941fe05a465883'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:20.765 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
<iq type='result' id='12cd71d998cf8338ec941fe05a465883'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:20.765 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:20.766 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
<presence from='alicE_user_is_invited_to_a_room_1294@localhost/res1' to='alice_user_is_invited_to_a_room_1294@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:20.767 ***
bOb_user_is_invited_to_a_room_1294@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-03 10:38:20.767 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fdad9752272e0599' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:20.767 ***
bOb_user_is_invited_to_a_room_1294@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>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-03 10:38:20.767 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2lzX2ludml0ZWRfdG9fYV9yb29tXzEyOTQAbWFrcm9saWth</auth>



*** User 2022-03-03 10:38:20.768 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:20.769 ***
bOb_user_is_invited_to_a_room_1294@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-03 10:38:20.769 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e95e36b3975ffea4' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:20.769 ***
bOb_user_is_invited_to_a_room_1294@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-03 10:38:20.769 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 out
<iq type='set' id='bd5706a5829db0a1b81c2ab43eed8f74'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:20.769 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 in
<iq id='bd5706a5829db0a1b81c2ab43eed8f74' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_user_is_invited_to_a_room_1294@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:20.769 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 out
<iq type='set' id='da1345beb1b4d2525f70d4dadd3461d4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:20.769 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 in
<iq type='result' id='da1345beb1b4d2525f70d4dadd3461d4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:20.769 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:20.770 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 in
<presence from='bOb_user_is_invited_to_a_room_1294@localhost/res1' to='bob_user_is_invited_to_a_room_1294@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:user_is_invited_to_a_room/1 in muc 2022-03-03 10:38:20.771 ***
=WARNING REPORT==== 3-Mar-2022::10:38:20.771444 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-03 10:38:20.779 ***
REST request:
Code: 200
Req: {<0.14924.1>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0bbb986e2e4095f2">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8xMjk0QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1646-303900-778786\"}">>,151,1536}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_user_is_invited_to_a_room_1294@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:user_is_invited_to_a_room/1 in muc 2022-03-03 10:38:20.780 ***
=WARNING REPORT==== 3-Mar-2022::10:38:20.780493 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-03 10:38:20.789 ***
REST request:
Code: 204
Req: {<0.14929.1>,<<"/api/rooms/1646-303900-778786/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"52e6e5fb4b3307e9">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8xMjk0QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"user\":\"bob_user_is_invited_to_a_room_1294@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:20 GMT">>}],
         <<>>,80,2209}
Params: #{body =>
              <<"{\"user\":\"bob_user_is_invited_to_a_room_1294@localhost\"}">>,
          creds =>
              {<<"alice_user_is_invited_to_a_room_1294@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-303900-778786/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:20.789 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 in
<message from='1646-303900-778786@muclight.localhost' to='bob_user_is_invited_to_a_room_1294@localhost' id='e463b4d6-00e7-4a26-b003-df7d3a3dea66' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-303900-788404</version>
		<user affiliation='member'>bob_user_is_invited_to_a_room_1294@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-03 10:38:20.789 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
<message from='1646-303900-778786@muclight.localhost' to='alice_user_is_invited_to_a_room_1294@localhost' id='e463b4d6-00e7-4a26-b003-df7d3a3dea66' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-303900-778742</prev-version>
		<version>1646-303900-788404</version>
		<user affiliation='member'>bob_user_is_invited_to_a_room_1294@localhost</user>
	</x>
	<body/>
</message>



*** System report during rest_client_SUITE:user_is_invited_to_a_room/1 in muc 2022-03-03 10:38:20.790 ***
=WARNING REPORT==== 3-Mar-2022::10:38:20.790422 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-03 10:38:20.798 ***
REST request:
Code: 200
Req: {<0.14934.1>,<<"/api/rooms/1646-303900-778786">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"206d61217d308eb5">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8xMjk0QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"216">>}],
         <<"{\"subject\":\"This room subject\",\"participants\":[{\"user\":\"alice_user_is_invited_to_a_room_1294@localhost\",\"role\":\"owner\"},{\"user\":\"bob_user_is_invited_to_a_room_1294@localhost\",\"role\":\"member\"}],\"name\":\"new_room_name\"}">>,
         341,1460}
Params: #{body => <<>>,
          creds =>
              {<<"alice_user_is_invited_to_a_room_1294@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,path => <<"/api/rooms/1646-303900-778786">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:20.798 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 out
<iq type='get' id='e6fbe31bd34d42c7ccba346ba5e49af1' to='1646-303900-778786@muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#affiliations'/>
</iq>



*** User 2022-03-03 10:38:20.799 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
<iq from='1646-303900-778786@muclight.localhost' to='alicE_user_is_invited_to_a_room_1294@localhost/res1' id='e6fbe31bd34d42c7ccba346ba5e49af1' type='result'>
	<query xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-303900-788404</version>
		<user affiliation='owner'>alice_user_is_invited_to_a_room_1294@localhost</user>
		<user affiliation='member'>bob_user_is_invited_to_a_room_1294@localhost</user>
	</query>
</iq>



*** User 2022-03-03 10:38:20.799 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:20.799 ***
bOb_user_is_invited_to_a_room_1294@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:38:20.799 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:20.799 ***
alicE_user_is_invited_to_a_room_1294@localhost/res1 in
</stream:stream>
*** CT 2022-03-03 10:38:20.801 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2342.html
*** CT 2022-03-03 10:38:20.802 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5016.html



=== Ended at 2022-03-03 10:38:20
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result