From 4e4a8099bf17016945b905818396eba541d59973 Mon Sep 17 00:00:00 2001 From: "Qingyang(Abby) Hu" Date: Tue, 10 Oct 2023 18:28:41 -0700 Subject: [PATCH] add before after Signed-off-by: Qingyang(Abby) Hu --- .../data_explorer/date_nanos/mappings.json.txt | 3 ++- .../date_nanos_mix/mappings.json.txt | 6 ++++-- .../data_explorer/hamlet/mappings.json.txt | 6 ++++-- .../logstash/logstash.mappings.json.txt | 3 ++- .../long_window_logstash/mappings.json.txt | 3 ++- .../sample-data-simple/index-settings.txt | 2 +- .../apps/data_explorer/aaa_before.spec.js | 15 +++++++++++++++ .../apps/data_explorer/zzz_after.spec.js | 15 +++++++++++++++ 8 files changed, 45 insertions(+), 8 deletions(-) create mode 100644 cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/aaa_before.spec.js create mode 100644 cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/zzz_after.spec.js diff --git a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/date_nanos/mappings.json.txt b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/date_nanos/mappings.json.txt index bea82767f..22e31bc0b 100644 --- a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/date_nanos/mappings.json.txt +++ b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/date_nanos/mappings.json.txt @@ -12,7 +12,8 @@ "settings": { "index": { "number_of_replicas": "0", - "number_of_shards": "1" + "number_of_shards": "1", + "codec": "best_compression" } } } diff --git a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/date_nanos_mix/mappings.json.txt b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/date_nanos_mix/mappings.json.txt index c62918abc..eaeaeee37 100644 --- a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/date_nanos_mix/mappings.json.txt +++ b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/date_nanos_mix/mappings.json.txt @@ -14,7 +14,8 @@ "settings": { "index": { "number_of_replicas": "1", - "number_of_shards": "1" + "number_of_shards": "1", + "codec": "best_compression" } } } @@ -36,7 +37,8 @@ "settings": { "index": { "number_of_replicas": "1", - "number_of_shards": "1" + "number_of_shards": "1", + "codec": "best_compression" } } } diff --git a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/hamlet/mappings.json.txt b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/hamlet/mappings.json.txt index d50b6c58b..a10c4f324 100644 --- a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/hamlet/mappings.json.txt +++ b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/hamlet/mappings.json.txt @@ -299,7 +299,8 @@ "index": { "auto_expand_replicas": "0-1", "number_of_replicas": "0", - "number_of_shards": "1" + "number_of_shards": "1", + "codec": "best_compression" } } } @@ -327,7 +328,8 @@ "settings": { "index": { "number_of_replicas": "1", - "number_of_shards": "5" + "number_of_shards": "5", + "codec": "best_compression" } } } diff --git a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/logstash/logstash.mappings.json.txt b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/logstash/logstash.mappings.json.txt index 010abff9c..8da1c5363 100644 --- a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/logstash/logstash.mappings.json.txt +++ b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/logstash/logstash.mappings.json.txt @@ -1111,7 +1111,8 @@ } }, "number_of_replicas": "0", - "number_of_shards": "1" + "number_of_shards": "1", + "codec": "best_compression" } } } diff --git a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/long_window_logstash/mappings.json.txt b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/long_window_logstash/mappings.json.txt index c95bb5a0f..3ee6968a5 100644 --- a/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/long_window_logstash/mappings.json.txt +++ b/cypress/fixtures/dashboard/opensearch_dashboards/data_explorer/long_window_logstash/mappings.json.txt @@ -397,7 +397,8 @@ } }, "number_of_replicas": "0", - "number_of_shards": "1" + "number_of_shards": "1", + "codec": "best_compression" } } } diff --git a/cypress/fixtures/dashboard/opensearch_dashboards/vis-augmenter/sample-data-simple/index-settings.txt b/cypress/fixtures/dashboard/opensearch_dashboards/vis-augmenter/sample-data-simple/index-settings.txt index d4d78055d..eafa8b9fa 100644 --- a/cypress/fixtures/dashboard/opensearch_dashboards/vis-augmenter/sample-data-simple/index-settings.txt +++ b/cypress/fixtures/dashboard/opensearch_dashboards/vis-augmenter/sample-data-simple/index-settings.txt @@ -1 +1 @@ -{"mappings":{"properties":{"value1":{"type":"integer"},"value2":{"type":"integer"},"value3":{"type":"integer"},"@timestamp":{"type":"date", "format":"epoch_millis"}}},"settings":{"index":{"number_of_shards":"1","number_of_replicas":"1"}}} \ No newline at end of file +{"mappings":{"properties":{"value1":{"type":"integer"},"value2":{"type":"integer"},"value3":{"type":"integer"},"@timestamp":{"type":"date", "format":"epoch_millis"}}},"settings":{"index":{"number_of_shards":"1","number_of_replicas":"1","codec": "best_compression"}}} \ No newline at end of file diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/aaa_before.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/aaa_before.spec.js new file mode 100644 index 000000000..8b56fb15c --- /dev/null +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/aaa_before.spec.js @@ -0,0 +1,15 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +/// + +describe('Before', () => { + before(() => { + cy.deleteAllIndices(); + cy.deleteSavedObjectByType('index-pattern'); + }); + + it('setup completed', () => {}); +}); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/zzz_after.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/zzz_after.spec.js new file mode 100644 index 000000000..a3bb0d55c --- /dev/null +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/zzz_after.spec.js @@ -0,0 +1,15 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +/// + +describe('After', () => { + before(() => { + cy.deleteAllIndices(); + cy.deleteSavedObjectByType('index-pattern'); + }); + + it('clean up complete', () => {}); +});