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 integration test framework. #10

Merged
merged 5 commits into from
Dec 12, 2019
Merged

Add integration test framework. #10

merged 5 commits into from
Dec 12, 2019

Conversation

enisoc
Copy link
Contributor

@enisoc enisoc commented Dec 11, 2019

This is just a framework, which is mostly copied from the one I wrote for Metacontroller. I'll fill in the skeleton test in a separate PR. For now, it just tests that we can bring up the operator and its dependencies.

@enisoc enisoc marked this pull request as ready for review December 11, 2019 18:14
Copy link
Contributor

@PrismaPhonic PrismaPhonic left a comment

Choose a reason for hiding this comment

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

Looks pretty good to me - approving. See my one nit.

// We use the fork path primarily to decide which controllers to run in this
// manager process. Not all controllers run in the root process, for example.
switch forkPath {
case "":
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make this a dedicated type? I'm not a huge fan of comparing against an empty string. It doesn't communicate much to a reader.

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 isn't new code; I'm just moving things around to make them easier to test. If you have an idea to make this better, can you send a separate PR?

@enisoc enisoc merged commit 87a6e53 into master Dec 12, 2019
@enisoc enisoc deleted the integration-test branch December 12, 2019 03:43
PrismaPhonic added a commit that referenced this pull request Dec 17, 2019
… it doesn't get committed accidentally

Added ExtraVitessFlags field where required so we can pass down to vtctld, vtgate and vttablet

Auto-generate after make generate

Merge ExtraVitessFlags from root into ExtraFlags so we don't have to add an extra field to Specs

Make sure we bring in ExtraVitessFlags from vt here so child components can merge it into their ExtraFlags

Added ExtraVitessFlags where necessary and plumbed through.

Merging ExtraVitessFlags into ExtraFlags to match newly established pattern.

Added logic to bring in ExtraFlags, and merge ExtraVitessFlags from parent higher up

Auto-generated.

Add automated unit test job. (#6)

Signed-off-by: Anthony Yeh <[email protected]>

Add a Dockerfile for building release images. (#8)

We can't change the default Dockerfile because operator-sdk expects it
to behave a certain way. Instead, we'll build releases from this new
Dockerfile.release.

Signed-off-by: Anthony Yeh <[email protected]>

Point deploy to Docker Hub. (#9)

This is where we'll be publishing images.

Signed-off-by: Anthony Yeh <[email protected]>

Add integration test framework. (#10)

* Move logic from cmd/manager to a package for easier testing.

Signed-off-by: Anthony Yeh <[email protected]>

* Add integration test framework.

Signed-off-by: Anthony Yeh <[email protected]>

* Add integration-test workflow.

Signed-off-by: Anthony Yeh <[email protected]>

* integration/framework: Wait for CRDs to be ready.

Signed-off-by: Anthony Yeh <[email protected]>

* Switch to controller-runtime client.

Signed-off-by: Anthony Yeh <[email protected]>

Add support for pod annotations (#7)

* Add support for pod annotations

Signed-off-by: avaidyanatha <[email protected]>

* Implement annotations for deployment based pods

Signed-off-by: avaidyanatha <[email protected]>

* Implement annotations for vtgate

Signed-off-by: avaidyanatha <[email protected]>

* Add hashing for vttablet deployments and fix bugs

Signed-off-by: avaidyanatha <[email protected]>

* Update hash function for map[string]string

Signed-off-by: avaidyanatha <[email protected]>

* Update hashing function

Signed-off-by: avaidyanatha <[email protected]>

* Clobber input map for vtgate deployment

Signed-off-by: avaidyanatha <[email protected]>

* Address review comments

Signed-off-by: avaidyanatha <[email protected]>

* Add stringmaps package and autogen files

Signed-off-by: avaidyanatha <[email protected]>

* Address review comments

Signed-off-by: avaidyanatha <[email protected]>

Replace deprecated vttablet and vtbackup charset flags (#11)

Signed-off-by: Jacques Grove <[email protected]>

Rearrange README order and note about the vtctl reference guide (#12)

Signed-off-by: avaidyanatha <[email protected]>

re-ran make generate

Signed-off-by: Peter Farr <[email protected]>
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