Skip to content

Add CEL tests for SnippetsFilter CRD #3671

@shaun-nx

Description

@shaun-nx

Overview

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

UACs

  • Add test for the context CEL validation

context validation:

x-kubernetes-validations:
- message: Only one snippet allowed per context
  rule: self.all(s1, self.exists_one(s2, s1.context == s2.context))

Metadata

Metadata

Assignees

Labels

refinedRequirements are refined and the issue is ready to be implemented.testsPull requests that update tests

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions