Skip to content

Commit 3a1c474

Browse files
committed
Modify tests to make them compatible with VM IDs
We are using the names of the tests as VM IDs. But some tests don't work due to invalid characters ("_") and the length (maximum is 64 bytes). Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 284a2d0 commit 3a1c474

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/service_integ_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1602,13 +1602,13 @@ func TestStopVM_Isolated(t *testing.T) {
16021602

16031603
t.Run(test.name, func(t *testing.T) {
16041604
req := test.createVMRequest
1605-
req.VMID = testNameToVMID(test.name)
1605+
req.VMID = testNameToVMID(t.Name())
16061606
testFunc(t, req)
16071607
})
16081608

16091609
t.Run(test.name+"/Jailer", func(t *testing.T) {
16101610
req := test.createVMRequest
1611-
req.VMID = testNameToVMID(test.name) + "_Jailer"
1611+
req.VMID = testNameToVMID(t.Name())
16121612
req.JailerConfig = &proto.JailerConfig{
16131613
UID: 300000,
16141614
GID: 300000,
@@ -2007,7 +2007,7 @@ func TestCreateVM_Isolated(t *testing.T) {
20072007
UID: 30000,
20082008
GID: 30000,
20092009
}
2010-
t.Run(subtest.name+" with Jailer", func(t *testing.T) {
2010+
t.Run(subtest.name+"/Jailer", func(t *testing.T) {
20112011
runTest(t, requestWithJailer, validate)
20122012
})
20132013
}

0 commit comments

Comments
 (0)