mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
promote match conditions e2e tests to conformance
This commit is contained in:
@@ -712,7 +712,7 @@ var _ = SIGDescribe("AdmissionWebhook [Privileged:ClusterAdmin]", func() {
|
||||
properly stored in the api-server. Update the validating webhook configuration and retrieve it; the
|
||||
retrieved object must contain the newly update matchConditions fields.
|
||||
*/
|
||||
ginkgo.It("should be able to create and update validating webhook configurations with match conditions", func(ctx context.Context) {
|
||||
framework.ConformanceIt("should be able to create and update validating webhook configurations with match conditions", func(ctx context.Context) {
|
||||
initalMatchConditions := []admissionregistrationv1.MatchCondition{
|
||||
{
|
||||
Name: "expression-1",
|
||||
@@ -763,7 +763,7 @@ var _ = SIGDescribe("AdmissionWebhook [Privileged:ClusterAdmin]", func() {
|
||||
properly stored in the api-server. Update the mutating webhook configuration and retrieve it; the
|
||||
retrieved object must contain the newly update matchConditions fields.
|
||||
*/
|
||||
ginkgo.It("should be able to create and update mutating webhook configurations with match conditions", func(ctx context.Context) {
|
||||
framework.ConformanceIt("should be able to create and update mutating webhook configurations with match conditions", func(ctx context.Context) {
|
||||
initalMatchConditions := []admissionregistrationv1.MatchCondition{
|
||||
{
|
||||
Name: "expression-1",
|
||||
@@ -814,7 +814,7 @@ var _ = SIGDescribe("AdmissionWebhook [Privileged:ClusterAdmin]", func() {
|
||||
matchConditions field. The api-server server should reject the create request with a "compilation
|
||||
failed" error message.
|
||||
*/
|
||||
ginkgo.It("should reject validating webhook configurations with invalid match conditions", func(ctx context.Context) {
|
||||
framework.ConformanceIt("should reject validating webhook configurations with invalid match conditions", func(ctx context.Context) {
|
||||
initalMatchConditions := []admissionregistrationv1.MatchCondition{
|
||||
{
|
||||
Name: "invalid-expression-1",
|
||||
@@ -838,7 +838,7 @@ var _ = SIGDescribe("AdmissionWebhook [Privileged:ClusterAdmin]", func() {
|
||||
matchConditions field. The api-server server should reject the create request with a "compilation
|
||||
failed" error message.
|
||||
*/
|
||||
ginkgo.It("should reject mutating webhook configurations with invalid match conditions", func(ctx context.Context) {
|
||||
framework.ConformanceIt("should reject mutating webhook configurations with invalid match conditions", func(ctx context.Context) {
|
||||
initalMatchConditions := []admissionregistrationv1.MatchCondition{
|
||||
{
|
||||
Name: "invalid-expression-1",
|
||||
@@ -863,7 +863,7 @@ var _ = SIGDescribe("AdmissionWebhook [Privileged:ClusterAdmin]", func() {
|
||||
a configMap with the name 'skip-me' and verify that it's mutated. Create a
|
||||
configMap with a different name than 'skip-me' and verify that it's mustated.
|
||||
*/
|
||||
ginkgo.It("should mutate everything except 'skip-me' configmaps", func(ctx context.Context) {
|
||||
framework.ConformanceIt("should mutate everything except 'skip-me' configmaps", func(ctx context.Context) {
|
||||
skipMeMatchConditions := []admissionregistrationv1.MatchCondition{
|
||||
{
|
||||
Name: "skip-me",
|
||||
|
||||
Reference in New Issue
Block a user