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 12, 2025
1 parent e2f10c4 commit 522a0a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-test-controllers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ 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
docker system prune -a -f
- name: Test KubeArmor using Ginkgo
run: |
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
ginkgo --vv --flake-attempts=10 --timeout=10m smoke/
ginkgo --vv --flake-attempts=10 --timeout=15m smoke/
working-directory: ./tests/k8s_env
timeout-minutes: 30

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 522a0a2

Please sign in to comment.