Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Run Service Catalog tests in CI #413

Merged
merged 3 commits into from
Feb 5, 2019
Merged

Run Service Catalog tests in CI #413

merged 3 commits into from
Feb 5, 2019

Conversation

ash2k
Copy link
Contributor

@ash2k ash2k commented Feb 3, 2019

Fixes #410.

@ash2k ash2k self-assigned this Feb 3, 2019
@ash2k ash2k requested a review from a team February 3, 2019 02:40
before_install:
# download things concurrently
- |
$(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Download all the things concurrently

.travis.yml Outdated
install:
- make setup-ci

script:
- make update-bazel
- make verify
- make test-ci
- go get sigs.k8s.io/kind
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This now runs after unit tests and verification - they are most common source of failures and also run reasonably fast.

- make docker
- make check
- |
kubectl create -f it/sc/ups-clusterservicebroker.yaml
sleep 5
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Give Service Catalog a few seconds to list classes from broker.

Copy link
Contributor

Choose a reason for hiding this comment

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

add a polling loop like we have for cluster startup in setup_local_cluster

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is good enough, it should take 1 second to list this broker.

@@ -255,6 +256,12 @@ func SetupApp(t *testing.T, bundle *smith_v1.Bundle, serviceCatalog, createBundl
cli := smithClient.SmithV1().Bundles(cfg.Namespace)
b, err := cli.Get(bundle.Name, meta_v1.GetOptions{})
if err == nil {
if t.Failed() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If an integration test fails, it's useful to see the current state of the bundle.

rm -f install.sh
chmod +x install_bazel.sh
./install_bazel.sh --user
rm -f install_bazel.sh
Copy link

Choose a reason for hiding this comment

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

For all of these commands, do you need to chain them with &?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it works without them

@ash2k ash2k merged commit 25ca425 into master Feb 5, 2019
@ash2k ash2k deleted the service-catalog-ci branch February 5, 2019 05:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants