Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding ad remote index tests #1755

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

amitgalitz
Copy link
Member

Description

Adding remote detector integration tests for anomaly detection plugin

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@amitgalitz
Copy link
Member Author

One of the tests is failing with failed because it uses a deprecated version of actions/cache: v1. Please update your workflow to use v3/v4 of actions/cache to avoid interruptions should I update the cache version being used in all these workflows or keep as is?

@kaituo
Copy link
Contributor

kaituo commented Mar 18, 2025

Looks good. Will approve once the actions/cache version issue gets answered.

Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
@kaituo
Copy link
Contributor

kaituo commented Mar 19, 2025

remote cluster tests failed:

Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ plugins/anomaly-detection-dashboard 00:28 1 1 - - - │
│ s-plugin/create_detector_spec.js │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✖ plugins/anomaly-detection-dashboard 02:28 2 - 2 - - │
│ s-plugin/create_remote_detector_spe │
│ c.js │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ plugins/anomaly-detection-dashboard 00:34 8 8 - - - │
│ s-plugin/dashboard_spec.js │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ plugins/anomaly-detection-dashboard 00:28 5 5 - - - │
│ s-plugin/detector_configuration_spe │
│ c.js

@amitgalitz
Copy link
Member Author

remote cluster tests failed:

Spec Tests Passing Failing Pending Skipped ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ✔ plugins/anomaly-detection-dashboard 00:28 1 1 - - - │ │ s-plugin/create_detector_spec.js │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✖ plugins/anomaly-detection-dashboard 02:28 2 - 2 - - │ │ s-plugin/create_remote_detector_spe │ │ c.js │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✔ plugins/anomaly-detection-dashboard 00:34 8 8 - - - │ │ s-plugin/dashboard_spec.js │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✔ plugins/anomaly-detection-dashboard 00:28 5 5 - - - │ │ s-plugin/detector_configuration_spe │ │ c.js

Yup I think its cause the remote clusters running on functional test repo aren't named followerCluster, changing it to be dynamic

Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
@kaituo
Copy link
Contributor

kaituo commented Mar 20, 2025

The remote tests still fail:

Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ plugins/anomaly-detection-dashboard 00:27 1 1 - - - │
│ s-plugin/create_detector_spec.js │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✖ plugins/anomaly-detection-dashboard 02:28 2 - 2 - - │
│ s-plugin/create_remote_detector_spe │
│ c.js │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ plugins/anomaly-detection-dashboard 00:34 8 8 - - - │
│ s-plugin/dashboard_spec.js │
├──────────────────────────────────────────────────────────────────────

Signed-off-by: Amit Galitzky <amgalitz@amazon.com>

cy.wait(500);

cy.getElementByTestId('indicesFilter').type('sample-ad-index');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use TEST_INDEX_NAME instead of sample-ad-index ? This applies to all occurrences.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants