-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AD cypress tests for uncovered workflows and pages (#95)
* Add test coverage for AD plugin Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Add helpers file Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Remove unused constants/helpers/fixtures Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Add tests for checking flyouts Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Make sample detector WF more efficient; set up config page test suite Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Add detector config page tests Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Add tests for real-time results page Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Add historical results tests Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Add back missing import Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Reorganize tests; add historical analysis test Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Update test data Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Rename historical analysis test suite Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com> * Add more historical analysis tests Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
- Loading branch information
Showing
24 changed files
with
1,013 additions
and
347 deletions.
There are no files selected for viewing
25 changes: 12 additions & 13 deletions
25
cypress/fixtures/plugins/anomaly-detection-dashboards-plugin/delete_detector_response.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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{ | ||
"_index": ".opendistro-anomaly-detectors", | ||
"_type": "_doc", | ||
"_id": "ulgqpXEBqtadYz9j2MHG", | ||
"_version": 2, | ||
"result": "deleted", | ||
"forced_refresh": true, | ||
"_shards": { | ||
"total": 2, | ||
"successful": 2, | ||
"failed": 0 | ||
}, | ||
"_seq_no": 6, | ||
"_primary_term": 1 | ||
"ok": true, | ||
"response": { | ||
"_index": ".opendistro-anomaly-detectors", | ||
"_type": "_doc", | ||
"_id": "nKDQ-n4BQogdTzUQtWpL", | ||
"_version": 2, | ||
"result": "deleted", | ||
"forced_refresh": true, | ||
"_shards": { "total": 2, "successful": 1, "failed": 0 }, | ||
"_seq_no": 16, | ||
"_primary_term": 15 | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...xtures/plugins/anomaly-detection-dashboards-plugin/multiple_detectors_index_response.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,11 @@ | ||
{ | ||
"ok": true, | ||
"response": { | ||
"indices": [ | ||
{ "health": "green", "index": "feature-required-detector-index" }, | ||
{ "health": "green", "index": "initializing-detector-index" }, | ||
{ "health": "green", "index": "running-detector-index" }, | ||
{ "health": "green", "index": "stopped-detector-index" } | ||
] | ||
} | ||
} |
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
23 changes: 0 additions & 23 deletions
23
cypress/fixtures/plugins/anomaly-detection-dashboards-plugin/post_detector_response.json
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
cypress/fixtures/plugins/anomaly-detection-dashboards-plugin/sample_test_data.txt
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,6 @@ | ||
{"index":{"_id": "id-1"}} | ||
{ "value": 1, "timestamp": "2020-01-01"} | ||
{"index":{"_id": "id-2"}} | ||
{ "value": 2, "timestamp": "2020-01-02"} | ||
{"index":{"_id": "id-3"}} | ||
{ "value": 3, "timestamp": "2020-01-03"} |
4 changes: 0 additions & 4 deletions
4
cypress/fixtures/plugins/anomaly-detection-dashboards-plugin/search_index_response.json
This file was deleted.
Oops, something went wrong.
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
6 changes: 6 additions & 0 deletions
6
cypress/fixtures/plugins/anomaly-detection-dashboards-plugin/single_index_response.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,6 @@ | ||
{ | ||
"ok": true, | ||
"response": { | ||
"indices": [{ "health": "green", "index": "test-index" }] | ||
} | ||
} |
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
113 changes: 0 additions & 113 deletions
113
.../integration/plugins/anomaly-detection-dashboards-plugin/ad_dashboard_sanity_test_spec.js
This file was deleted.
Oops, something went wrong.
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.