Skip to content

Commit

Permalink
test correction
Browse files Browse the repository at this point in the history
Signed-off-by: rcohen <rcohen@armosec.io>
  • Loading branch information
rcohen committed Mar 28, 2023
1 parent 282aa86 commit afdcc96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/conthandler/v1/container_handler_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const (
TestContainerID = "e1da74f71370d61564cbc746996e3f534d4c61ce3e7e7627b1f2543999e3cf7a"
TestContainerName = "blabla"
TestWLID = "wlid://cluster-name/namespace-any/deployment-aaa"
TestInstanceID = "apiVersion-v1/namespace-any/kind-deployment/name-aaa/containerName-contName"
TestInstanceIDHash = "caab386cd1230809464f0b67ddd09cb5132053bec358a4e99b35b5d695ac0026"
TestInstanceID = "apiVersion-apps/v1/namespace-any/kind-deployment/name-aaa/containerName-contName"
TestInstanceIDHash = "fb7c6f65d5ede71f7dd6dc43b63261295ce26a2898d8517c23c6f171cc3865ce"
)

func TestContainerEvent(t *testing.T) {
Expand All @@ -36,7 +36,7 @@ func TestContainerEvent(t *testing.T) {
t.Fatalf("fail to get container event image ID")
}
if instanceid.GetStringFormatted() != TestInstanceID {
t.Fatalf("fail to get container event instance ID")
t.Fatalf("fail to get container event instance ID, get %s expected %s", instanceid.GetStringFormatted(), TestInstanceID)
}
if contEv.GetInstanceIDHash() != TestInstanceIDHash {
t.Fatalf("fail to get container event instance ID hash, get %s, expected %s ", contEv.GetInstanceIDHash(), TestInstanceIDHash)
Expand Down

0 comments on commit afdcc96

Please sign in to comment.