mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
make type checking tests non-conformance.
This commit is contained in:
parent
dc2974c646
commit
2c2d424b01
@ -133,7 +133,7 @@ var _ = SIGDescribe("ValidatingAdmissionPolicy [Privileged:ClusterAdmin]", func(
|
|||||||
Description:
|
Description:
|
||||||
The ValidatingAdmissionPolicy should type check the expressions defined inside policy.
|
The ValidatingAdmissionPolicy should type check the expressions defined inside policy.
|
||||||
*/
|
*/
|
||||||
framework.ConformanceIt("should type check validation expressions", func(ctx context.Context) {
|
framework.It("should type check validation expressions", func(ctx context.Context) {
|
||||||
var policy *admissionregistrationv1.ValidatingAdmissionPolicy
|
var policy *admissionregistrationv1.ValidatingAdmissionPolicy
|
||||||
ginkgo.By("creating the policy with correct types", func() {
|
ginkgo.By("creating the policy with correct types", func() {
|
||||||
policy = newValidatingAdmissionPolicyBuilder(f.UniqueName+".correct-policy.example.com").
|
policy = newValidatingAdmissionPolicyBuilder(f.UniqueName+".correct-policy.example.com").
|
||||||
@ -283,7 +283,7 @@ var _ = SIGDescribe("ValidatingAdmissionPolicy [Privileged:ClusterAdmin]", func(
|
|||||||
Description:
|
Description:
|
||||||
The ValidatingAdmissionPolicy should type check a CRD.
|
The ValidatingAdmissionPolicy should type check a CRD.
|
||||||
*/
|
*/
|
||||||
framework.ConformanceIt("should type check a CRD", func(ctx context.Context) {
|
framework.It("should type check a CRD", func(ctx context.Context) {
|
||||||
crd := crontabExampleCRD()
|
crd := crontabExampleCRD()
|
||||||
crd.Spec.Group = "stable." + f.UniqueName
|
crd.Spec.Group = "stable." + f.UniqueName
|
||||||
crd.Name = crd.Spec.Names.Plural + "." + crd.Spec.Group
|
crd.Name = crd.Spec.Names.Plural + "." + crd.Spec.Group
|
||||||
|
Loading…
Reference in New Issue
Block a user