cloudstack_client 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eb472bfa825848733a375c0d6b5053d2dd8d9eb6d9e158e4a650cc3b0cca7af
4
- data.tar.gz: 9da81b1ad5aea9155c908aed21de393f1e662bf41e45be98756f0e3d84123ad9
3
+ metadata.gz: b10551e9d3cb506c024a85a3a4977a29094b5d946a3b4493b8bcb46c71032f59
4
+ data.tar.gz: c6aea4f1cf7937a8056a4e3701df958a0842af5d3ec0ccf9e079ac887580477f
5
5
  SHA512:
6
- metadata.gz: 6212d7a38b4293b0d6268c7d778c35b6a2614f79229bb5d34f2bdd2c270eb49d63d5365c7e810e3663cb182194e5f26b4126301f5c4745c8ed59e0d1a1ec131b
7
- data.tar.gz: db79b7e1c38ac39eaaf61146b44be1c877763d36ede8ec7e666729669e31580c8a9ead924f926ca91dbf7aa25b17a5ccef608a7b9f02ecee226b3d425a4668a8
6
+ metadata.gz: 4e6a17c1cb607fdb41bbf2fa211da7c38e1e4b5f5b3a7ba8cf7e6165c4abd3c8825fd046c55bd38e7bfca1933a2bd0899f1328fbc43eec77e76d455d65d79b70
7
+ data.tar.gz: f72b742f2155c93563251bc9c7f4576fda211b4f012915c4a3b99b926cfc3b59175f945a421b2ff6428db87825f02f3b3a320b4dd211f174ae6f39572f551e96
data/Gemfile.lock CHANGED
@@ -1,27 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudstack_client (1.5.7)
4
+ cloudstack_client (1.5.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  bond (0.5.1)
10
- minitest (5.13.0)
11
- rake (13.0.1)
10
+ minitest (5.14.4)
11
+ rake (13.0.5)
12
12
  ripl (0.7.1)
13
13
  bond (~> 0.5.1)
14
- thor (1.0.1)
14
+ thor (1.1.0)
15
15
 
16
16
  PLATFORMS
17
- ruby
17
+ x86_64-linux
18
18
 
19
19
  DEPENDENCIES
20
20
  cloudstack_client!
21
- minitest (~> 5.11)
21
+ minitest (~> 5.14)
22
22
  rake (~> 13.0)
23
23
  ripl (~> 0.7)
24
- thor (~> 1.0)
24
+ thor (~> 1.1)
25
25
 
26
26
  BUNDLED WITH
27
- 2.0.2
27
+ 2.2.15
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.rdoc_options = %w[--line-numbers --inline-source]
22
22
 
23
23
  gem.add_development_dependency('rake', '~> 13.0')
24
- gem.add_development_dependency('thor', '~> 1.0')
24
+ gem.add_development_dependency('thor', '~> 1.1')
25
25
  gem.add_development_dependency('ripl', '~> 0.7')
26
- gem.add_development_dependency('minitest', '~> 5.11')
26
+ gem.add_development_dependency('minitest', '~> 5.14')
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module CloudstackClient
2
- VERSION = "1.5.7"
2
+ VERSION = "1.5.8"
3
3
  end
data/test/api_test.rb CHANGED
@@ -7,86 +7,86 @@ describe CloudstackClient::Api do
7
7
 
8
8
  describe "when the API is initialized" do
9
9
  it "has to find the default version in available versions" do
10
- CloudstackClient::Api.versions.include?(
10
+ _(CloudstackClient::Api.versions.include?(
11
11
  CloudstackClient::Api::DEFAULT_API_VERSION
12
- ).must_equal true
12
+ )).must_equal true
13
13
  end
14
14
 
15
15
  it "must raise exception for unavailable version" do
16
- proc { CloudstackClient::Api.new(api_version: "0.0") }.must_raise RuntimeError
16
+ _(proc { CloudstackClient::Api.new(api_version: "0.0") }).must_raise RuntimeError
17
17
  end
18
18
 
19
19
  it "must set correct version of fake api file" do
20
- CloudstackClient::Api.new(
20
+ _(CloudstackClient::Api.new(
21
21
  api_file: "#{File.expand_path File.dirname(__FILE__)}/data/0.42.json.gz"
22
- ).api_version.must_equal "0.42"
22
+ ).api_version).must_equal "0.42"
23
23
  end
24
24
 
25
25
  it "must set correct api file of fake api when loaded with api_version option" do
26
- CloudstackClient::Api.new(
26
+ _(CloudstackClient::Api.new(
27
27
  api_path: "#{File.expand_path File.dirname(__FILE__)}/data/",
28
- ).api_file.must_equal "#{File.expand_path File.dirname(__FILE__)}/data/0.42.json.gz"
28
+ ).api_file).must_equal "#{File.expand_path File.dirname(__FILE__)}/data/0.42.json.gz"
29
29
  end
30
30
  end
31
31
 
32
32
  describe "when commands are accessed" do
33
33
  it "must return a Hash" do
34
- @api.commands.class.must_equal Hash
34
+ _(@api.commands.class).must_equal Hash
35
35
  end
36
36
 
37
37
  it "must have a key named 'listDomains'" do
38
- @api.commands.has_key?('listDomains').must_equal true
38
+ _(@api.commands.has_key?('listDomains')).must_equal true
39
39
  end
40
40
 
41
41
  it "the 'listDomains' element must contain the correct 'name' value" do
42
- @api.commands['listDomains']['name'].must_equal "listDomains"
42
+ _(@api.commands['listDomains']['name']).must_equal "listDomains"
43
43
  end
44
44
 
45
45
  it "the 'listDomains' element must contain 'params'" do
46
- @api.commands['listDomains'].has_key?('params').must_equal true
46
+ _(@api.commands['listDomains'].has_key?('params')).must_equal true
47
47
  end
48
48
  end
49
49
 
50
50
  describe "when asked about supported commands" do
51
51
  it "must respond positively for 'listVirtualMachines'" do
52
- @api.command_supported?('listVirtualMachines').must_equal true
52
+ _(@api.command_supported?('listVirtualMachines')).must_equal true
53
53
  end
54
54
 
55
55
  it "must respond positively for 'list_virtual_machines'" do
56
- @api.command_supported?('list_virtual_machines').must_equal true
56
+ _(@api.command_supported?('list_virtual_machines')).must_equal true
57
57
  end
58
58
 
59
59
  it "must respond positively for 'createUser'" do
60
- @api.command_supported?('createUser').must_equal true
60
+ _(@api.command_supported?('createUser')).must_equal true
61
61
  end
62
62
 
63
63
  it "must respond positively for 'create_user'" do
64
- @api.command_supported?('create_user').must_equal true
64
+ _(@api.command_supported?('create_user')).must_equal true
65
65
  end
66
66
 
67
67
  it "must respond netagively for 'listClowns'" do
68
- @api.command_supported?('listClowns').must_equal false
68
+ _(@api.command_supported?('listClowns')).must_equal false
69
69
  end
70
70
 
71
71
  it "must respond netagively for 'list_clowns'" do
72
- @api.command_supported?('list_clowns').must_equal false
72
+ _(@api.command_supported?('list_clowns')).must_equal false
73
73
  end
74
74
  end
75
75
 
76
76
  describe "when asked about supported params" do
77
77
  it "must respond positively for 'listVirtualMachines' and param 'name'" do
78
- @api.command_supports_param?('listVirtualMachines', 'name').must_equal true
78
+ _(@api.command_supports_param?('listVirtualMachines', 'name')).must_equal true
79
79
  end
80
80
 
81
81
  it "must respond netagively for 'listVirtualMachines' and param 'hotdog'" do
82
- @api.command_supports_param?('listVirtualMachines', 'hotdog').must_equal false
82
+ _(@api.command_supports_param?('listVirtualMachines', 'hotdog')).must_equal false
83
83
  end
84
84
  end
85
85
 
86
86
  describe "when asked about required params" do
87
87
  it "must respond with correct Array for 'createUser'" do
88
88
  params = %w(account email firstname lastname password username)
89
- @api.required_params('createUser').sort.must_equal params.sort
89
+ _(@api.required_params('createUser').sort).must_equal params.sort
90
90
  end
91
91
  end
92
92
 
@@ -101,11 +101,11 @@ describe CloudstackClient::Api do
101
101
  "username" => "meme",
102
102
  "domainid" => "1"
103
103
  }
