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 a sanity check test suite #133

Merged
merged 1 commit into from
May 19, 2021

Conversation

fedepaol
Copy link
Collaborator

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:

  • 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)


isClusterReady, err := cluster.IsClusterStable(clients)
Expect(err).ToNot(HaveOccurred())
Expect(isClusterReady).To(BeFalse(), "Cluster is not stable")
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

echo "Timed out waiting for features to be ready"
oc get nodes
exit 1
fi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: newline needed

Copy link
Collaborator Author

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 <[email protected]>
@pliurh pliurh merged commit de7baa8 into k8snetworkplumbingwg:master May 19, 2021
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

Successfully merging this pull request may close these issues.

2 participants