promote match conditions e2e tests to conformance

This commit is contained in:
Igor Velichkovich
2024-02-28 12:13:04 -06:00
parent 055b51728c
commit dde48918dd
2 changed files with 55 additions and 5 deletions

View File

@@ -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",