104
- @api.all_required_params?('createUser', params).must_equal true
104
+ _(@api.all_required_params?('createUser', params)).must_equal true
105
105
  end
106
106
 
107
107
  it "must respond netagively for 'createUser' and params 'username'" do
108
- @api.all_required_params?('createUser', { "username" => "meme" }).must_equal false
108
+ _(@api.all_required_params?('createUser', { "username" => "meme" })).must_equal false
109
109
  end
110
110
  end
111
111
 
data/test/client_test.rb CHANGED
@@ -11,19 +11,19 @@ describe CloudstackClient::Client do
11
11
 
12
12
  describe "when the client is instantiated" do
13
13
  it "must respond_to 'list_virtual_machines'" do
14
- @client.respond_to?(:list_virtual_machines).must_equal true
14
+ _(@client.respond_to?(:list_virtual_machines)).must_equal true
15
15
  end
16
16
 
17
17
  it "must respond_to 'deploy_virtual_machine'" do
18
- @client.respond_to?(:deploy_virtual_machine).must_equal true
18
+ _(@client.respond_to?(:deploy_virtual_machine)).must_equal true
19
19
  end
20
20
 
21
21
  it "must respond_to 'create_user'" do
22
- @client.respond_to?(:create_user).must_equal true
22
+ _(@client.respond_to?(:create_user)).must_equal true
23
23
  end
