=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.41332.0>},
     {preset,"ldap_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@223c3ff59a65.2024-04-26_13.09.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2024-04-26_13.20.50/muc_light_http_api_suite.invite_to_room.51331.html"},
     {tc_group_properties,[{name,positive},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_light_http_api_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@223c3ff59a65.2024-04-26_13.09.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2024-04-26_13.20.50/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,
              ldap =>
                  #{filter => <<"(objectClass=inetOrgPerson)">>,
                    base => <<"ou=Users,dc=esl,dc=com">>,deref => never,
                    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">>]}],
                    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">>}],
                    pool_tag => default,
                    uids => [{<<"uid">>,<<"%u">>}],
                    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">>}],
                    search_operator => 'and',binary_search_fields => []},
              backend => ldap,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        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_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@223c3ff59a65.2024-04-26_13.09.52"

=== Started at 2024-04-26 13:20:50


*** CT 2024-04-26 13:20:50.405 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4122.html

*** User 2024-04-26 13:20:50.414 ***🔗
alicE_invite_to_room_1414@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-26 13:20:50.415 ***🔗
alicE_invite_to_room_1414@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='14ec3f9bd4009862' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 13:20:50.415 ***🔗
alicE_invite_to_room_1414@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-26 13:20:50.415 ***🔗
alicE_invite_to_room_1414@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzE0MTQAbWF0eWdyeXNh</auth>



*** User 2024-04-26 13:20:50.416 ***🔗
alicE_invite_to_room_1414@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 13:20:50.416 ***🔗
alicE_invite_to_room_1414@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-26 13:20:50.416 ***🔗
alicE_invite_to_room_1414@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='54f73c2adec73552' from='localhost' version='1.0' xml:lang='en' to='alice_invite_to_room_1414@localhost'>

*** User 2024-04-26 13:20:50.416 ***🔗
alicE_invite_to_room_1414@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-26 13:20:50.416 ***🔗
alicE_invite_to_room_1414@localhost/res1 out
<iq type='set' id='cdb5656d9ae85f7ed1f832a0c1a104ff'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 13:20:50.417 ***🔗
alicE_invite_to_room_1414@localhost/res1 in
<iq id='cdb5656d9ae85f7ed1f832a0c1a104ff' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_invite_to_room_1414@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 13:20:50.417 ***🔗
alice_invite_to_room_1414@localhost/res1 out
<iq type='set' id='747c6dee070bbab76f558f8bf832e26e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:20:50.417 ***🔗
alice_invite_to_room_1414@localhost/res1 in
<iq from='localhost' to='alice_invite_to_room_1414@localhost/res1' id='747c6dee070bbab76f558f8bf832e26e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:20:50.418 ***🔗
alice_invite_to_room_1414@localhost/res1 out
<presence/>



*** User 2024-04-26 13:20:50.418 ***🔗
alice_invite_to_room_1414@localhost/res1 in
<presence from='alice_invite_to_room_1414@localhost/res1' to='alice_invite_to_room_1414@localhost/res1'/>



*** User 2024-04-26 13:20:50.419 ***🔗
bOb_invite_to_room_1414@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-26 13:20:50.419 ***🔗
bOb_invite_to_room_1414@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='79dc6fdff365dc3b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 13:20:50.419 ***🔗
bOb_invite_to_room_1414@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-26 13:20:50.420 ***🔗
bOb_invite_to_room_1414@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xNDE0AG1ha3JvbGlrYQ==</auth>



*** User 2024-04-26 13:20:50.420 ***🔗
bOb_invite_to_room_1414@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 13:20:50.420 ***🔗
bOb_invite_to_room_1414@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-26 13:20:50.421 ***🔗
bOb_invite_to_room_1414@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='546386970bb5b193' from='localhost' version='1.0' xml:lang='en' to='bob_invite_to_room_1414@localhost'>

*** User 2024-04-26 13:20:50.421 ***🔗
bOb_invite_to_room_1414@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-26 13:20:50.421 ***🔗
bOb_invite_to_room_1414@localhost/res1 out
<iq type='set' id='8aa9386d60a0bcd6f5b2069e02b07b2b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 13:20:50.421 ***🔗
bOb_invite_to_room_1414@localhost/res1 in
<iq id='8aa9386d60a0bcd6f5b2069e02b07b2b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_invite_to_room_1414@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 13:20:50.421 ***🔗
bob_invite_to_room_1414@localhost/res1 out
<iq type='set' id='7e0206c44fe0c98eb6eeff841ac2ecf2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:20:50.422 ***🔗
bob_invite_to_room_1414@localhost/res1 in
<iq from='localhost' to='bob_invite_to_room_1414@localhost/res1' id='7e0206c44fe0c98eb6eeff841ac2ecf2' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:20:50.422 ***🔗
bob_invite_to_room_1414@localhost/res1 out
<presence/>



*** User 2024-04-26 13:20:50.423 ***🔗
bob_invite_to_room_1414@localhost/res1 in
<presence from='bob_invite_to_room_1414@localhost/res1' to='bob_invite_to_room_1414@localhost/res1'/>



*** User 2024-04-26 13:20:50.423 ***🔗
kate_invite_to_room_1414@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-26 13:20:50.424 ***🔗
kate_invite_to_room_1414@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c5f55e99ead75802' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 13:20:50.424 ***🔗
kate_invite_to_room_1414@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-26 13:20:50.424 ***🔗
kate_invite_to_room_1414@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTQxNABtYWtyb3dlO3A=</auth>



*** User 2024-04-26 13:20:50.425 ***🔗
kate_invite_to_room_1414@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 13:20:50.425 ***🔗
kate_invite_to_room_1414@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-26 13:20:50.425 ***🔗
kate_invite_to_room_1414@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='73b1cb609a66c59e' from='localhost' version='1.0' xml:lang='en' to='kate_invite_to_room_1414@localhost'>

*** User 2024-04-26 13:20:50.425 ***🔗
kate_invite_to_room_1414@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-26 13:20:50.426 ***🔗
kate_invite_to_room_1414@localhost/res1 out
<iq type='set' id='a779e13545dcd121688d3affa5727aa6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 13:20:50.426 ***🔗
kate_invite_to_room_1414@localhost/res1 in
<iq id='a779e13545dcd121688d3affa5727aa6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_invite_to_room_1414@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 13:20:50.426 ***🔗
kate_invite_to_room_1414@localhost/res1 out
<iq type='set' id='3d120832e69b88b39aaa7af8d70cbc2c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:20:50.426 ***🔗
kate_invite_to_room_1414@localhost/res1 in
<iq from='localhost' to='kate_invite_to_room_1414@localhost/res1' id='3d120832e69b88b39aaa7af8d70cbc2c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:20:50.427 ***🔗
kate_invite_to_room_1414@localhost/res1 out
<presence/>



*** User 2024-04-26 13:20:50.427 ***🔗
kate_invite_to_room_1414@localhost/res1 in
<presence from='kate_invite_to_room_1414@localhost/res1' to='kate_invite_to_room_1414@localhost/res1'/>



*** User 2024-04-26 13:20:50.427 ***🔗
alice_invite_to_room_1414@localhost/res1 out
<iq type='set' id='0fefb48bed8c3c6a9ffa71fb26420b5b' to='invite_to_room@muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>kate_invite_to_room_1414@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2024-04-26 13:20:50.428 ***🔗
alice_invite_to_room_1414@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1414@localhost' id='0fefb48bed8c3c6a9ffa71fb26420b5b' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1714-137650-428109</version>
		<user affiliation='owner'>alice_invite_to_room_1414@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-04-26 13:20:50.428 ***🔗
alice_invite_to_room_1414@localhost/res1 in
<iq from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1414@localhost/res1' id='0fefb48bed8c3c6a9ffa71fb26420b5b' type='result'/>



*** User 2024-04-26 13:20:50.432 ***🔗
REST request:
Code: 204
Req: {<0.41404.0>,
      <<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"39c453f6123455fc">>}],
      <<"{\"sender\":\"alice_invite_to_room_1414@localhost\",\"recipient\":\"bob_invite_to_room_1414@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},[],<<>>,27,2475}
Params: #{path =>
              <<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"sender\":\"alice_invite_to_room_1414@localhost\",\"recipient\":\"bob_invite_to_room_1414@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-26 13:20:50.432 ***🔗
bob_invite_to_room_1414@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='bob_invite_to_room_1414@localhost' id='45ce19e7-eab5-487f-a0de-f8dcd89c5847' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1714-137650-431277</version>
		<user affiliation='member'>bob_invite_to_room_1414@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-04-26 13:20:50.432 ***🔗
alice_invite_to_room_1414@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1414@localhost' id='45ce19e7-eab5-487f-a0de-f8dcd89c5847' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1714-137650-428109</prev-version>
		<version>1714-137650-431277</version>
		<user affiliation='member'>bob_invite_to_room_1414@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-04-26 13:20:50.432 ***🔗
kate_invite_to_room_1414@localhost/res1 out
</stream:stream>

*** User 2024-04-26 13:20:50.432 ***🔗
kate_invite_to_room_1414@localhost/res1 in
</stream:stream>

*** User 2024-04-26 13:20:50.433 ***🔗
bob_invite_to_room_1414@localhost/res1 out
</stream:stream>

*** User 2024-04-26 13:20:50.433 ***🔗
bob_invite_to_room_1414@localhost/res1 in
</stream:stream>

*** User 2024-04-26 13:20:50.433 ***🔗
alice_invite_to_room_1414@localhost/res1 out
</stream:stream>

*** User 2024-04-26 13:20:50.433 ***🔗
alice_invite_to_room_1414@localhost/res1 in
</stream:stream>
*** CT 2024-04-26 13:20:50.436 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4123.html



=== Ended at 2024-04-26 13:20:50
=== successfully completed test case
=== === Returned value: ok