Skip to content

Commit 17abc04

Browse files
committed
Disable TestContainerFieldNameFilters
Signed-off-by: Anastasios Papagiannis <anastasios.papagiannis@isovalent.com>
1 parent 33be313 commit 17abc04

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

tests/e2e/tests/policyfilter/policyfilter_test.go

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -443,53 +443,53 @@ func testContainerFieldFilters(t *testing.T, checker *checker.RPCChecker, policy
443443
runner.TestInParallel(t, runWorkload, runEventChecker)
444444
}
445445

446-
const containerSelectorNamePolicy = `
447-
apiVersion: cilium.io/v1alpha1
448-
kind: TracingPolicyNamespaced
449-
metadata:
450-
name: "ubuntu-container-syscalls"
451-
spec:
452-
containerSelector:
453-
matchExpressions:
454-
- key: name
455-
operator: In
456-
values:
457-
- sidecar
458-
tracepoints:
459-
- subsystem: "raw_syscalls"
460-
event: "sys_exit"
461-
args:
462-
- index: 4
463-
type: "int64"
464-
`
465-
466-
const ubuntuPodL3 = `
467-
kind: Deployment
468-
apiVersion: apps/v1
469-
metadata:
470-
name: ubuntu-l3
471-
spec:
472-
replicas: 1
473-
selector:
474-
matchLabels:
475-
app: "ubuntu-l3"
476-
template:
477-
metadata:
478-
labels:
479-
app: "ubuntu-l3"
480-
spec:
481-
containers:
482-
- name: main
483-
image: ubuntu:20.04
484-
imagePullPolicy: IfNotPresent
485-
command: ["bash"]
486-
args: ["-c", "while sleep 1; do cat /etc/hostname; done"]
487-
- name: sidecar
488-
image: ubuntu:20.04
489-
imagePullPolicy: IfNotPresent
490-
command: ["bash"]
491-
args: ["-c", "while sleep 1; do cat /etc/hostname; done"]
492-
`
446+
// const containerSelectorNamePolicy = `
447+
// apiVersion: cilium.io/v1alpha1
448+
// kind: TracingPolicyNamespaced
449+
// metadata:
450+
// name: "ubuntu-container-syscalls"
451+
// spec:
452+
// containerSelector:
453+
// matchExpressions:
454+
// - key: name
455+
// operator: In
456+
// values:
457+
// - sidecar
458+
// tracepoints:
459+
// - subsystem: "raw_syscalls"
460+
// event: "sys_exit"
461+
// args:
462+
// - index: 4
463+
// type: "int64"
464+
// `
465+
466+
// const ubuntuPodL3 = `
467+
// kind: Deployment
468+
// apiVersion: apps/v1
469+
// metadata:
470+
// name: ubuntu-l3
471+
// spec:
472+
// replicas: 1
473+
// selector:
474+
// matchLabels:
475+
// app: "ubuntu-l3"
476+
// template:
477+
// metadata:
478+
// labels:
479+
// app: "ubuntu-l3"
480+
// spec:
481+
// containers:
482+
// - name: main
483+
// image: ubuntu:20.04
484+
// imagePullPolicy: IfNotPresent
485+
// command: ["bash"]
486+
// args: ["-c", "while sleep 1; do cat /etc/hostname; done"]
487+
// - name: sidecar
488+
// image: ubuntu:20.04
489+
// imagePullPolicy: IfNotPresent
490+
// command: ["bash"]
491+
// args: ["-c", "while sleep 1; do cat /etc/hostname; done"]
492+
// `
493493

494494
func containerSelectorNameChecker() *checker.RPCChecker {
495495
return checker.NewRPCChecker(&containerFieldNameChecker{}, "policyfilter-container-field-checker")
@@ -533,10 +533,10 @@ func (cfc *containerFieldNameChecker) FinalCheck(_ *slog.Logger) error {
533533
return fmt.Errorf("container-field checker failed, had %d matches", cfc.matches)
534534
}
535535

536-
func TestContainerFieldNameFilters(t *testing.T) {
537-
checker := containerSelectorNameChecker().WithTimeLimit(30 * time.Second).WithEventLimit(20)
538-
testContainerFieldFilters(t, checker, containerSelectorNamePolicy, "ubuntu-container-syscalls", ubuntuPodL3)
539-
}
536+
// func TestContainerFieldNameFilters(t *testing.T) {
537+
// checker := containerSelectorNameChecker().WithTimeLimit(30 * time.Second).WithEventLimit(20)
538+
// testContainerFieldFilters(t, checker, containerSelectorNamePolicy, "ubuntu-container-syscalls", ubuntuPodL3)
539+
// }
540540

541541
const containerSelectorRepoPolicy = `
542542
apiVersion: cilium.io/v1alpha1

0 commit comments

Comments
 (0)