Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan-sharma11 <[email protected]>
  • Loading branch information
Aryan-sharma11 committed Feb 11, 2025
1 parent e2f10c4 commit 165a10f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-controllers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
kubectl rollout status --timeout=5m daemonset -l kubearmor-app=kubearmor -n kubearmor
kubectl rollout status --timeout=5m deployment -n kubearmor -l kubearmor-app=kubearmor-controller -n kubearmor
kubectl get pods -A
done
done
- name: Test KubeArmor using Ginkgo
run: |
Expand Down
4 changes: 2 additions & 2 deletions tests/k8s_env/ksp/ksp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@ var _ = Describe("Ksp", func() {
Expect(err).To(BeNil())

AssertCommand(ub4, "multiubuntu", []string{"bash", "-c", "echo test >> /credentials/password"},
MatchRegexp("password.*Permission denied"), true,
MatchRegexp(".*Permission denied"), true,
)

expect := protobuf.Alert{
Expand Down Expand Up @@ -1976,7 +1976,7 @@ var _ = Describe("Ksp", func() {
Expect(err).To(BeNil())

AssertCommand(ub4, "multiubuntu", []string{"bash", "-c", "echo test >> /credentials/password"},
MatchRegexp("password.*Permission denied"), true,
MatchRegexp(".*Permission denied"), true,
)

expect := protobuf.Alert{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
- dir: /pts/
- dir: /var/lib/
recursive: true
- dir: /sys/kernel/
recursive: true
- dir: /dev/pts/
recursive: true
action:
Allow

Expand Down

0 comments on commit 165a10f

Please sign in to comment.