Skip to content

Commit

Permalink
test
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 5, 2025
1 parent da71059 commit 454eed8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci-test-ginkgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ jobs:
echo "Pod: $POD_NAME"
echo "POD_NAME=$POD_NAME" >> $GITHUB_ENV
sleep 15
kubectl get pods -A
kubectl describe ns nginx
- name: Test KubeArmor using Ginkgo
run: |
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
Expand Down
3 changes: 2 additions & 1 deletion tests/k8s_env/ksp/ksp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ var _ = Describe("Ksp", func() {
fmt.Printf(" No pods with label pre-run-pod-test=true found ")
return
}

fmt.Println(pods)
for _, item := range pods.Items {
annotated := false
fmt.Printf("annotations: %s status= %s , condition: %s", item.Annotations, item.Status.Phase, &item.Status.Conditions)
for key, value := range item.Annotations {
fmt.Printf("K8sGetPods pod=%s ns=%s Annotation Key=%v value=%s", item.Name, "nginx", key, value)
if key == "kubearmor-policy" {
Expand Down

0 comments on commit 454eed8

Please sign in to comment.