=== Test case: graphql_muc_light_SUITE:admin_create_identified_room/1 (click for source code)
=== Config value:
[{schema_endpoint,admin},
{listener_opts,[{password,<<"secret">>},
{schema_endpoint,<<"admin">>},
{username,<<"admin">>}]},
{watchdog,<0.17753.0>},
{muc_light_host,<<"muclight2.domain.example.com">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_muc_light_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.graphql_muc_light_SUITE.logs/run.2022-03-04_11.19.43/graphql_muc_light_suite.admin_create_identified_room.18436.html"},
{tc_group_properties,[{name,admin_muc_light},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_muc_light_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.graphql_muc_light_SUITE.logs/run.2022-03-04_11.19.43/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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 => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:19:44
*** User 2022-03-04 11:19:44.255 ***
alicE_admin_create_identified_room_718@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-04 11:19:44.256 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce4875c8f43da8a5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:19:44.256 ***
alicE_admin_create_identified_room_718@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-04 11:19:44.256 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2NyZWF0ZV9pZGVudGlmaWVkX3Jvb21fNzE4AG1hdHlncnlzYQ==</auth>
*** User 2022-03-04 11:19:44.257 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:19:44.257 ***
alicE_admin_create_identified_room_718@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-04 11:19:44.257 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cf6f5d7301bf2f8c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:19:44.258 ***
alicE_admin_create_identified_room_718@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-04 11:19:44.258 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 out
<iq type='set' id='380d9d10fc7a586f0a8b8a3a255749ce'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:19:44.258 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 in
<iq id='380d9d10fc7a586f0a8b8a3a255749ce' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_admin_create_identified_room_718@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:19:44.258 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 out
<iq type='set' id='6bca42f4ff26541b53dd2326f187be90'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:19:44.258 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 in
<iq type='result' id='6bca42f4ff26541b53dd2326f187be90'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:19:44.259 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:19:44.261 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 in
<presence from='alicE_admin_create_identified_room_718@domain.example.com/res1' to='alice_admin_create_identified_room_718@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:19:44.263 ***
REST request:
Code: 200
Req: {<0.17920.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3d508972c327d7b9">>},
{<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
<<"{\"variables\":{\"subject\":\"testing\",\"owner\":\"alicE_admin_create_identified_room_718@domain.example.com\",\"name\":\"first room\",\"mucDomain\":\"muclight2.domain.example.com\",\"id\":\"my_room\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $subject: String!, $id: NonEmptyString)\\n { muc_light { createRoom(mucDomain: $mucDomain, name: $name, owner: $owner, subject: $subject, id: $id)\\n { jid name subject participants {jid affiliation} } } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"231">>}],
<<"{\"data\":{\"muc_light\":{\"createRoom\":{\"subject\":\"testing\",\"participants\":[{\"jid\":\"alice_admin_create_identified_room_718@domain.example.com\",\"affiliation\":\"OWNER\"}],\"name\":\"first room\",\"jid\":\"my_room@muclight2.domain.example.com\"}}}}">>,
370,923}
Params: #{body =>
<<"{\"variables\":{\"subject\":\"testing\",\"owner\":\"alicE_admin_create_identified_room_718@domain.example.com\",\"name\":\"first room\",\"mucDomain\":\"muclight2.domain.example.com\",\"id\":\"my_room\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $subject: String!, $id: NonEmptyString)\\n { muc_light { createRoom(mucDomain: $mucDomain, name: $name, owner: $owner, subject: $subject, id: $id)\\n { jid name subject participants {jid affiliation} } } }\",\"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-03-04 11:19:44.266 ***
REST request:
Code: 200
Req: {<0.17925.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"432e24a213105b1c">>},
{<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
<<"{\"variables\":{\"subject\":\"testing\",\"owner\":\"alicE_admin_create_identified_room_718@domain.example.com\",\"name\":\"snd room\",\"mucDomain\":\"muclight2.domain.example.com\",\"id\":\"my_room\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $subject: String!, $id: NonEmptyString)\\n { muc_light { createRoom(mucDomain: $mucDomain, name: $name, owner: $owner, subject: $subject, id: $id)\\n { jid name subject participants {jid affiliation} } } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"407">>}],
<<"{\"errors\":[{\"path\":[\"muc_light\",\"createRoom\"],\"message\":\"Room already exists\",\"extensions\":{\"mucDomain\":\"muclight2.domain.example.com\",\"id\":\"my_room\",\"creator\":\"{jid,<<\\\"alicE_admin_create_identified_room_718\\\">>,<<\\\"domain.example.com\\\">>,\\n <<>>,<<\\\"alice_admin_create_identified_room_718\\\">>,\\n <<\\\"domain.example.com\\\">>,<<>>}\",\"code\":\"already_exist\"}}],\"data\":{\"muc_light\":{\"createRoom\":null}}}">>,
546,869}
Params: #{body =>
<<"{\"variables\":{\"subject\":\"testing\",\"owner\":\"alicE_admin_create_identified_room_718@domain.example.com\",\"name\":\"snd room\",\"mucDomain\":\"muclight2.domain.example.com\",\"id\":\"my_room\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $subject: String!, $id: NonEmptyString)\\n { muc_light { createRoom(mucDomain: $mucDomain, name: $name, owner: $owner, subject: $subject, id: $id)\\n { jid name subject participants {jid affiliation} } } }\",\"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-03-04 11:19:44.269 ***
REST request:
Code: 200
Req: {<0.17933.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fab941463cb57e81">>},
{<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
<<"{\"variables\":{\"subject\":\"testing\",\"owner\":\"alicE_admin_create_identified_room_718@domain.example.com\",\"name\":\"name\",\"mucDomain\":\"not-existing-domain\",\"id\":\"my_room\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $subject: String!, $id: NonEmptyString)\\n { muc_light { createRoom(mucDomain: $mucDomain, name: $name, owner: $owner, subject: $subject, id: $id)\\n { jid name subject participants {jid affiliation} } } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"412">>}],
<<"{\"errors\":[{\"path\":[\"muc_light\",\"createRoom\"],\"message\":\"MUC Light server not found\",\"extensions\":{\"mucDomain\":\"not-existing-domain\",\"id\":\"my_room\",\"creator\":\"{jid,<<\\\"alicE_admin_create_identified_room_718\\\">>,<<\\\"domain.example.com\\\">>,\\n <<>>,<<\\\"alice_admin_create_identified_room_718\\\">>,\\n <<\\\"domain.example.com\\\">>,<<>>}\",\"code\":\"muc_server_not_found\"}}],\"data\":{\"muc_light\":{\"createRoom\":null}}}">>,
551,1187}
Params: #{body =>
<<"{\"variables\":{\"subject\":\"testing\",\"owner\":\"alicE_admin_create_identified_room_718@domain.example.com\",\"name\":\"name\",\"mucDomain\":\"not-existing-domain\",\"id\":\"my_room\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $subject: String!, $id: NonEmptyString)\\n { muc_light { createRoom(mucDomain: $mucDomain, name: $name, owner: $owner, subject: $subject, id: $id)\\n { jid name subject participants {jid affiliation} } } }\",\"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-03-04 11:19:44.271 ***
REST request fails:
Code: 400
Req: {<0.17939.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"39a7c8d8be798337">>},
{<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
<<"{\"variables\":{\"subject\":\"testing\",\"owner\":\"alicE_admin_create_identified_room_718@domain.example.com\",\"name\":\"name\",\"mucDomain\":\"muclight2.domain.example.com\",\"id\":\"\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $subject: String!, $id: NonEmptyString)\\n { muc_light { createRoom(mucDomain: $mucDomain, name: $name, owner: $owner, subject: $subject, id: $id)\\n { jid name subject participants {jid affiliation} } } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:19:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"198">>}],
<<"{\"errors\":[{\"path\":[\"M1\",\"id\"],\"message\":\"Input coercion failed for type NonEmptyString with value <<>>. The reason it failed is: \\\"Given string is empty\\\"\",\"extensions\":{\"code\":\"input_coercion\"}}]}">>,
346,940}
Params: #{body =>
<<"{\"variables\":{\"subject\":\"testing\",\"owner\":\"alicE_admin_create_identified_room_718@domain.example.com\",\"name\":\"name\",\"mucDomain\":\"muclight2.domain.example.com\",\"id\":\"\"},\"query\":\"mutation M1($mucDomain: String!, $name: String!, $owner: JID!, $subject: String!, $id: NonEmptyString)\\n { muc_light { createRoom(mucDomain: $mucDomain, name: $name, owner: $owner, subject: $subject, id: $id)\\n { jid name subject participants {jid affiliation} } } }\",\"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-03-04 11:19:44.271 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:19:44.272 ***
alicE_admin_create_identified_room_718@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:19:44
=== successfully completed test case
=== === Returned value: ok