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

[non-admin] Allow test cases to run with non-admin user in specific namespaces #97

Open
pranavgaikwad opened this issue Apr 23, 2020 · 1 comment
Assignees

Comments

@pranavgaikwad
Copy link
Contributor

pranavgaikwad commented Apr 23, 2020

I do not have much info to share at this point. This is just a reminder issue.

We need to think about adding test cases for non-admin flows. I will share details here soon.

@pranavgaikwad pranavgaikwad changed the title [non-admin] Allow test cases to run with specific namespaces [non-admin] Allow test cases to run with non-admin user in specific namespaces Jun 4, 2020
@alaypatel07
Copy link

Base test case to add after migtools/mig-agnosticd#123:

  1. login as user1, run oc new-project user1-workload on source cluster
  2. run oc whoami -t, grab the token value
  3. login as admin
  4. Install operator and controller
  5. grant user1 "use" verb on mig-controllers, https://gist.github.com/alaypatel07/9e06cbb074eb7fcd2157aa65478761f5
  6. install operators via OLM on operator-hub. Need to make sure non-admin tags are installed
  7. login as user1 on destination
  8. create secret source-user1-token-secret, with token value from step 2.
  9. run oc whoami -t, create secret destination-user1-token-secret with the token value
  10. As admin create MigClusters, source and destination
  11. As user1 create MigTokens with source-user1-token-secret and destination-user1-token-secret
  12. wait for migtokens to get ready
  13. create MigPlan with user1-workload namespace, wait for it to get ready
  14. wait for MigPlan to go ready
  15. create MigMigration
  16. wait for migmigration to succeed

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