24
24
 
25
25
  it "must not be in debug mode" do
26
- @client.debug.must_equal false
26
+ _(@client.debug).must_equal false
27
27
  end
28
28
  end
29
29
  end
@@ -5,29 +5,29 @@ describe CloudstackClient::Configuration do
5
5
 
6
6
  describe "when the configuration is loaded without env" do
7
7
  it "must use the default env'" do
8
- CloudstackClient::Configuration.load({
8
+ _(CloudstackClient::Configuration.load({
9
9
  config_file: "#{File.expand_path File.dirname(__FILE__)}/data/cloudstack-1.yml",
10
10
  debug: true
11
- })[:environment].must_equal "test1"
11
+ })[:environment]).must_equal "test1"
12
12
  end
13
13
  end
14
14
 
15
15
  describe "when an alternative env is in the options" do
16
16
  it "must use the alternative env'" do
17
- CloudstackClient::Configuration.load({
17
+ _(CloudstackClient::Configuration.load({
18
18
  config_file: "#{File.expand_path File.dirname(__FILE__)}/data/cloudstack-1.yml",
19
19
  env: "test2",
20
20
  debug: true
21
- })[:environment].must_equal "test2"
21
+ })[:environment]).must_equal "test2"
22
22
  end
23
23
  end
24
24
 
25
25
  describe "when only one env is present" do
26
26
  it "must use the one existing configuration'" do
27
- CloudstackClient::Configuration.load({
27
+ _(CloudstackClient::Configuration.load({
28
28
  config_file: "#{File.expand_path File.dirname(__FILE__)}/data/cloudstack-2.yml",
29
29
  debug: true
30
- })[:api_key].must_equal "test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test"
30
+ })[:api_key]).must_equal "test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test"
31
31
  end
32
32
  end
33
33
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ripl
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.11'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.11'
68
+ version: '5.14'
69
69
  description: CloudStack API client written in Ruby
70
70
  email:
71
71
  - nik.wolfgramm@gmail.com
@@ -106,7 +106,7 @@ homepage: https://github.com/niwo/cloudstack_client
106
106
  licenses:
107
107
  - MIT
108
108
  metadata: {}
109
- post_install_message:
109
+ post_install_message:
110
110
  rdoc_options:
111
111
  - "--line-numbers"
112
112
  - "--inline-source"
@@ -123,9 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubyforge_project:
127
- rubygems_version: 2.7.8
128
- signing_key:
126
+ rubygems_version: 3.2.15
127
+ signing_key:
129
128
  specification_version: 4
130
129
  summary: CloudStack API client written in Ruby
131
130
  test_files: