mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Adding spec test to ensure that all the interfaces are the same, while doing so, fix the broken interfaces for delete on vmpooler and nonstandard pooler(they were passed 5 by service.rb but expected 4)
This commit is contained in:
parent
bc1198f81c
commit
dc3bfecd28
6 changed files with 57 additions and 6 deletions
|
|
@ -290,4 +290,16 @@ class ABS
|
|||
res = conn.get "host/#{hostname}"
|
||||
JSON.parse(res.body)
|
||||
end
|
||||
|
||||
def self.modify(_verbose, _url, _hostname, _token, _modify_hash)
|
||||
raise NoMethodError, 'modify is not defined for ABS'
|
||||
end
|
||||
|
||||
def self.disk(_verbose, _url, _hostname, _token, _disk)
|
||||
raise NoMethodError, 'disk is not defined for ABS'
|
||||
end
|
||||
|
||||
def self.revert(_verbose, _url, _hostname, _token, _snapshot_sha)
|
||||
raise NoMethodError, 'revert is not defined for ABS'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class NonstandardPooler
|
|||
raise ModifyError, 'Configured service type does not support snapshots'
|
||||
end
|
||||
|
||||
def self.delete(verbose, url, hosts, token)
|
||||
def self.delete(verbose, url, hosts, token, _user)
|
||||
raise TokenError, 'Token provided was nil; Request cannot be made to delete VM' if token.nil?
|
||||
|
||||
conn = Http.get_conn(verbose, url)
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class Pooler
|
|||
res_body
|
||||
end
|
||||
|
||||
def self.delete(verbose, url, hosts, token)
|
||||
def self.delete(verbose, url, hosts, token, _user)
|
||||
raise TokenError, 'Token provided was nil. Request cannot be made to delete vm' if token.nil?
|
||||
|
||||
conn = Http.get_conn(verbose, url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue