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

Add mix bonny.test to e2e test an operator #14

Open
coryodaniel opened this issue Dec 29, 2018 · 0 comments
Open

Add mix bonny.test to e2e test an operator #14

coryodaniel opened this issue Dec 29, 2018 · 0 comments

Comments

@coryodaniel
Copy link
Owner

coryodaniel commented Dec 29, 2018

Create a generator or mix task to deploy and verify the functionality of a CRD on a local cluster.

Thinking something along the lines of
mix bonny.test --user=[USER] --cluster=[CLUSTER] --namespace=[NAMESPACE] --keep-namespace

Steps

  • create namespace || bonny-${RAND}
  • mix bonny.gen.manifest -n [NAMESPACE] -o - | kubectl apply -f -
  • iex -S mix
  • mix bonny.gen.resource -o - | kubectl apply -f -
  • check /metrics for successful add/1
  • mix bonny.gen.resource --name=name-from-first-resource -o - | kubectl apply -f -
  • check /metrics for successful modify/1
  • kubectl delete crd-type/name-from-first-resource
  • check /metrics for successful delete/1
  • optionally destroy namespace

Dependencies

Need to consider how to handle multiple CRDs.

@coryodaniel coryodaniel changed the title Add a generator for an "integration" test suite Add mix bonny.test to e2e test an operator Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant