-
Notifications
You must be signed in to change notification settings - Fork 114
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 a sanity check test suite #133
Conversation
test/validation/tests/validation.go
Outdated
|
||
isClusterReady, err := cluster.IsClusterStable(clients) | ||
Expect(err).ToNot(HaveOccurred()) | ||
Expect(isClusterReady).To(BeFalse(), "Cluster is not stable") |
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.
We shall expect isClusterReady
to be true here, right?
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.
Oh dang, good catch! It's a leftover from me validating the script. Will change
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.
Done
hack/deploy-wait.sh
Outdated
echo "Timed out waiting for features to be ready" | ||
oc get nodes | ||
exit 1 | ||
fi |
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.
nit: newline needed
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.
Done
This adds a "validation" test suite that perform very basic tests. It checks that all the crds are deployed, and that the pods are running correctly. This serves two purpouses: - having a toggle to understand when a deployment finished (implemented by the make deploy-wait rule) - having a set of tests able to prevent DOA releases, verifying that the operator deploys correctly (even without needing a baremetal cluster) Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
This adds a "validation" test suite that perform very basic tests. It checks that all the crds are deployed, and that the pods are running correctly.
This serves two purposes: