Skip to content

Commit 7b23e96

Browse files
author
Sarthak Agrawal
committed
remove top comment
1 parent d31f8d8 commit 7b23e96

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/cel/upstreamsettingspolicy_test.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
// Package cel contains CEL validation tests for NGINX Gateway Fabric CRDs.
2-
// This file contains comprehensive tests for UpstreamSettingsPolicy CEL validation rules.
3-
//
4-
// The tests validate the following CEL expressions defined in UpstreamSettingsPolicySpec.TargetRefs:
5-
//
6-
// 1. Kind validation: "self.all(t, t.kind=='Service')"
7-
// - Ensures all TargetRefs have Kind "Service"
8-
//
9-
// 2. Group validation: "self.exists(t, t.group==”) || self.exists(t, t.group=='core')"
10-
// - Ensures at least one TargetRef has group "" (empty) OR "core"
11-
// - Note: This rule allows mixed groups if at least one is valid
12-
//
13-
// 3. Name uniqueness: "self.all(p1, self.exists_one(p2, p1.name == p2.name))"
14-
// - Ensures all TargetRef names are unique within the policy
151
package cel
162

173
import (

0 commit comments

Comments
 (0)