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

[Test Automation] Exclude tests which depend on copilotManagerRole when running for PROD env #4527

Open
maxceem opened this issue Nov 24, 2021 · 1 comment

Comments

@maxceem
Copy link
Collaborator

maxceem commented Nov 24, 2021

Working branch: feature/test-automation-envs.

We are going to run smoke tests against PROD and DEV environments as implemented in #4526.

But for PROD we cannot provide credentials for copilotManagerRole user because it is a too powerful user.

We have to update smoke tests, so the cases which require copilotManagerRole would be skipped and would not run if we run tests against PROD env. But they would still run for other environments. To identify PROD env we would set env=prod inside connect-automation-config-prod.json file.

For local testing of this workflow you may to the next steps:

  • copy connect-automation-config-dev.json into connect-automation-config-prod.json and inside this file:
    • set "env": "prod"
    • remove config for copilotManagerRole
  • run npm run test:prod

All the smoke tests should work good, and only tests which depend on copilotManagerRole should be skipped. Other test should still run.

@nursoltan-s
Copy link
Contributor

@maxceem
Hi, Can you please take a look at this PR:
#4528

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

No branches or pull requests

2 participants