mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
Adding delete and get active requests
This commit is contained in:
parent
7e27542670
commit
d963e357d3
9 changed files with 109 additions and 75 deletions
|
|
@ -36,25 +36,25 @@ describe ABS do
|
|||
end
|
||||
|
||||
it 'won\'t delete a job if not all vms are listed' do
|
||||
hosts = ["host1"]
|
||||
hosts = ['host1']
|
||||
allocated_resources = [
|
||||
{
|
||||
"hostname" => "host1"
|
||||
'hostname' => 'host1',
|
||||
},
|
||||
{
|
||||
"hostname" => "host2"
|
||||
}
|
||||
'hostname' => 'host2',
|
||||
},
|
||||
]
|
||||
expect(ABS.all_job_resources_accounted_for(allocated_resources, hosts)).to eq(false)
|
||||
|
||||
hosts = ["host1", "host2"]
|
||||
hosts = ['host1', 'host2']
|
||||
allocated_resources = [
|
||||
{
|
||||
"hostname" => "host1"
|
||||
'hostname' => 'host1',
|
||||
},
|
||||
{
|
||||
"hostname" => "host2"
|
||||
}
|
||||
'hostname' => 'host2',
|
||||
},
|
||||
]
|
||||
expect(ABS.all_job_resources_accounted_for(allocated_resources, hosts)).to eq(true)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue