Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yiqigao217/8284b4711266b661670b70571bb131dc to your computer and use it in GitHub Desktop.
Save yiqigao217/8284b4711266b661670b70571bb131dc to your computer and use it in GitHub Desktop.
If these tests fail due to the webhook not being ready, wait 30s and try again. Note that webhooks can take up to 30s to become ready
after HNC is first deployed in a cluster.
go clean -testcache
go test -v -timeout 0 ./test/e2e/...
=== RUN TestE2e
Running Suite: HNC Suite
========================
Random Seed: 1600809909
Will run 1 of 29 specs
SSSSSSSSSSSSSSSSSSSS
------------------------------
• Failure [46.595 seconds]
HNC should delete and create a new Rolebinding instead of updating it
/usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/test/e2e/rolebinding_test.go:8
Should delete and create a Rolebinding when HNC is undeployed - issue #798 [It]
/usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/test/e2e/rolebinding_test.go:25
Timed out after 30.192s.
Expected
<*errors.errorString | 0xc000096130>: {
s: "Error: exit status 1\nOutput: Error from server (Timeout): Timeout: request did not complete within requested timeout 30s\n",
}
to be nil
/usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/pkg/testutils/testutils.go:69
------------------------------
Running: [kubectl hns set parent -a]
Running: [kubectl annotate ns parent hnc.x-k8s.io/subnamespaceOf-]
Running: [kubectl delete ns parent]
Running: [kubectl hns set child -a]
Running: [kubectl annotate ns child hnc.x-k8s.io/subnamespaceOf-]
Running: [kubectl delete ns child]
Running: [kubectl create ns parent]
Output (failed): Error: exit status 1
Output: Error from server (Timeout): Timeout: request did not complete within requested timeout 30s
Running: [kubectl hns set parent -a]
Running: [kubectl annotate ns parent hnc.x-k8s.io/subnamespaceOf-]
Running: [kubectl delete ns parent]
Running: [kubectl hns set child -a]
Running: [kubectl annotate ns child hnc.x-k8s.io/subnamespaceOf-]
Running: [kubectl delete ns child]
Running: [kubectl apply -f /usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/manifests/hnc-manager.yaml]
Output (passed): namespace/hnc-system unchanged
customresourcedefinition.apiextensions.k8s.io/hierarchyconfigurations.hnc.x-k8s.io configured
customresourcedefinition.apiextensions.k8s.io/hncconfigurations.hnc.x-k8s.io configured
customresourcedefinition.apiextensions.k8s.io/subnamespaceanchors.hnc.x-k8s.io configured
role.rbac.authorization.k8s.io/hnc-leader-election-role unchanged
clusterrole.rbac.authorization.k8s.io/hnc-manager-role configured
clusterrole.rbac.authorization.k8s.io/hnc-proxy-role unchanged
rolebinding.rbac.authorization.k8s.io/hnc-leader-election-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/hnc-manager-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/hnc-proxy-rolebinding unchanged
secret/hnc-webhook-server-cert unchanged
service/hnc-controller-manager-metrics-service unchanged
service/hnc-webhook-service unchanged
deployment.apps/hnc-controller-manager unchanged
validatingwebhookconfiguration.admissionregistration.k8s.io/hnc-validating-webhook-configuration configured
SSSSSSSS
Summarizing 1 Failure:
[Fail] HNC should delete and create a new Rolebinding instead of updating it [It] Should delete and create a Rolebinding when HNC is undeployed - issue #798
/usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/pkg/testutils/testutils.go:69
Ran 1 of 29 Specs in 46.595 seconds
FAIL! -- 0 Passed | 1 Failed | 0 Pending | 28 Skipped
--- FAIL: TestE2e (46.60s)
FAIL
FAIL sigs.k8s.io/multi-tenancy/incubator/hnc/test/e2e 46.626s
FAIL
make: *** [Makefile:252: test-e2e] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment