Skip to content

Add CEL validation tests for AuthenticationFilter CRD #4311

@shaun-nx

Description

@shaun-nx

Overview

As a user of NGF, I would like to add CEL tests for the AuthenticationFilter CR so that I can be confident that the CEL validation works as I expect

Acceptance

  • Add new test file to tests/cel directory for the AuthenticationFilter

Validations to test

  1. for type=Basic, spec.basic must be set

Example yaml that will fail validation:

apiVersion: gateway.nginx.org/v1alpha1
kind: AuthenticationFilter
metadata:
  name: basic-auth
spec:
  type: Basic
  # spec.basic is missing

Metadata

Metadata

Assignees

Labels

refinedRequirements are refined and the issue is ready to be implemented.size/mediumEstimated to be completed within a weektestsPull requests that update tests

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions