We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a9feed + c0b4912 commit 165da9aCopy full SHA for 165da9a
staging/src/k8s.io/apiserver/pkg/cel/escaping_test.go
@@ -19,6 +19,7 @@ package cel
19
import (
20
"fmt"
21
"regexp"
22
+ "strings"
23
"testing"
24
25
fuzz "github.com/google/gofuzz"
@@ -204,3 +205,11 @@ func TestCanSkipRegex(t *testing.T) {
204
205
})
206
}
207
208
+
209
+func TestCELReservedSymbolsNoDoubleUnderscore(t *testing.T) {
210
+ for symbol := range celReservedSymbols {
211
+ if strings.Contains(symbol, "__") {
212
+ t.Errorf("CEL reserved symbol '%s' contains '__', which is not allowed as it would interfere with escaping", symbol)
213
+ }
214
215
+}
0 commit comments