fix iops related tests

This commit is contained in:
Alex Dadgar
2018-12-12 14:32:22 -08:00
parent 68a271e7d1
commit d5dd9c2c69
2 changed files with 24 additions and 0 deletions

View File

@@ -3253,6 +3253,12 @@ func TestTaskDiff(t *testing.T) {
Old: "100",
New: "200",
},
{
Type: DiffTypeNone,
Name: "IOPS",
Old: "0",
New: "0",
},
{
Type: DiffTypeNone,
Name: "MemoryMB",
@@ -3574,6 +3580,12 @@ func TestTaskDiff(t *testing.T) {
Old: "100",
New: "100",
},
{
Type: DiffTypeNone,
Name: "IOPS",
Old: "0",
New: "0",
},
{
Type: DiffTypeNone,
Name: "MemoryMB",

View File

@@ -210,6 +210,18 @@ func TestAllocsFit_TerminalAlloc_Old(t *testing.T) {
CPU: 2000,
MemoryMB: 2048,
DiskMB: 10000,
Networks: []*NetworkResource{
{
Device: "eth0",
CIDR: "10.0.0.0/8",
MBits: 100,
},
},
},
Reserved: &Resources{
CPU: 1000,
MemoryMB: 1024,
DiskMB: 5000,
Networks: []*NetworkResource{
{
Device: "eth0",