fog-proxmox 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/fog/identity/proxmox/requests/change_password.rb +1 -1
- data/lib/fog/proxmox.rb +9 -8
- data/lib/fog/proxmox/version.rb +1 -1
- data/spec/compute_spec.rb +106 -106
- data/spec/fixtures/proxmox/compute/containers.yml +1387 -2096
- data/spec/fixtures/proxmox/compute/identity_ticket.yml +8 -8
- data/spec/fixtures/proxmox/compute/nodes.yml +24 -24
- data/spec/fixtures/proxmox/compute/servers.yml +2849 -2920
- data/spec/fixtures/proxmox/compute/snapshots.yml +308 -293
- data/spec/fixtures/proxmox/compute/storages.yml +32 -32
- data/spec/fixtures/proxmox/compute/tasks.yml +57 -55
- data/spec/fixtures/proxmox/identity/auth.yml +125 -8
- data/spec/fixtures/proxmox/identity/domains.yml +120 -118
- data/spec/fixtures/proxmox/identity/groups.yml +52 -52
- data/spec/fixtures/proxmox/identity/identity_ticket.yml +8 -8
- data/spec/fixtures/proxmox/identity/permissions.yml +119 -119
- data/spec/fixtures/proxmox/identity/pools.yml +97 -97
- data/spec/fixtures/proxmox/identity/read_version.yml +8 -8
- data/spec/fixtures/proxmox/identity/roles.yml +55 -55
- data/spec/fixtures/proxmox/identity/users.yml +115 -115
- data/spec/fixtures/proxmox/network/identity_ticket.yml +8 -8
- data/spec/fixtures/proxmox/network/networks.yml +84 -64
- data/spec/identity_spec.rb +82 -60
- data/spec/network_spec.rb +6 -6
- metadata +2 -2
data/spec/network_spec.rb
CHANGED
@@ -45,16 +45,16 @@ describe Fog::Proxmox::Network do
|
|
45
45
|
node.networks.create(net_hash)
|
46
46
|
# Find by id
|
47
47
|
network = node.networks.get net_hash[:iface]
|
48
|
-
network.wont_be_nil
|
48
|
+
_(network).wont_be_nil
|
49
49
|
# Create 2nd time
|
50
|
-
proc do
|
50
|
+
_(proc do
|
51
51
|
node.networks.create(net_hash)
|
52
|
-
end.must_raise Excon::Error::BadRequest
|
52
|
+
end).must_raise Excon::Error::BadRequest
|
53
53
|
# all networks
|
54
54
|
networks_all = node.networks.all
|
55
|
-
networks_all.wont_be_nil
|
56
|
-
networks_all.wont_be_empty
|
57
|
-
networks_all.must_include network
|
55
|
+
_(networks_all).wont_be_nil
|
56
|
+
_(networks_all).wont_be_empty
|
57
|
+
_(networks_all).must_include network
|
58
58
|
# Update
|
59
59
|
network.update(comments: 'test')
|
60
60
|
node.power('reboot')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-proxmox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tristan Robert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|