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

tests for eda roles #2261

Merged
merged 1 commit into from May 13, 2024
Merged

tests for eda roles #2261

merged 1 commit into from May 13, 2024

Conversation

appuk
Copy link
Member

@appuk appuk commented May 8, 2024

https://issues.redhat.com/browse/AAP-21630

  • unskip other role tests
  • add tests for custom roles

@appuk appuk requested a review from vidyanambiar May 8, 2024 04:22
@github-actions github-actions bot added EDA Label to indicate changes relevant to EDA E2E End-to-end testing labels May 8, 2024
@appuk
Copy link
Member Author

appuk commented May 8, 2024

@akus062381 @vishsanghishetty @vidyanambiar I didn't create custom command for creating/ deleting the custom roles as it is only going to be used in 3 tests. let me know if you still want me to write a custom command for it

@appuk
Copy link
Member Author

appuk commented May 8, 2024

@vidyanambiar not sure why lint is failing, can you help me here? Thanks!!

@vidyanambiar
Copy link
Member

vidyanambiar commented May 8, 2024

@appuk Thanks for adding these tests!

The linter errors are caused by references to old role interfaces EdaRole and RoleDetail in the cypress commands/tests. If you replace these references with the interface EdaRbacRole, the errors should go away.

@appuk appuk force-pushed the eda-custom-role branch 2 times, most recently from 247646c to 04fd71f Compare May 8, 2024 16:15
Copy link
Contributor

@vishsanghishetty vishsanghishetty left a comment

Choose a reason for hiding this comment

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

nice work!

cypress/e2e/eda/Roles/custom-roles-crud.cy.ts Outdated Show resolved Hide resolved
cypress/e2e/eda/Roles/eda-role-details.cy.ts Outdated Show resolved Hide resolved
Copy link
Member

@akus062381 akus062381 left a comment

Choose a reason for hiding this comment

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

Looking good! good work

@ansible ansible deleted a comment from akus062381 May 13, 2024
@appuk appuk merged commit 711c6d2 into main May 13, 2024
17 checks passed
@appuk appuk deleted the eda-custom-role branch May 13, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E End-to-end testing EDA Label to indicate changes relevant to EDA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants