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

=== Config value:

    [{watchdog,<0.28894.1>},
     {muc_light_host,<<"muclight2.domain.example.com">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.05.25/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@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.05.25/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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},{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 => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management => [],
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,ldap_binary_search_fields => [],
              ldap_pool_tag => default,
              ldap_search_fields =>
                  [{<<"User">>,<<"%u">>},
                   {<<"Full Name">>,<<"displayName">>},
                   {<<"Given Name">>,<<"givenName">>},
                   {<<"Middle Name">>,<<"initials">>},
                   {<<"Family Name">>,<<"sn">>},
                   {<<"Nickname">>,<<"%u">>},
                   {<<"Birthday">>,<<"birthDay">>},
                   {<<"Country">>,<<"c">>},
                   {<<"City">>,<<"l">>},
                   {<<"Email">>,<<"mail">>},
                   {<<"Organization Name">>,<<"o">>},
                   {<<"Organization Unit">>,<<"ou">>}],
              ldap_search_operator => 'and',
              ldap_search_reported =>
                  [{<<"Full Name">>,<<"FN">>},
                   {<<"Given Name">>,<<"FIRST">>},
                   {<<"Middle Name">>,<<"MIDDLE">>},
                   {<<"Family Name">>,<<"LAST">>},
                   {<<"Nickname">>,<<"NICK">>},
                   {<<"Birthday">>,<<"BDAY">>},
                   {<<"Country">>,<<"CTRY">>},
                   {<<"City">>,<<"LOCALITY">>},
                   {<<"Email">>,<<"EMAIL">>},
                   {<<"Organization Name">>,<<"ORGNAME">>},
                   {<<"Organization Unit">>,<<"ORGUNIT">>}],
              ldap_uids => [{<<"uid">>,<<"%u">>}],
              ldap_vcard_map =>
                  [{<<"NICKNAME">>,<<"%u">>,[]},
                   {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                   {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                   {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                   {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                   {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                   {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                   {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                   {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                   {<<"STREET">>,<<"%s">>,[<<"street">>]},
                   {<<"REGION">>,<<"%s">>,[<<"st">>]},
                   {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                   {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                   {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                   {<<"DESC">>,<<"%s">>,[<<"description">>]},
                   {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                   {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                   {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                   {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                   {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
              matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@333794cb5a72.2022-03-07_15.57.24"

=== Started at 2022-03-07 16:05:25


*** CT 2022-03-07 16:05:25.691 *** View log from node mongooseim@localhost when started mongooseim@localhost_1563.html
*** CT 2022-03-07 16:05:25.692 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_533.html

*** User 2022-03-07 16:05:25.696 ***
alicE_user_is_invited_to_a_room_1756@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 2022-03-07 16:05:25.697 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c24d041826c42efe' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:25.697 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/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-07 16:05:25.697 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfaXNfaW52aXRlZF90b19hX3Jvb21fMTc1NgBtYXR5Z3J5c2E=</auth>



*** User 2022-03-07 16:05:25.698 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:25.698 ***
alicE_user_is_invited_to_a_room_1756@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 2022-03-07 16:05:25.698 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6457048344f7ca26' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:25.699 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/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-07 16:05:25.699 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<iq type='set' id='0fa941730fc87904abb6a08640cccde5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:25.699 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<iq id='0fa941730fc87904abb6a08640cccde5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_user_is_invited_to_a_room_1756@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:25.699 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<iq type='set' id='7d545137ddffcb8847f489a921150e24'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:25.699 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<iq type='result' id='7d545137ddffcb8847f489a921150e24'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:25.699 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:05:25.702 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<presence from='alicE_user_is_invited_to_a_room_1756@domain.example.com/res1' to='alice_user_is_invited_to_a_room_1756@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:25.702 ***
bOb_user_is_invited_to_a_room_1756@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 2022-03-07 16:05:25.703 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e93d58666715aaa3' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:25.703 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/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-07 16:05:25.703 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2lzX2ludml0ZWRfdG9fYV9yb29tXzE3NTYAbWFrcm9saWth</auth>



*** User 2022-03-07 16:05:25.704 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:25.704 ***
bOb_user_is_invited_to_a_room_1756@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 2022-03-07 16:05:25.704 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44beb795b22f1f19' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:25.704 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/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-07 16:05:25.704 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<iq type='set' id='faffb57e6372f607990b477880233f13'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:25.705 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<iq id='faffb57e6372f607990b477880233f13' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_user_is_invited_to_a_room_1756@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:25.705 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<iq type='set' id='0f82955820453758bdb6d00cd1953cd2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:25.705 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<iq type='result' id='0f82955820453758bdb6d00cd1953cd2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:25.705 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:05:25.707 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<presence from='bOb_user_is_invited_to_a_room_1756@domain.example.com/res1' to='bob_user_is_invited_to_a_room_1756@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:25.715 ***
REST request:
Code: 200
Req: {<0.28962.1>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e7caee869d72b6ca">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8xNzU2QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1646-669125-715617\"}">>,151,1369}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_user_is_invited_to_a_room_1756@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:05:25.727 ***
REST request:
Code: 204
Req: {<0.28968.1>,<<"/api/rooms/1646-669125-715617/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"389768543b5e56a5">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8xNzU2QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<"{\"user\":\"bob_user_is_invited_to_a_room_1756@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:25 GMT">>}],
         <<>>,80,4424}
Params: #{body =>
              <<"{\"user\":\"bob_user_is_invited_to_a_room_1756@domain.example.com\"}">>,
          creds =>
              {<<"alice_user_is_invited_to_a_room_1756@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-669125-715617/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:05:25.727 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<message from='1646-669125-715617@muclight2.domain.example.com' to='bob_user_is_invited_to_a_room_1756@domain.example.com' id='568672dc-c02b-4f3e-91fc-4aa61e7e858e' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-669125-724824</version>
		<user affiliation='member'>bob_user_is_invited_to_a_room_1756@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 16:05:25.727 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<message from='1646-669125-715617@muclight2.domain.example.com' to='alice_user_is_invited_to_a_room_1756@domain.example.com' id='568672dc-c02b-4f3e-91fc-4aa61e7e858e' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-669125-715580</prev-version>
		<version>1646-669125-724824</version>
		<user affiliation='member'>bob_user_is_invited_to_a_room_1756@domain.example.com</user>
	</x>
	<body/>
	<stanza-id by='1646-669125-715617@muclight2.domain.example.com' id='BMD3116IG3G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-07 16:05:25.736 ***
REST request:
Code: 200
Req: {<0.28974.1>,<<"/api/rooms/1646-669125-715617">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ee2621cb7755ec4c">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8xNzU2QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"234">>}],
         <<"{\"subject\":\"This room subject\",\"participants\":[{\"user\":\"alice_user_is_invited_to_a_room_1756@domain.example.com\",\"role\":\"owner\"},{\"user\":\"bob_user_is_invited_to_a_room_1756@domain.example.com\",\"role\":\"member\"}],\"name\":\"new_room_name\"}">>,
         359,1034}
Params: #{body => <<>>,
          creds =>
              {<<"alice_user_is_invited_to_a_room_1756@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"GET">>,path => <<"/api/rooms/1646-669125-715617">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:05:25.736 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 out
<iq type='get' id='f6ba826dbffc18ace9570d028ecb0ff6' to='1646-669125-715617@muclight2.domain.example.com'>
	<query xmlns='urn:xmpp:muclight:0#affiliations'/>
</iq>



*** User 2022-03-07 16:05:25.737 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
<iq from='1646-669125-715617@muclight2.domain.example.com' to='alicE_user_is_invited_to_a_room_1756@domain.example.com/res1' id='f6ba826dbffc18ace9570d028ecb0ff6' type='result'>
	<query xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-669125-724824</version>
		<user affiliation='owner'>alice_user_is_invited_to_a_room_1756@domain.example.com</user>
		<user affiliation='member'>bob_user_is_invited_to_a_room_1756@domain.example.com</user>
	</query>
</iq>



*** User 2022-03-07 16:05:25.737 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:05:25.738 ***
bOb_user_is_invited_to_a_room_1756@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-07 16:05:25.738 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:05:25.738 ***
alicE_user_is_invited_to_a_room_1756@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-07 16:05:25.740 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_533.html
*** CT 2022-03-07 16:05:25.741 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1563.html



=== Ended at 2022-03-07 16:05:25
=== successfully completed test case
=== === Returned value: ok


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