You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.True(containerInfo.Spec.HasCpu, "CPU should be isolated")
216
-
assert.Equal(containerInfo.Spec.Cpu.Limit, cpuShares, "Container should have %d shares, has %d", cpuShares, containerInfo.Spec.Cpu.Limit)
217
-
assert.Equal(containerInfo.Spec.Cpu.Mask, cpuMask, "Cpu mask should be %q, but is %q", cpuMask, containerInfo.Spec.Cpu.Mask)
224
+
assert.Equal(cpuShares, containerInfo.Spec.Cpu.Limit, "Container should have %d shares, has %d", cpuShares, containerInfo.Spec.Cpu.Limit)
225
+
assert.Equal(cpuMask, containerInfo.Spec.Cpu.Mask, "Cpu mask should be %q, but is %q", cpuMask, containerInfo.Spec.Cpu.Mask)
218
226
assert.True(containerInfo.Spec.HasMemory, "Memory should be isolated")
219
-
assert.Equal(containerInfo.Spec.Memory.Limit, memoryLimit, "Container should have memory limit of %d, has %d", memoryLimit, containerInfo.Spec.Memory.Limit)
227
+
assert.Equal(memoryLimit, containerInfo.Spec.Memory.Limit, "Container should have memory limit of %d, has %d", memoryLimit, containerInfo.Spec.Memory.Limit)
220
228
assert.True(containerInfo.Spec.HasNetwork, "Network should be isolated")
221
229
assert.True(containerInfo.Spec.HasDiskIo, "Blkio should be isolated")
230
+
231
+
assert.Equal(image, containerInfo.Spec.Image, "Spec should include container image")
232
+
assert.Equal(env, containerInfo.Spec.Envs, "Spec should include environment variables")
233
+
assert.Equal(labels, containerInfo.Spec.Labels, "Spec should include labels")
0 commit comments