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

Cypress Integ test for dynamic multi-tenancy features #609

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

abhivka7
Copy link
Contributor

@abhivka7 abhivka7 commented Apr 10, 2023

Description

Adding cypress tests for dynamic tenancy feature (opensearch-project/security-dashboards-plugin#1394)

Issues Resolved

Writing cypress tests for: opensearch-project/security-dashboards-plugin#1394

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.

Video recording for multi_tenancy Test:
https://user-images.githubusercontent.com/99718513/231845323-d896c479-26b3-460d-9f01-2462d92d668b.mp4

Video recording for default_tenant Test:

default_tenant.js.mp4

Copy link
Member

Choose a reason for hiding this comment

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

Why does this tests have so many wait statements??

Here is an example test that achieves something similar without wait statements: https://github.com/opensearch-project/opensearch-dashboards-functional-test/blob/main/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/basic.spec.js

also refer to to this guide on how to write effective functional tests: https://github.com/opensearch-project/opensearch-dashboards-functional-test/blob/main/docs/writing_tests.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Ashwin. I have updated my PR after following your suggestions.

@abhivka7 abhivka7 force-pushed the Dynamic_MultiTenancy branch 3 times, most recently from b0c4f10 to 2f3d2d5 Compare April 13, 2023 17:22
@abhivka7
Copy link
Contributor Author

abhivka7 commented Apr 13, 2023

Team I have run the tests against my PR for Dashboards Security Plugin (https://github.com/opensearch-project/security-dashboards-plugin/pull/1394/files).
Here are the tests results(Ubuntu): https://github.com/opensearch-project/security-dashboards-plugin/actions/runs/4690001741/jobs/8312499846

Can you guys please review and merge this PR?
Thanks.

@@ -87,6 +87,22 @@ declare namespace Cypress {
header: string,
): Chainable<S>;


Copy link
Member

Choose a reason for hiding this comment

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

The comment header here is wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Thanks @ashwin-pc for pointing this out.

Signed-off-by: Abhi Kalra <abhivka@amazon.com>
@ashwin-pc ashwin-pc merged commit 7ec51ed into opensearch-project:main Apr 13, 2023
@abhivka7
Copy link
Contributor Author

Thanks @ashwin-pc and @CCongWang for reviewing this PR.

opensearch-trigger-bot bot pushed a commit that referenced this pull request May 8, 2023
Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit 7ec51ed)
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 8, 2023
Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit 7ec51ed)
kavilla pushed a commit that referenced this pull request May 8, 2023
Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit 7ec51ed)

Co-authored-by: Abhi Kalra <99718513+abhivka7@users.noreply.github.com>
kavilla pushed a commit that referenced this pull request May 8, 2023
Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit 7ec51ed)

Co-authored-by: Abhi Kalra <99718513+abhivka7@users.noreply.github.com>
leanneeliatra pushed a commit to leanneeliatra/opensearch-dashboards-functional-test-fork that referenced this pull request Sep 15, 2023
…oject#609) (opensearch-project#659)

Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit 7ec51ed)

Co-authored-by: Abhi Kalra <99718513+abhivka7@users.noreply.github.com>
Signed-off-by: leanne.laceybyrne@eliatra.com <leanne.laceybyrne@eliatra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants