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.
1 parent e86f5c0 commit 1b371d0Copy full SHA for 1b371d0
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,12 @@ 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
+}
216
0 commit comments