From 7865b014f546ec83d9780dec5b3f97b468b25912 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Mon, 9 Sep 2024 12:25:19 -0700 Subject: [PATCH] Update snapshot Signed-off-by: Ryan Liang --- docs/_sidebar.md | 1 + .../setup_integration.test.tsx.snap | 262 +++++++++++++++++- 2 files changed, 261 insertions(+), 2 deletions(-) diff --git a/docs/_sidebar.md b/docs/_sidebar.md index b1b70d6abb01..dfb056497aa0 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -167,6 +167,7 @@ - [Opensearch dashboards.release notes 2.14.0](../release-notes/opensearch-dashboards.release-notes-2.14.0.md) - [Opensearch dashboards.release notes 2.15.0](../release-notes/opensearch-dashboards.release-notes-2.15.0.md) - [Opensearch dashboards.release notes 2.16.0](../release-notes/opensearch-dashboards.release-notes-2.16.0.md) + - [Opensearch dashboards.release notes 2.17.0](../release-notes/opensearch-dashboards.release-notes-2.17.0.md) - [Opensearch dashboards.release notes 2.2.0](../release-notes/opensearch-dashboards.release-notes-2.2.0.md) - [Opensearch dashboards.release notes 2.2.1](../release-notes/opensearch-dashboards.release-notes-2.2.1.md) - [Opensearch dashboards.release notes 2.3.0](../release-notes/opensearch-dashboards.release-notes-2.3.0.md) diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/integrations/__snapshots__/setup_integration.test.tsx.snap b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/integrations/__snapshots__/setup_integration.test.tsx.snap index eaefe0d108f1..a0df1a8465d1 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/integrations/__snapshots__/setup_integration.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/integrations/__snapshots__/setup_integration.test.tsx.snap @@ -16,6 +16,12 @@ exports[`SetupIntegrationForm tests renders SetupIntegrationForm 1`] = ` "enabledWorkflows": Array [], } } + http={ + Object { + "get": [MockFunction], + "post": [MockFunction], + } + } integration={ Object { "assets": Array [], @@ -104,7 +110,54 @@ exports[`SetupIntegrationForm tests renders SetupIntegrationForm and matches sna }, ], }, - "post": [MockFunction], + "post": [MockFunction] { + "calls": Array [ + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + ], + "results": Array [ + Object { + "type": "return", + "value": undefined, + }, + Object { + "type": "return", + "value": undefined, + }, + Object { + "type": "return", + "value": undefined, + }, + ], + }, } } integration="test_integration" @@ -136,6 +189,85 @@ exports[`SetupIntegrationForm tests renders SetupIntegrationForm and matches sna "enabledWorkflows": Array [], } } + http={ + Object { + "get": [MockFunction] { + "calls": Array [ + Array [ + "/api/integrations/repository/test_integration", + ], + Array [ + "/api/integrations/repository/test_integration", + ], + Array [ + "/api/integrations/repository/test_integration", + ], + ], + "results": Array [ + Object { + "type": "return", + "value": Promise {}, + }, + Object { + "type": "return", + "value": Promise {}, + }, + Object { + "type": "return", + "value": Promise {}, + }, + ], + }, + "post": [MockFunction] { + "calls": Array [ + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + ], + "results": Array [ + Object { + "type": "return", + "value": undefined, + }, + Object { + "type": "return", + "value": undefined, + }, + Object { + "type": "return", + "value": undefined, + }, + ], + }, + } + } integration={ Object { "assets": Array [], @@ -330,6 +462,85 @@ exports[`SetupIntegrationForm tests renders SetupIntegrationForm and matches sna "enabledWorkflows": Array [], } } + http={ + Object { + "get": [MockFunction] { + "calls": Array [ + Array [ + "/api/integrations/repository/test_integration", + ], + Array [ + "/api/integrations/repository/test_integration", + ], + Array [ + "/api/integrations/repository/test_integration", + ], + ], + "results": Array [ + Object { + "type": "return", + "value": Promise {}, + }, + Object { + "type": "return", + "value": Promise {}, + }, + Object { + "type": "return", + "value": Promise {}, + }, + ], + }, + "post": [MockFunction] { + "calls": Array [ + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + ], + "results": Array [ + Object { + "type": "return", + "value": undefined, + }, + Object { + "type": "return", + "value": undefined, + }, + Object { + "type": "return", + "value": undefined, + }, + ], + }, + } + } integration={ Object { "assets": Array [], @@ -956,7 +1167,54 @@ exports[`SetupIntegrationForm tests renders SetupIntegrationForm and matches sna }, ], }, - "post": [MockFunction], + "post": [MockFunction] { + "calls": Array [ + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + Array [ + "/api/console/proxy", + Object { + "body": "{}", + "query": Object { + "method": "GET", + "path": "_data_stream/ss4o_*", + }, + }, + ], + ], + "results": Array [ + Object { + "type": "return", + "value": undefined, + }, + Object { + "type": "return", + "value": undefined, + }, + Object { + "type": "return", + "value": undefined, + }, + ], + }, } } integration={