(POOLER-142) Add running host to vm API data

This change adds the running host for a VM to the API data available via /vm/hostname. Without this change the running host would be logged to vmpooler log, but not available any other way. Additionally, the data will specify if a machine has been migrated. Without this change parent host data for a vmpooler machine is not available via the vmpooler API.
This commit is contained in:
kirby@puppetlabs.com 2019-08-21 12:43:06 -07:00
parent 9d48bc1b7e
commit 9c5a0d114b
7 changed files with 19 additions and 4 deletions

View file

@ -53,6 +53,7 @@ describe Vmpooler::API::V1 do
expect(response_body["end_time"]).to eq(current_time.to_datetime.rfc3339)
expect(response_body["state"]).to eq("running")
expect(response_body["ip"]).to eq("")
expect(response_body["host"]).to eq("host1")
end
end