Skip to content

Commit f5bbac6

Browse files
committed
Add mock-data for pool requests
1 parent d57cb3e commit f5bbac6

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

lib/fog/proxmox/identity/requests/get_pool.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ def get_pool(poolid)
3434

3535
# class Mock get_pool collection
3636
class Mock
37-
def get_pool(poolid); end
37+
def get_pool(poolid)
38+
{
39+
'members' => [],
40+
'comment' => 'This pool is just for testing'
41+
}
42+
end
3843
end
3944
end
4045
end

lib/fog/proxmox/identity/requests/list_pools.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ def list_pools
3434

3535
# class Mock list_pools request
3636
class Mock
37-
def list_pools; end
37+
def list_pools
38+
[
39+
{
40+
'poolid' => 'TestPool',
41+
'comment' => 'This pool is just for testing'
42+
}
43+
]
44+
end
3845
end
3946
end
4047
end

0 commit comments

Comments
 (0)