=== Test case: graphql_cets_SUITE:discovered_nodes/1 (click for source code)

=== Config value:

    [{protocol,http},
     {schema_endpoint,admin},
     {listener_opts,#{module => mongoose_graphql_handler,
                      path => "/api/graphql",host => "localhost",
                      username => <<"admin">>,password => <<"secret">>,
                      sse_idle_timeout => 3600000,schema_endpoint => admin}},
     {watchdog,<0.31439.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_cets_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.graphql_cets_SUITE.logs/run.2024-04-23_10.59.16/graphql_cets_suite.discovered_nodes.19973.html"},
     {tc_group_properties,[{name,admin_cets_http},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_cets_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.graphql_cets_SUITE.logs/run.2024-04-23_10.59.16/log_private/"},
     {require,{hosts,mim,node}},
     {require,{hosts,mim2,node}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@df27fc96a068.2024-04-23_10.53.32"

=== Started at 2024-04-23 10:59:20


*** CT 2024-04-23 10:59:20.027 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1748.html

*** User 2024-04-23 10:59:20.039 ***🔗
REST request:
Code: 200
Req: {<0.31547.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9ad5b85cbf44c862">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{},\"query\":\"query { cets { systemInfo { availableNodes conflictNodes conflictTables discoveredNodes discoveryWorks joinedNodes remoteMissingTables remoteNodesWithMissingTables remoteNodesWithUnknownTables remoteNodesWithoutDisco remoteUnknownTables unavailableNodes } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 10:59:19 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"571">>}],
         <<"{\"data\":{\"cets\":{\"systemInfo\":{\"unavailableNodes\":[\"badnode@localhost\"],\"remoteUnknownTables\":[],\"remoteNodesWithoutDisco\":[],\"remoteNodesWithUnknownTables\":[],\"remoteNodesWithMissingTables\":[],\"remoteMissingTables\":[],\"joinedNodes\":[\"mongooseim2@localhost\",\"mongooseim3@localhost\",\"mongooseim@localhost\"],\"discoveryWorks\":true,\"discoveredNodes\":[\"badnode@localhost\",\"mongooseim2@localhost\",\"mongooseim3@localhost\",\"mongooseim@localhost\"],\"conflictTables\":[],\"conflictNodes\":[],\"availableNodes\":[\"mongooseim2@localhost\",\"mongooseim3@localhost\",\"mongooseim@localhost\"]}}}}">>,
         710,1773}
Params: #{port => 5551,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds => {<<"admin">>,<<"secret">>},
          body =>
              <<"{\"variables\":{},\"query\":\"query { cets { systemInfo { availableNodes conflictNodes conflictTables discoveredNodes discoveryWorks joinedNodes remoteMissingTables remoteNodesWithMissingTables remoteNodesWithUnknownTables remoteNodesWithoutDisco remoteUnknownTables unavailableNodes } } }\"}">>,
          role => {graphql,admin},
          return_maps => true,return_headers => true}

*** CT 2024-04-23 10:59:20.050 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1748.html



=== Ended at 2024-04-23 10:59:20
=== successfully completed test case
=== === Returned value: true