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

Managing Secrets Cypress test #8863

Merged

Conversation

kkorchak
Copy link
Collaborator

Test steps:

  1. Navigate to the manage ingestion page → Secrets
  2. Create a new secret
  3. Create an ingestion source using a secret
  4. Remove a secret
  5. Verify secret is not present during ingestion source creation for password dropdown
  6. Verify secret can be added during ingestion source creation and used successfully.
  7. Remove secret and ingestion source

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the smoke_test Contains changes related to smoke tests label Sep 19, 2023
cy.waitTextVisible("Give this ingestion source a name.");
cy.get('[data-testid="source-name-input"]').type(ingestion_source_name);
cy.get("button").contains("Save").click();
cy.waitTextVisible("Successfully created ingestion source!").wait(5000)//prevent issue with missing form data
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's the issue with missing form data?

cy.get("button").contains("Save").click();
cy.waitTextVisible("Successfully created ingestion source!").wait(5000)//prevent issue with missing form data
cy.waitTextVisible(ingestion_source_name);
cy.get("button").contains("Pending...").should("be.visible");
Copy link
Collaborator

Choose a reason for hiding this comment

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

anything we can reuse here by extracting into a function?

we appear to create most of the recipe twice in same way. i leave up to you!

@jjoyce0510
Copy link
Collaborator

Failing with a known flaky test.

@jjoyce0510 jjoyce0510 merged commit bf92092 into datahub-project:master Sep 20, 2023
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smoke_test Contains changes related to smoke tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants