=== Test case: graphql_session_SUITE:admin_get_user_resource/1 (click for source code)

=== Config value:

    [{schema_endpoint,admin},
     {listener_opts,[{password,<<"secret">>},
                     {schema_endpoint,<<"admin">>},
                     {username,<<"admin">>}]},
     {watchdog,<0.16287.0>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_session_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fdcb4a001941.2022-03-03_10.29.25/big_tests.tests.graphql_session_SUITE.logs/run.2022-03-03_10.31.47/graphql_session_suite.admin_get_user_resource.html"},
     {tc_group_properties,[{name,admin_session}]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_session_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@fdcb4a001941.2022-03-03_10.29.25/big_tests.tests.graphql_session_SUITE.logs/run.2022-03-03_10.31.47/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)">>}]}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {alice_bis,[{username,<<"alicE">>},
                                 {server,<<"localhost.bis">>},
                                 {host,<<"localhost">>},
                                 {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@fdcb4a001941.2022-03-03_10.29.25"

=== Started at 2022-03-03 10:31:47


*** CT 2022-03-03 10:31:47.540 *** View log from node mongooseim@localhost when started mongooseim@localhost_910.html
*** CT 2022-03-03 10:31:47.541 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_494.html

*** User 2022-03-03 10:31:47.544 ***
alicE_admin_get_user_resource_564@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:31:47.545 ***
alicE_admin_get_user_resource_564@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e5e7ad95c5ac944' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2022-03-03 10:31:47.546 ***
alicE_admin_get_user_resource_564@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:31:47.547 ***
alicE_admin_get_user_resource_564@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='08281b33604d9251' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:31:47.547 ***
alicE_admin_get_user_resource_564@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:31:47.547 ***
alicE_admin_get_user_resource_564@localhost/res1 out
<iq type='set' id='888b26aaa864ccae2e037c85a35df50b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:31:47.547 ***
alicE_admin_get_user_resource_564@localhost/res1 in
<iq id='888b26aaa864ccae2e037c85a35df50b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_admin_get_user_resource_564@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:31:47.548 ***
alicE_admin_get_user_resource_564@localhost/res1 out
<iq type='set' id='a583a46e497951ee21af50f7fe87f9fd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:31:47.548 ***
alicE_admin_get_user_resource_564@localhost/res1 in
<iq type='result' id='a583a46e497951ee21af50f7fe87f9fd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:31:47.548 ***
alicE_admin_get_user_resource_564@localhost/res1 out
<presence/>



*** User 2022-03-03 10:31:47.549 ***
alicE_admin_get_user_resource_564@localhost/res1 in
<presence from='alicE_admin_get_user_resource_564@localhost/res1' to='alice_admin_get_user_resource_564@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:31:47.549 ***
alicE_admin_get_user_resource_564@localhost/res2 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:31:47.550 ***
alicE_admin_get_user_resource_564@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8a02e4d7a36909ae' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:31:47.550 ***
alicE_admin_get_user_resource_564@localhost/res2 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:31:47.550 ***
alicE_admin_get_user_resource_564@localhost/res2 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2dldF91c2VyX3Jlc291cmNlXzU2NABtYXR5Z3J5c2E=</auth>



*** User 2022-03-03 10:31:47.551 ***
alicE_admin_get_user_resource_564@localhost/res2 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:31:47.551 ***
alicE_admin_get_user_resource_564@localhost/res2 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:31:47.551 ***
alicE_admin_get_user_resource_564@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f93e54ffd55ee8e0' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:31:47.552 ***
alicE_admin_get_user_resource_564@localhost/res2 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:31:47.552 ***
alicE_admin_get_user_resource_564@localhost/res2 out
<iq type='set' id='cf09bcb8c42a713784f978904f390ef8'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res2</resource>
	</bind>
</iq>



*** User 2022-03-03 10:31:47.552 ***
alicE_admin_get_user_resource_564@localhost/res2 in
<iq id='cf09bcb8c42a713784f978904f390ef8' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_admin_get_user_resource_564@localhost/res2</jid>
	</bind>
</iq>



*** User 2022-03-03 10:31:47.552 ***
alicE_admin_get_user_resource_564@localhost/res2 out
<iq type='set' id='7ad2dc2f2691a07cc306d58524f8d8db'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:31:47.552 ***
alicE_admin_get_user_resource_564@localhost/res2 in
<iq type='result' id='7ad2dc2f2691a07cc306d58524f8d8db'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:31:47.553 ***
alicE_admin_get_user_resource_564@localhost/res2 out
<presence/>



*** User 2022-03-03 10:31:47.553 ***
alicE_admin_get_user_resource_564@localhost/res2 in
<presence from='alicE_admin_get_user_resource_564@localhost/res2' to='alice_admin_get_user_resource_564@localhost/res2' xml:lang='en'/>



*** User 2022-03-03 10:31:47.553 ***
alicE_admin_get_user_resource_564@localhost/res2 in
<presence from='alice_admin_get_user_resource_564@localhost/res1' to='alicE_admin_get_user_resource_564@localhost/res2' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-03-03T10:31:47Z' from='alice_admin_get_user_resource_564@localhost/res1'/>
</presence>



*** User 2022-03-03 10:31:47.554 ***
alicE_admin_get_user_resource_564@localhost/res3 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:31:47.554 ***
alicE_admin_get_user_resource_564@localhost/res3 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='49238e932f2e1e61' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:31:47.555 ***
alicE_admin_get_user_resource_564@localhost/res3 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:31:47.555 ***
alicE_admin_get_user_resource_564@localhost/res3 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2dldF91c2VyX3Jlc291cmNlXzU2NABtYXR5Z3J5c2E=</auth>



*** User 2022-03-03 10:31:47.556 ***
alicE_admin_get_user_resource_564@localhost/res3 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:31:47.556 ***
alicE_admin_get_user_resource_564@localhost/res3 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:31:47.556 ***
alicE_admin_get_user_resource_564@localhost/res3 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='847c1e2f7d70453e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:31:47.556 ***
alicE_admin_get_user_resource_564@localhost/res3 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:31:47.556 ***
alicE_admin_get_user_resource_564@localhost/res3 out
<iq type='set' id='86c6a039399fabeb491fd0f9a354d602'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res3</resource>
	</bind>
</iq>



*** User 2022-03-03 10:31:47.557 ***
alicE_admin_get_user_resource_564@localhost/res3 in
<iq id='86c6a039399fabeb491fd0f9a354d602' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_admin_get_user_resource_564@localhost/res3</jid>
	</bind>
</iq>



*** User 2022-03-03 10:31:47.557 ***
alicE_admin_get_user_resource_564@localhost/res3 out
<iq type='set' id='7ea265a60aac20773faeeff43e36a97b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:31:47.557 ***
alicE_admin_get_user_resource_564@localhost/res3 in
<iq type='result' id='7ea265a60aac20773faeeff43e36a97b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:31:47.557 ***
alicE_admin_get_user_resource_564@localhost/res3 out
<presence/>



*** User 2022-03-03 10:31:47.558 ***
alicE_admin_get_user_resource_564@localhost/res3 in
<presence from='alice_admin_get_user_resource_564@localhost/res2' to='alicE_admin_get_user_resource_564@localhost/res3' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-03-03T10:31:47Z' from='alice_admin_get_user_resource_564@localhost/res2'/>
</presence>



*** User 2022-03-03 10:31:47.558 ***
alicE_admin_get_user_resource_564@localhost/res3 in
<presence from='alice_admin_get_user_resource_564@localhost/res1' to='alicE_admin_get_user_resource_564@localhost/res3' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-03-03T10:31:47Z' from='alice_admin_get_user_resource_564@localhost/res1'/>
</presence>



*** User 2022-03-03 10:31:47.558 ***
alicE_admin_get_user_resource_564@localhost/res3 in
<presence from='alicE_admin_get_user_resource_564@localhost/res3' to='alice_admin_get_user_resource_564@localhost/res3' xml:lang='en'/>



*** User 2022-03-03 10:31:47.558 ***
alicE_admin_get_user_resource_564@localhost/res1 in
<presence from='alicE_admin_get_user_resource_564@localhost/res2' to='alice_admin_get_user_resource_564@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:31:47.558 ***
alicE_admin_get_user_resource_564@localhost/res1 in
<presence from='alicE_admin_get_user_resource_564@localhost/res3' to='alice_admin_get_user_resource_564@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:31:47.559 ***
alicE_admin_get_user_resource_564@localhost/res2 in
<presence from='alicE_admin_get_user_resource_564@localhost/res3' to='alice_admin_get_user_resource_564@localhost/res2' xml:lang='en'/>



*** User 2022-03-03 10:31:47.560 ***
REST request:
Code: 200
Req: {<0.16385.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ac63004a70e4862">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"user\":\"alicE_admin_get_user_resource_564@localhost\",\"number\":2},\"query\":\"query Q1($user: JID!, $number: Int!)\\n              { session { getUserResource(user: $user, number: $number) } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:31:46 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"47">>}],
         <<"{\"data\":{\"session\":{\"getUserResource\":\"res2\"}}}">>,185,
         816}
Params: #{body =>
              <<"{\"variables\":{\"user\":\"alicE_admin_get_user_resource_564@localhost\",\"number\":2},\"query\":\"query Q1($user: JID!, $number: Int!)\\n              { session { getUserResource(user: $user, number: $number) } }\",\"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-03-03 10:31:47.562 ***
REST request:
Code: 200
Req: {<0.16387.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"69aabad183b7e02a">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"user\":\"alicE_admin_get_user_resource_564@localhost\",\"number\":4},\"query\":\"query Q1($user: JID!, $number: Int!)\\n              { session { getUserResource(user: $user, number: $number) } }\",\"operationName\":\"Q1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:31:46 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"184">>}],
         <<"{\"errors\":[{\"path\":[\"session\",\"getUserResource\"],\"message\":\"Wrong resource number: 4\",\"extensions\":{\"number\":4,\"code\":\"wrong_res_number\"}}],\"data\":{\"session\":{\"getUserResource\":null}}}">>,
         323,862}
Params: #{body =>
              <<"{\"variables\":{\"user\":\"alicE_admin_get_user_resource_564@localhost\",\"number\":4},\"query\":\"query Q1($user: JID!, $number: Int!)\\n              { session { getUserResource(user: $user, number: $number) } }\",\"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-03-03 10:31:47.563 ***
alicE_admin_get_user_resource_564@localhost/res3 out
</stream:stream>

*** User 2022-03-03 10:31:47.563 ***
alicE_admin_get_user_resource_564@localhost/res3 in
</stream:stream>

*** User 2022-03-03 10:31:47.563 ***
alicE_admin_get_user_resource_564@localhost/res2 out
</stream:stream>

*** User 2022-03-03 10:31:47.563 ***
alicE_admin_get_user_resource_564@localhost/res2 in
</stream:stream>

*** User 2022-03-03 10:31:47.563 ***
alicE_admin_get_user_resource_564@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:31:47.564 ***
alicE_admin_get_user_resource_564@localhost/res1 in
</stream:stream>
*** CT 2022-03-03 10:31:47.565 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_494.html
*** CT 2022-03-03 10:31:47.566 *** View log from node mongooseim@localhost when finished mongooseim@localhost_910.html



=== Ended at 2022-03-03 10:31:47
=== successfully completed test case
=== === Returned value: ok


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