diff --git a/lib/fog/proxmox/compute/requests/next_vmid.rb b/lib/fog/proxmox/compute/requests/next_vmid.rb index 52ddf8d..8ce4a4f 100644 --- a/lib/fog/proxmox/compute/requests/next_vmid.rb +++ b/lib/fog/proxmox/compute/requests/next_vmid.rb @@ -35,7 +35,9 @@ def next_vmid(options = {}) # class Mock next_vmid collection class Mock - def next_vmid; end + def next_vmid(options = {}) + 101 + end end end end diff --git a/lib/fog/proxmox/identity/requests/get_pool.rb b/lib/fog/proxmox/identity/requests/get_pool.rb index c691541..c13a173 100644 --- a/lib/fog/proxmox/identity/requests/get_pool.rb +++ b/lib/fog/proxmox/identity/requests/get_pool.rb @@ -34,7 +34,12 @@ def get_pool(poolid) # class Mock get_pool collection class Mock - def get_pool(poolid); end + def get_pool(poolid) + { + 'members' => [], + 'comment' => 'This pool is just for testing' + } + end end end end diff --git a/lib/fog/proxmox/identity/requests/list_pools.rb b/lib/fog/proxmox/identity/requests/list_pools.rb index cbb7c1a..94ecc03 100644 --- a/lib/fog/proxmox/identity/requests/list_pools.rb +++ b/lib/fog/proxmox/identity/requests/list_pools.rb @@ -34,7 +34,14 @@ def list_pools # class Mock list_pools request class Mock - def list_pools; end + def list_pools + [ + { + 'poolid' => 'TestPool', + 'comment' => 'This pool is just for testing' + } + ] + end end end end