-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Integration tests #171
Integration tests #171
Conversation
Pull Request Test Coverage Report for Build 947
💛 - Coveralls |
This is WIP and just to show the approach.
0959b01
to
d5a5cc7
Compare
Started to add deployment test to test that we can deploy to kubernetes. This isn't working at present. Also, had to comment out the kubectl test due to a glog issue with flags.
3f4996f
to
0085e76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes and additions are looking good. It would be good if we could get the kubeconfig test also working (i ran out of time before holiday to look at the glog issues).
) | ||
|
||
func TestCreateIntegration(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "Integration - Create Suite") | ||
} | ||
|
||
type tInterface interface { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@@ -17,9 +17,18 @@ test: | |||
@go test -v -covermode=count -coverprofile=coverage.out ./pkg/... ./cmd/... | |||
@test -z $(COVERALLS_TOKEN) || goveralls -coverprofile=coverage.out -service=circle-ci | |||
|
|||
.PHONY: integration-test-dev | |||
integration-test-dev: build |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
args := []string{"create", "cluster", "-n", clusterName, "-t", "t2.medium", "-N", "1", "-r", eksRegion, "--kubeconfig", pathToEksCtl} | ||
fmt.Printf("Using kubeconfig: %s\n", kubeconfigPath) | ||
|
||
if clusterName == "" { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Expect(err).ShouldNot(HaveOccurred()) | ||
//TODO: compare response??? | ||
} | ||
// Expect(err).ShouldNot(HaveOccurred()) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This works now, I just need to make another PR against kube-test-harness to fix |
0085e76
to
60ab856
Compare
60ab856
to
465c566
Compare
465c566
to
d2673f9
Compare
I've fixed dlespiau/kube-test-harness#21 and dlespiau/kube-test-harness#23, this is ready to go once my manual test succeeds. |
Expect(session).To(HaveCfnStack(fmt.Sprintf("EKS-%s-DefaultNodeGroup", clusterName))) | ||
}) | ||
|
||
It("should have created a valid kubectl config file", func() { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
CSI image version and deployment manifests updates
Description
This is WIP progress for the integration tests. For #151
Checklist
make build
)make test
)