Last active
March 17, 2021 14:03
-
-
Save yiqigao217/9394c2aadaa515e82184684a005187af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If tests fail due to no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1", | |
please remove the old kubebuilder and reinstall it - https://book.kubebuilder.io/quick-start.html#installation | |
go test ./api/... ./cmd/... ./internal/... -coverprofile cover.out | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/api/v1alpha2 [no test files] | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/cmd/kubectl [no test files] | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/cmd/manager [no test files] | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/config [no test files] | |
ok sigs.k8s.io/multi-tenancy/incubator/hnc/internal/forest 0.084s coverage: 27.6% of statements | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/foresttest [no test files] | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/kubectl [no test files] | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/metadata [no test files] | |
ok sigs.k8s.io/multi-tenancy/incubator/hnc/internal/object 0.044s coverage: 100.0% of statements | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/pkg/selectors [no test files] | |
Running Suite: Reconciler Suite | |
=============================== | |
Random Seed: 1615989016 | |
Will run 68 of 68 specs | |
STEP: bootstrapping test environment | |
2021-03-17T09:50:16.803-0400 DEBUG controller-runtime.test-env starting control plane {"api server flags": []} | |
2021-03-17T09:50:21.029-0400 DEBUG controller-runtime.test-env installing CRDs | |
2021-03-17T09:50:21.029-0400 DEBUG controller-runtime.test-env reading CRDs from path {"path": "../../manifests/envtest"} | |
2021-03-17T09:50:21.031-0400 DEBUG controller-runtime.test-env read CRDs from file {"file": "hnc.x-k8s.io_hierarchyconfigurations.yaml"} | |
2021-03-17T09:50:21.032-0400 DEBUG controller-runtime.test-env read CRDs from file {"file": "hnc.x-k8s.io_hncconfigurations.yaml"} | |
2021-03-17T09:50:21.033-0400 DEBUG controller-runtime.test-env read CRDs from file {"file": "hnc.x-k8s.io_subnamespaceanchors.yaml"} | |
2021-03-17T09:50:21.045-0400 DEBUG controller-runtime.test-env installing CRD {"crd": "hierarchyconfigurations.hnc.x-k8s.io"} | |
Failure [4.248 seconds] | |
[BeforeSuite] BeforeSuite | |
/usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/suite_test.go:69 | |
Unexpected error: | |
<*meta.NoKindMatchError | 0xc0006a5680>: { | |
GroupKind: { | |
Group: "apiextensions.k8s.io", | |
Kind: "CustomResourceDefinition", | |
}, | |
SearchedVersions: ["v1"], | |
} | |
no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1" | |
occurred | |
/usr/local/google/home/yiqigao/go/src/sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers/suite_test.go:83 | |
------------------------------ | |
Ran 68 of 0 Specs in 4.260 seconds | |
FAIL! -- 0 Passed | 68 Failed | 0 Pending | 0 Skipped | |
--- FAIL: TestAPIs (4.27s) | |
FAIL | |
coverage: 0.0% of statements | |
FAIL sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers 4.390s | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/stats [no test files] | |
ok sigs.k8s.io/multi-tenancy/incubator/hnc/internal/validators 0.115s coverage: 68.9% of statements | |
? sigs.k8s.io/multi-tenancy/incubator/hnc/internal/version [no test files] | |
FAIL | |
make: *** [Makefile:100: test] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment