-
Notifications
You must be signed in to change notification settings - Fork 78
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
creating cowsay kuttl tests #284
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: kudo-controller-manager-0 | ||
namespace: kudo-system | ||
status: | ||
phase: Running | ||
|
||
# confirms that kudo is running | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: Instance | ||
metadata: | ||
labels: | ||
kudo.dev/operator: cowsay | ||
name: cowsay-instance | ||
namespace: default | ||
status: | ||
planStatus: | ||
deploy: | ||
name: deploy | ||
phases: | ||
- name: main | ||
status: COMPLETE | ||
steps: | ||
- name: genfiles | ||
status: COMPLETE | ||
- name: app | ||
status: COMPLETE | ||
status: COMPLETE |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: kubectl kudo install ../../operator |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
binaryData: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need to check the exact content of the config map. Its presence along with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep... totally makes sense... removed |
||
index.html: PGh0bWw+CjxoZWFkPgogIDx0aXRsZT5UaGUgY293IHNheXMgIkdvb2QgdGhpbmdzIGNvbWUgd2hlbiB5b3UuLi4iPC90aXRsZT4KICA8bW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Tsgcy5wYXJlbnROb2RlLmluc2VydEJlZm9yZShnYSwgcyk7CiAgfSkoKTsKCjwvc2NyaXB0PgoKPC9ib2R5Pgo8L2h0bWw+Cg== | ||
kind: ConfigMap | ||
metadata: | ||
annotations: | ||
kudo.dev/phase: main | ||
kudo.dev/plan: deploy | ||
kudo.dev/step: genfiles | ||
labels: | ||
heritage: kudo | ||
kudo.dev/instance: cowsay-instance | ||
kudo.dev/operator: cowsay | ||
name: cowsayinstance.deploy.main.genfiles.genwww.indexhtml | ||
namespace: default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it necessary to check this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also thought that this PR removed this assertion in favor of
kudo init ... --wait
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it makes the test more portal IMO... yes we should have a kudo init --wait. This fails fast if that wasn't done.. and I see these tests as something we may point users to... that may run them...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, we don't wait for KUDO this way for other operators tests today (because we already
kudo init --wait
) so I'd rather stay consistent right now and remove this. The inconsistency concern is IMO bigger than portability one.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @zen-dog here - This is testing something that should be ensured globally not in each test. If we have this here, it will be copied to other tests and we end up with having this step duplicated everywhere.
We had this in the kudo e2e tests as well, I was glad we could remove it there.