Skip to content

Commit

Permalink
test: Fix JSON messages support unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Oct 17, 2023
1 parent f2ad62a commit 16d1430
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions t/agent/http/client/glpi/protocol/inventory.t
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@ my %inventories = (
},
itemtype => "Computer",
},
"vm" => {
"vm-down" => {
content => {
VIRTUALMACHINES => {
VCPU => "16",
NAME => "Glpi",
VMTYPE => "lxc",
STATUS => "Down"
STATUS => "Down" # Not supported status
}
},
expected => {
Expand All @@ -265,8 +265,7 @@ my %inventories = (
virtualmachines => {
vcpu => 16,
name => "Glpi",
vmtype => "lxc",
status => "down",
vmtype => "lxc"
}
}
},
Expand All @@ -279,12 +278,12 @@ my %inventories = (
VCPU => "16",
NAME => "Glpi",
VMTYPE => "lxc",
STATUS => "Down"
STATUS => "Off"
},{
VCPU => "0032",
NAME => "Glpi32",
VMTYPE => "lxc",
STATUS => "UP",
STATUS => "Running",
MEMORY => undef
}
]
Expand All @@ -299,12 +298,12 @@ my %inventories = (
vcpu => 16,
name => "Glpi",
vmtype => "lxc",
status => "down",
status => "off",
},{
vcpu => 32,
name => "Glpi32",
vmtype => "lxc",
status => "up",
status => "running",
}
]
}
Expand Down

0 comments on commit 16d1430

Please sign in to comment.