-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: add test case from FTRepo Signed-off-by: suzhou <[email protected]> * feat: update Signed-off-by: suzhou <[email protected]> * feat: update Signed-off-by: suzhou <[email protected]> * feat: update Signed-off-by: suzhou <[email protected]> * feat: update Signed-off-by: suzhou <[email protected]> * feat: update Signed-off-by: suzhou <[email protected]> * feat: update Signed-off-by: suzhou <[email protected]> * feat: update Signed-off-by: suzhou <[email protected]> --------- Signed-off-by: suzhou <[email protected]> (cherry picked from commit 87ab1f4) Co-authored-by: suzhou <[email protected]>
- Loading branch information
1 parent
1c6af19
commit 950e157
Showing
29 changed files
with
1,038 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"viewportHeight": 900, | ||
"viewportWidth": 1440, | ||
"defaultCommandTimeout": 10000, | ||
"nodeVersion": "system", | ||
"defaultCommandTimeout": 60000, | ||
"requestTimeout": 60000, | ||
"responseTimeout": 60000, | ||
"baseUrl": "http://localhost:5601", | ||
"viewportWidth": 2000, | ||
"viewportHeight": 1320, | ||
"env": { | ||
"opensearch_url": "localhost:9200", | ||
"opensearch_dashboards": "http://localhost:5601", | ||
"security_enabled": false, | ||
"openSearchUrl": "http://localhost:9200", | ||
"SECURITY_ENABLED": false, | ||
"username": "admin", | ||
"password": "admin" | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
cypress/fixtures/plugins/index-management-dashboards-plugin/sample_data_stream_policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"policy": { | ||
"description": "A simple description", | ||
"default_state": "hot", | ||
"states": [ | ||
{ | ||
"name": "hot", | ||
"actions": [ | ||
{ | ||
"replica_count": { | ||
"number_of_replicas": 5 | ||
} | ||
} | ||
], | ||
"transitions": [ | ||
{ | ||
"state_name": "cold", | ||
"conditions": { | ||
"min_index_age": "30d" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "cold", | ||
"actions": [ | ||
{ | ||
"replica_count": { | ||
"number_of_replicas": 2 | ||
} | ||
} | ||
], | ||
"transitions": [] | ||
} | ||
], | ||
"ism_template": { | ||
"index_patterns": ["logs-*"] | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
cypress/fixtures/plugins/index-management-dashboards-plugin/sample_policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"policy": { | ||
"description": "A simple description", | ||
"default_state": "hot", | ||
"states": [ | ||
{ | ||
"name": "hot", | ||
"actions": [ | ||
{ | ||
"replica_count": { | ||
"number_of_replicas": 5 | ||
} | ||
} | ||
], | ||
"transitions": [ | ||
{ | ||
"state_name": "cold", | ||
"conditions": { | ||
"min_index_age": "30d" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "cold", | ||
"actions": [ | ||
{ | ||
"replica_count": { | ||
"number_of_replicas": 2 | ||
} | ||
} | ||
], | ||
"transitions": [] | ||
} | ||
] | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
cypress/fixtures/plugins/index-management-dashboards-plugin/sample_rollover_policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"policy": { | ||
"description": "A simple description", | ||
"default_state": "hot", | ||
"states": [ | ||
{ | ||
"name": "hot", | ||
"actions": [ | ||
{ | ||
"rollover": {}, | ||
"retry": { | ||
"count": 0 | ||
} | ||
} | ||
], | ||
"transitions": [ | ||
{ | ||
"state_name": "cold", | ||
"conditions": { | ||
"min_index_age": "30d" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "cold", | ||
"actions": [ | ||
{ | ||
"replica_count": { | ||
"number_of_replicas": 2 | ||
} | ||
} | ||
], | ||
"transitions": [] | ||
} | ||
] | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
cypress/fixtures/plugins/index-management-dashboards-plugin/sample_rollup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"rollup": { | ||
"enabled": true, | ||
"schedule": { | ||
"interval": { | ||
"period": 1, | ||
"unit": "Minutes", | ||
"start_time": 1602100553 | ||
} | ||
}, | ||
"last_updated_time": 1602100553, | ||
"description": "An example rollup job that rolls up the sample ecommerce data", | ||
"source_index": "opensearch_dashboards_sample_data_ecommerce", | ||
"target_index": "test_rollup_target", | ||
"page_size": 1000, | ||
"delay": 0, | ||
"continuous": false, | ||
"dimensions": [ | ||
{ | ||
"date_histogram": { | ||
"source_field": "order_date", | ||
"fixed_interval": "90m", | ||
"timezone": "America/Los_Angeles" | ||
} | ||
}, | ||
{ | ||
"terms": { | ||
"source_field": "customer_gender" | ||
} | ||
}, | ||
{ | ||
"terms": { | ||
"source_field": "geoip.city_name" | ||
} | ||
}, | ||
{ | ||
"terms": { | ||
"source_field": "geoip.region_name" | ||
} | ||
}, | ||
{ | ||
"terms": { | ||
"source_field": "day_of_week" | ||
} | ||
} | ||
], | ||
"metrics": [ | ||
{ | ||
"source_field": "taxless_total_price", | ||
"metrics": [{ "avg": {} }, { "sum": {} }, { "max": {} }, { "min": {} }, { "value_count": {} }] | ||
}, | ||
{ | ||
"source_field": "total_quantity", | ||
"metrics": [{ "avg": {} }, { "max": {} }] | ||
} | ||
] | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
cypress/fixtures/plugins/index-management-dashboards-plugin/sample_transform.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"transform": { | ||
"enabled": true, | ||
"schedule": { | ||
"interval": { | ||
"period": 1, | ||
"unit": "Minutes", | ||
"start_time": 1602100553 | ||
} | ||
}, | ||
"description": "Test transform", | ||
"source_index": "opensearch_dashboards_sample_data_ecommerce", | ||
"target_index": "test_transform", | ||
"data_selection_query": { | ||
"match_all": {} | ||
}, | ||
"page_size": 1000, | ||
"groups": [ | ||
{ | ||
"terms": { | ||
"source_field": "customer_gender", | ||
"target_field": "gender" | ||
} | ||
}, | ||
{ | ||
"terms": { | ||
"source_field": "day_of_week", | ||
"target_field": "day" | ||
} | ||
} | ||
], | ||
"aggregations": { | ||
"quantity": { | ||
"sum": { | ||
"field": "total_quantity" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.