Skip to content

Add basic E2E tests of Zones and Instances interfaces #140

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

Closed
wants to merge 11 commits into from

Conversation

prydie
Copy link
Contributor

@prydie prydie commented Mar 2, 2018

NOTE: #115 should be reviewed and merged prior to reviewing this PR (for ease).

This PR adds basic "happy path" coverage of the cloudprovider.Zones and cloudprovider.Instances interfaces.

The tests aren't really "end-to-end" as they test via the interfaces, however, I felt keeping them in the same suite was the easiest route. Happy to split out if that would be preferable.

I have tried to maintain some level of provider agnosticism as I'm not clear on the cloud provider working group's testing strategy.

I have also tried to avoid any coupling to the old OCI SDK as once we have sufficient testing in place we will be migrating to the new SDK.

❯ ginkgo -v -progress test/e2e  -- --kubeconfig=$HOME/.kube/config --cloud-config="$(pwd)/cloud-provider.yaml"
Running Suite: CCM E2E suite
============================
Random Seed: 1520001611
Will run 9 of 9 specs

<snip>

Ran 9 of 9 Specs in 1195.239 seconds
SUCCESS! -- 9 Passed | 0 Failed | 0 Pending | 0 Skipped PASS

Ginkgo ran 1 suite in 20m4.788510961s
Test Suite Passed

Basic test using modified subset of ServiceTestJig from core's e2e test
suite.
Implements a stripped down version of the Service mutability test from
the Kubernetes core E2E test suite.
Although OCI LBaaS is not a pass-through load balancer (and thus does
not support ESIPP) this ports the tests covering support for node-local
vs cluster-wide routing (i.e. the avoidance of a second hop in the
node-local case at the risk of potentially imbalanced traffic spreading.
Add support for testing the cloudprovider.Interface directly and
implement tests for the cloudprovider.Zones interface.
Adds a new VCN OCID config parameter (with a fall back to loading from
LB subnet1) and filters VNICs by VCN when looking up instances by node
name.
@prydie prydie requested a review from jhorwit2 March 2, 2018 15:11
@prydie prydie closed this Mar 2, 2018
jbornemann pushed a commit that referenced this pull request Nov 26, 2018
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.

1 participant