Skip to content

Commit 1098647

Browse files
Merge pull request #60 from Manisha15/mock_requests
Add mock data for requests
2 parents db56947 + e473bc9 commit 1098647

37 files changed

+190
-24
lines changed

lib/fog/compute/proxmox/requests/action_server.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def action_server(path_params, body_params)
3838

3939
# class Mock action_server request
4040
class Mock
41+
def action_server(_path_params, _body_params); end
4142
end
4243
end
4344
end

lib/fog/compute/proxmox/requests/clone_server.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def clone_server(path_params, body_params)
3737

3838
# class Mock clone_server request
3939
class Mock
40+
def clone_server(_path_params, _body_params); end
4041
end
4142
end
4243
end

lib/fog/compute/proxmox/requests/create_backup.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def create_backup(path_params, body_params)
3535

3636
# class Mock create_backup request
3737
class Mock
38+
def create_backup(_path_params, _body_params); end
3839
end
3940
end
4041
end

lib/fog/compute/proxmox/requests/create_server.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def create_server(path_params, body_params)
3636

3737
# class Mock create_server request
3838
class Mock
39+
def create_server(_path_params, _body_params); end
3940
end
4041
end
4142
end

lib/fog/compute/proxmox/requests/create_snapshot.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def create_snapshot(path_params, body_params)
3737

3838
# class Mock create_snapshot request
3939
class Mock
40-
def create_snapshot; end
40+
def create_snapshot(_path_params, _body_params)
41+
'UPID:proxmox:00003E13:6F21770F:5E37E2D0:qmsnapshot:100:root@pam:'
42+
end
4143
end
4244
end
4345
end

lib/fog/compute/proxmox/requests/create_spice.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def create_spice(path_params, body_params)
3737

3838
# class Mock create_spice request
3939
class Mock
40+
def create_spice(_path_params, _body_params); end
4041
end
4142
end
4243
end

lib/fog/compute/proxmox/requests/create_term.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def create_term(path_params, body_params)
3737

3838
# class Mock create_term request
3939
class Mock
40+
def create_term(_path_params, _body_params); end
4041
end
4142
end
4243
end

lib/fog/compute/proxmox/requests/create_vnc.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def create_vnc(path_params, body_params)
3737

3838
# class Mock create_vnc request
3939
class Mock
40+
def create_vnc(_path_params, _body_params); end
4041
end
4142
end
4243
end

lib/fog/compute/proxmox/requests/delete_server.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def delete_server(path_params, body_params)
3838

3939
# class Mock delete_server request
4040
class Mock
41+
def delete_server(_path_params, _body_params); end
4142
end
4243
end
4344
end

lib/fog/compute/proxmox/requests/delete_snapshot.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def delete_snapshot(path_params, query_params)
3838

3939
# class Mock delete_snapshot request
4040
class Mock
41-
def delete_snapshot; end
41+
def delete_snapshot(_path_params, _query_params)
42+
'UPID:proxmox:00002CC5:646E24B1:5E1C7E26:qmdelsnapshot:100:root@pam:'
43+
end
4244
end
4345
end
4446
end

0 commit comments

Comments
 (0)