-
Notifications
You must be signed in to change notification settings - Fork 382
Add namespaced e2e tests #2598
Add namespaced e2e tests #2598
Conversation
5210c5f
to
72fd45c
Compare
@@ -175,7 +175,7 @@ $(BINDIR)/%-gen: $$(shell find vendor/k8s.io/code-generator/cmd/$$*-gen vendor/k | |||
|
|||
.PHONY: $(BINDIR)/e2e.test | |||
$(BINDIR)/e2e.test: .init | |||
$(DOCKER_CMD) go test -c -o $@ $(SC_PKG)/test/e2e | |||
$(DOCKER_CMD) env GOOS=$(CLIENT_PLATFORM) GOARCH=$(ARCH) go test -c -o $@ $(SC_PKG)/test/e2e |
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.
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.
builds and runs for me on both windows and linux.
/lgtm
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.
Nice use of variadic for cluster vs namespaced. Just one nit from me on a typo. Glad to see the e2e enhanced to cover ns broker. Updated make target works fine for me on fedora.
test/util/util.go
Outdated
genericapirequest "k8s.io/apiserver/pkg/endpoints/request" | ||
utilfeature "k8s.io/apiserver/pkg/util/feature" | ||
) | ||
|
||
// WaitForBrokerCondition waits for the status of the named broker to contain | ||
// a condition whose type and status matches the supplied one. | ||
func WaitForBrokerCondition(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, condition v1beta1.ServiceBrokerCondition) error { | ||
// a condition whose type and status matches the supplied onei. Checks for a |
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.
nit: one vs onei
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.
fixed
- change build-e2e make target to compile on host os/arch - refactor test/util helper methods to work on both cluster/ns resources
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jboyd01 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
onei |
- change build-e2e make target to compile on host os/arch - refactor test/util helper methods to work on both cluster/ns resources
This PR is a
Fixes #2408
Merge Checklist:
breaking the chart release and existing clients who provide a
flag that will get an error when they try to update