Skip to content

Commit

Permalink
Checkup, test: Add VMUnderTestContainerDiskImage
Browse files Browse the repository at this point in the history
PR #65 made vmUnderTestContainerDiskImage mandatory.
Adjust the checkup tests to reflect this change.

Signed-off-by: Orel Misan <[email protected]>
  • Loading branch information
orelmisan committed Apr 8, 2024
1 parent be81393 commit d802022
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkg/internal/checkup/checkup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import (
const (
testNamespace = "target-ns"
testTargetNodeName = "my-node"

testVMUnderTestImage = "quay.io/kiagnose/kubevirt-realtime-checkup-vm:main"
)

func TestCheckupShouldSucceed(t *testing.T) {
Expand Down Expand Up @@ -294,10 +296,11 @@ func (es executorStub) Execute(_ context.Context, vmiName string) (status.Result

func newTestConfig() config.Config {
return config.Config{
PodName: "",
PodUID: "",
VMUnderTestTargetNodeName: testTargetNodeName,
OslatDuration: 10 * time.Minute,
OslatLatencyThreshold: 45 * time.Microsecond,
PodName: "",
PodUID: "",
VMUnderTestTargetNodeName: testTargetNodeName,
VMUnderTestContainerDiskImage: testVMUnderTestImage,
OslatDuration: 10 * time.Minute,
OslatLatencyThreshold: 45 * time.Microsecond,
}
}

0 comments on commit d802022

Please sign in to comment.