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

Document test process for operator #24

Closed
Zlopez opened this issue Apr 14, 2020 · 1 comment · Fixed by #68
Closed

Document test process for operator #24

Zlopez opened this issue Apr 14, 2020 · 1 comment · Fixed by #68
Assignees
Labels
documentation Improvements or additions to documentation Estimation - 3

Comments

@Zlopez
Copy link
Contributor

Zlopez commented Apr 14, 2020

Document how to test operator using molecule and how to debug the tests.

Acceptance criteria

  • Add devel environment setup to documentation
  • Add testing guide to documentation
  • Add debug info to documentation
  • Add notes about possible debug issues (docker volume size)

Definition of Done

  • Acceptance criteria are met
  • New chapter in documentation - developers guide
@Zlopez Zlopez added the documentation Improvements or additions to documentation label Apr 14, 2020
@Zlopez Zlopez added this to To do in CentOS Stream update (Sustaining Team) via automation Apr 14, 2020
@Zlopez
Copy link
Contributor Author

Zlopez commented Apr 16, 2020

This is the debug process I'm using when testing the CRD for koji-builder.

  • Run molecule converge -s test-local
  • docker ps and look for kind-test-local
  • docker exec -it <container_id> bash
  • kubectl get namespace and look for the correct namespace
  • Switch to correct namespace kubectl config set-context --current --namespace=<namespace>
  • Get logs of the ansible kubectl logs <pod> ansible

This will be added to the documentation once somebody start to work on this issue.

@Zlopez Zlopez moved this from To do to Ready in CentOS Stream update (Sustaining Team) May 11, 2020
@Zlopez Zlopez moved this from Ready to In progress in CentOS Stream update (Sustaining Team) May 13, 2020
@Zlopez Zlopez self-assigned this May 13, 2020
@Zlopez Zlopez moved this from In progress to Review in progress in CentOS Stream update (Sustaining Team) May 14, 2020
CentOS Stream update (Sustaining Team) automation moved this from Review in progress to Done May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Estimation - 3
Development

Successfully merging a pull request may close this issue.

2 participants