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

Support installing a CRD in a test step and using it in a later test step. #595

Merged
merged 2 commits into from
Jul 19, 2019

Conversation

jbarrick-mesosphere
Copy link
Member

What type of PR is this?

/kind enhancement

What this PR does / why we need it:

This allows a user to include CRDs in test steps and use them in later test steps. Prior to this, all CRDs had to be included in the crdDir, which could be messy depending on the test case (e.g., I wanted to write a test for the harness for a CRD that is explicitly not included in the runtime scheme and don't want to pollute config/crds).

Also re-enabled the test suite in pkg/test/test_data/ to run the harness integration tests as we were not running them before and I needed to write a test.

Which issue(s) this PR fixes:

N/A but unblocks a test for a feature

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@jbarrick-mesosphere
Copy link
Member Author

This is a pretty large change to the harness, so I'm going to run it in a loop and make sure it doesn't introduce any issues before merging.

@jbarrick-mesosphere jbarrick-mesosphere merged commit d16a318 into kudobuilder:master Jul 19, 2019
@jbarrick-mesosphere jbarrick-mesosphere deleted the crd-step branch July 19, 2019 01:07
jbarrick-mesosphere added a commit that referenced this pull request Jul 19, 2019
jbarrick-mesosphere added a commit that referenced this pull request Jul 19, 2019
jbarrick-mesosphere added a commit to jbarrick-mesosphere/kudo that referenced this pull request Jul 19, 2019
…in a later test step. (kudobuilder#595)""

This reverts commit 7528d85d3720634ee90e862714bc168adbdfa07f.
jbarrick-mesosphere added a commit that referenced this pull request Jul 23, 2019
…in a later test step."" (#610)

* Revert "Revert "Support installing a CRD in a test step and using it in a later test step. (#595)""

This reverts commit 7528d85d3720634ee90e862714bc168adbdfa07f.

* Fix panic when schemes are modified after clients are in use.

* add storedVersions to status check in assert

* fix CRD race

* Make testutils.Scheme threadsafe using sync.Once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants