brightbox-cli 2.12.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +22 -18
- data/Jenkinsfile +0 -11
- data/Rakefile +2 -12
- data/brightbox-cli.gemspec +3 -3
- data/lib/brightbox-cli/api.rb +1 -1
- data/lib/brightbox-cli/collaboration.rb +1 -1
- data/lib/brightbox-cli/commands/firewall/policies-update.rb +1 -1
- data/lib/brightbox-cli/version.rb +1 -1
- data/spec/support/shared/collaborating_accounts_context.rb +3 -3
- data/spec/unit/brightbox/account/all_spec.rb +2 -2
- data/spec/unit/brightbox/account/get_spec.rb +2 -2
- data/spec/unit/brightbox/api/conn_spec.rb +1 -1
- data/spec/unit/brightbox/collaborating_account_spec.rb +1 -1
- data/spec/unit/brightbox/connection_manager/fetch_connection_spec.rb +1 -1
- data/spec/unit/brightbox/database_server/cloud_ips_spec.rb +1 -1
- data/spec/unit/brightbox/database_server/maintenance_window_spec.rb +1 -1
- data/spec/unit/brightbox/user_collaboration/get_for_account_spec.rb +1 -1
- data/spec/unit/brightbox/user_collaboration/remove_spec.rb +1 -1
- metadata +9 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c5b05513e19a2b2086a60adcdcc9db34da763ea57057fe3cd4565f13d996325
|
4
|
+
data.tar.gz: 2330375316fccfb4681d2eafd793070821ac58e8af68d73c9b8370301a4ecd43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b9f70e55d3ac5273a6179ff17bd10f5c99d75c628d67dfd671413d657717d34f00a8ecbbb1397b952b56ed34b55249e836c09417c32b69eebcb677877b941e
|
7
|
+
data.tar.gz: de89095e13e79781b3c04828a4e20e1150056a4e3f838fa19923f949741c332cbeb4bb4b46b38566f2a7dc2b6e76b893cd658963b5194b33f7a79674cf650314
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
### v3.0.0 / 2020-07-01
|
2
|
+
|
3
|
+
[Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.12.0...v3.0.0)
|
4
|
+
|
5
|
+
Backwards incompatible changes:
|
6
|
+
|
7
|
+
* Dropped support for Ruby 1.9
|
8
|
+
|
9
|
+
Changes:
|
10
|
+
|
11
|
+
* Update `fog-brightbox` to v1.1.0
|
12
|
+
* Update `rake` to v12.3.3 to resolve CVE-2020-8130
|
13
|
+
* Update `rspec` to v3.9 to avoid issue when updating `rake`
|
14
|
+
|
15
|
+
Bug fixes:
|
16
|
+
|
17
|
+
* Creating an SQL instance from an existing snapshot has been fixed following
|
18
|
+
the update for `fog-brightbox v1.1.0`
|
19
|
+
|
1
20
|
### v2.12.0 / 2020-01-28
|
2
21
|
|
3
22
|
[Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.11.2...v2.12.0)
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
brightbox-cli (
|
4
|
+
brightbox-cli (3.0.0)
|
5
5
|
dry-inflector (< 0.2)
|
6
|
-
fog-brightbox (>=
|
6
|
+
fog-brightbox (>= 1.1.0)
|
7
7
|
fog-core (< 2.0)
|
8
8
|
gli (~> 2.12.0)
|
9
9
|
highline (~> 1.6.0)
|
@@ -20,14 +20,13 @@ GEM
|
|
20
20
|
coderay (1.0.9)
|
21
21
|
crack (0.4.2)
|
22
22
|
safe_yaml (~> 1.0.0)
|
23
|
-
diff-lcs (1.
|
23
|
+
diff-lcs (1.4.3)
|
24
24
|
dry-inflector (0.1.2)
|
25
|
-
excon (0.
|
26
|
-
fog-brightbox (
|
25
|
+
excon (0.75.0)
|
26
|
+
fog-brightbox (1.1.0)
|
27
27
|
dry-inflector
|
28
|
-
fog-core
|
28
|
+
fog-core (>= 1.45, < 3.0)
|
29
29
|
fog-json
|
30
|
-
mime-types
|
31
30
|
fog-core (1.45.0)
|
32
31
|
builder
|
33
32
|
excon (~> 0.58)
|
@@ -53,15 +52,20 @@ GEM
|
|
53
52
|
pry-remote (0.1.8)
|
54
53
|
pry (~> 0.9)
|
55
54
|
slop (~> 3.0)
|
56
|
-
rake (
|
57
|
-
rspec (
|
58
|
-
rspec-core (~>
|
59
|
-
rspec-expectations (~>
|
60
|
-
rspec-mocks (~>
|
61
|
-
rspec-core (
|
62
|
-
|
63
|
-
|
64
|
-
|
55
|
+
rake (12.3.3)
|
56
|
+
rspec (3.9.0)
|
57
|
+
rspec-core (~> 3.9.0)
|
58
|
+
rspec-expectations (~> 3.9.0)
|
59
|
+
rspec-mocks (~> 3.9.0)
|
60
|
+
rspec-core (3.9.2)
|
61
|
+
rspec-support (~> 3.9.3)
|
62
|
+
rspec-expectations (3.9.2)
|
63
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
+
rspec-support (~> 3.9.0)
|
65
|
+
rspec-mocks (3.9.1)
|
66
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
+
rspec-support (~> 3.9.0)
|
68
|
+
rspec-support (3.9.3)
|
65
69
|
safe_yaml (1.0.4)
|
66
70
|
slop (3.4.5)
|
67
71
|
vcr (2.5.0)
|
@@ -77,9 +81,9 @@ DEPENDENCIES
|
|
77
81
|
mocha
|
78
82
|
pry-remote
|
79
83
|
rake
|
80
|
-
rspec
|
84
|
+
rspec
|
81
85
|
vcr (~> 2.5)
|
82
86
|
webmock
|
83
87
|
|
84
88
|
BUNDLED WITH
|
85
|
-
1.17.
|
89
|
+
1.17.3
|
data/Jenkinsfile
CHANGED
@@ -9,17 +9,6 @@ pipeline {
|
|
9
9
|
stages {
|
10
10
|
stage("Run tests") {
|
11
11
|
parallel {
|
12
|
-
stage("Ruby 1.9.3") {
|
13
|
-
agent {
|
14
|
-
docker {
|
15
|
-
image 'ruby:1.9.3'
|
16
|
-
}
|
17
|
-
}
|
18
|
-
steps {
|
19
|
-
sh 'BUNDLE_APP_CONFIG=/tmp/bundle.config BUNDLE_DISABLE_SHARED_GEMS=true bundle install --deployment'
|
20
|
-
sh 'BUNDLE_APP_CONFIG=/tmp/bundle.config bundle exec rake test'
|
21
|
-
}
|
22
|
-
}
|
23
12
|
stage("Ruby 2.0") {
|
24
13
|
agent {
|
25
14
|
docker {
|
data/Rakefile
CHANGED
@@ -1,16 +1,6 @@
|
|
1
|
-
require "bundler"
|
2
1
|
require "rspec/core/rake_task"
|
3
2
|
|
4
|
-
bbcloud_path = File.expand_path("./lib", File.dirname(__FILE__))
|
5
|
-
$LOAD_PATH.unshift(bbcloud_path)
|
6
|
-
|
7
|
-
task :default => [:test]
|
8
|
-
|
9
3
|
Bundler::GemHelper.install_tasks
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
10
5
|
|
11
|
-
|
12
|
-
|
13
|
-
desc "Runs all tests (rspec and cucumber)"
|
14
|
-
task :test do
|
15
|
-
Rake::Task["spec"].invoke
|
16
|
-
end
|
6
|
+
task :default => :spec
|
data/brightbox-cli.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = %q(Scripts to interact with the Brightbox cloud API)
|
13
13
|
s.license = "MIT"
|
14
14
|
|
15
|
-
s.required_ruby_version = ">=
|
15
|
+
s.required_ruby_version = ">= 2.0"
|
16
16
|
|
17
17
|
s.rubyforge_project = "brightbox-cli"
|
18
18
|
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
|
-
s.add_dependency "fog-brightbox", ">=
|
24
|
+
s.add_dependency "fog-brightbox", ">= 1.1.0"
|
25
25
|
s.add_dependency "fog-core", "< 2.0"
|
26
26
|
s.add_dependency "gli", "~> 2.12.0"
|
27
27
|
s.add_dependency "i18n", "~> 0.6.0"
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
s.add_development_dependency "mocha"
|
37
37
|
s.add_development_dependency "pry-remote"
|
38
38
|
s.add_development_dependency "rake"
|
39
|
-
s.add_development_dependency "rspec"
|
39
|
+
s.add_development_dependency "rspec"
|
40
40
|
s.add_development_dependency "vcr", "~> 2.5"
|
41
41
|
s.add_development_dependency "webmock"
|
42
42
|
|
data/lib/brightbox-cli/api.rb
CHANGED
@@ -16,7 +16,7 @@ module Brightbox
|
|
16
16
|
# Returns the current connection to the Brightbox API, creating a new
|
17
17
|
# {ConnectionManager} and connection if necessary.
|
18
18
|
#
|
19
|
-
# @return [Fog::Compute::
|
19
|
+
# @return [Fog::Brightbox::Compute::Real]
|
20
20
|
#
|
21
21
|
def self.conn
|
22
22
|
if @@connection_manager
|
@@ -9,7 +9,7 @@ module Brightbox
|
|
9
9
|
def self.invite(email, role)
|
10
10
|
options = { :email => email, :role => role }
|
11
11
|
data = conn.create_collaboration(options)
|
12
|
-
model = Fog::Compute::
|
12
|
+
model = Fog::Brightbox::Compute::Collaboration.new(data)
|
13
13
|
new(model)
|
14
14
|
end
|
15
15
|
|
@@ -36,7 +36,7 @@ module Brightbox
|
|
36
36
|
# with a request, before updating the model
|
37
37
|
data = FirewallPolicy.conn.update_firewall_policy(policy_id, params)
|
38
38
|
|
39
|
-
model = Fog::Compute::
|
39
|
+
model = Fog::Brightbox::Compute::FirewallPolicy.new(data)
|
40
40
|
policy = FirewallPolicy.new(model)
|
41
41
|
|
42
42
|
render_table([policy], global_options)
|
@@ -19,7 +19,7 @@ shared_context "collaborating accounts" do
|
|
19
19
|
"load_balancers_limit" => 5,
|
20
20
|
"load_balancers_used" => 0
|
21
21
|
}
|
22
|
-
Fog::Compute::
|
22
|
+
Fog::Brightbox::Compute::Account.new(data)
|
23
23
|
end
|
24
24
|
|
25
25
|
# As returned from conn.user_collaborations.all
|
@@ -35,7 +35,7 @@ shared_context "collaborating accounts" do
|
|
35
35
|
"status" => "active"
|
36
36
|
}
|
37
37
|
}
|
38
|
-
Fog::Compute::
|
38
|
+
Fog::Brightbox::Compute::UserCollaboration.new(data)
|
39
39
|
end
|
40
40
|
|
41
41
|
# As returned from conn.user_collaborations.all
|
@@ -51,6 +51,6 @@ shared_context "collaborating accounts" do
|
|
51
51
|
"status" => "active"
|
52
52
|
}
|
53
53
|
}
|
54
|
-
Fog::Compute::
|
54
|
+
Fog::Brightbox::Compute::UserCollaboration.new(data)
|
55
55
|
end
|
56
56
|
end
|
@@ -13,7 +13,7 @@ describe Brightbox::Account do
|
|
13
13
|
expect(Brightbox::Account.all).to be_kind_of(Array)
|
14
14
|
|
15
15
|
Brightbox::Account.all.each do |account|
|
16
|
-
expect(account).to be_kind_of(Fog::Compute::
|
16
|
+
expect(account).to be_kind_of(Fog::Brightbox::Compute::Account)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -31,7 +31,7 @@ describe Brightbox::Account do
|
|
31
31
|
expect(Brightbox::Account.all).to be_kind_of(Array)
|
32
32
|
|
33
33
|
Brightbox::Account.all.each do |account|
|
34
|
-
expect(account).to be_kind_of(Fog::Compute::
|
34
|
+
expect(account).to be_kind_of(Fog::Brightbox::Compute::Account)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -18,7 +18,7 @@ describe Brightbox::Account do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it "returns requested account" do
|
21
|
-
expect(@account).to be_kind_of(Fog::Compute::
|
21
|
+
expect(@account).to be_kind_of(Fog::Brightbox::Compute::Account)
|
22
22
|
expect(@account.id).to eql(@account_id)
|
23
23
|
end
|
24
24
|
|
@@ -46,7 +46,7 @@ describe Brightbox::Account do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
it "returns the client's owning account" do
|
49
|
-
expect(@account).to be_kind_of(Fog::Compute::
|
49
|
+
expect(@account).to be_kind_of(Fog::Brightbox::Compute::Account)
|
50
50
|
expect(@account.id).to eql(@account_id)
|
51
51
|
end
|
52
52
|
|
@@ -7,7 +7,7 @@ describe Brightbox::Api, ".conn" do
|
|
7
7
|
|
8
8
|
context "when account is not required", vcr: true do
|
9
9
|
it "returns a 'real' fog compute instance" do
|
10
|
-
expect(Brightbox::Api.conn).to be_instance_of(Fog::Compute::
|
10
|
+
expect(Brightbox::Api.conn).to be_instance_of(Fog::Brightbox::Compute::Real)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -19,7 +19,7 @@ describe Brightbox::ConnectionManager, "#fetch_connection" do
|
|
19
19
|
|
20
20
|
context "when not requesting a scoped connection" do
|
21
21
|
it "returns a fog compute instance" do
|
22
|
-
expect(connection_manager.fetch_connection(false)).to be_kind_of(Fog::Compute::
|
22
|
+
expect(connection_manager.fetch_connection(false)).to be_kind_of(Fog::Brightbox::Compute::Real)
|
23
23
|
end
|
24
24
|
|
25
25
|
it "returns a connection without account scope" do
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
require "fog/brightbox/models/compute/database_server"
|
3
3
|
|
4
4
|
describe Brightbox::DatabaseServer, "#cloud_ips" do
|
5
|
-
let(:fog_model) { Fog::Compute::
|
5
|
+
let(:fog_model) { Fog::Brightbox::Compute::DatabaseServer.new(fog_settings) }
|
6
6
|
let(:dbs) { described_class.new(fog_model) }
|
7
7
|
|
8
8
|
context "when attribute is missing" do
|
@@ -4,7 +4,7 @@ require "fog/brightbox/models/compute/database_server"
|
|
4
4
|
describe Brightbox::DatabaseServer do
|
5
5
|
|
6
6
|
describe "#maintenance_window" do
|
7
|
-
let(:fog_model) { Fog::Compute::
|
7
|
+
let(:fog_model) { Fog::Brightbox::Compute::DatabaseServer.new(fog_settings) }
|
8
8
|
let(:dbs) { Brightbox::DatabaseServer.new(fog_model) }
|
9
9
|
|
10
10
|
context "when default values" do
|
@@ -141,7 +141,7 @@ describe Brightbox::UserCollaboration do
|
|
141
141
|
# Collection#load is private in fog so we can't just pass our collection
|
142
142
|
# into get the correct object initialised.
|
143
143
|
api_response_data.map do |datum|
|
144
|
-
Fog::Compute::
|
144
|
+
Fog::Brightbox::Compute::UserCollaboration.new(datum)
|
145
145
|
end
|
146
146
|
end
|
147
147
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightbox-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Leach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 1970-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-brightbox
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '1.0'
|
19
|
+
version: 1.1.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '1.0'
|
26
|
+
version: 1.1.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: fog-core
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,16 +182,16 @@ dependencies:
|
|
188
182
|
name: rspec
|
189
183
|
requirement: !ruby/object:Gem::Requirement
|
190
184
|
requirements:
|
191
|
-
- - "
|
185
|
+
- - ">="
|
192
186
|
- !ruby/object:Gem::Version
|
193
|
-
version: '
|
187
|
+
version: '0'
|
194
188
|
type: :development
|
195
189
|
prerelease: false
|
196
190
|
version_requirements: !ruby/object:Gem::Requirement
|
197
191
|
requirements:
|
198
|
-
- - "
|
192
|
+
- - ">="
|
199
193
|
- !ruby/object:Gem::Version
|
200
|
-
version: '
|
194
|
+
version: '0'
|
201
195
|
- !ruby/object:Gem::Dependency
|
202
196
|
name: vcr
|
203
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -763,7 +757,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
763
757
|
requirements:
|
764
758
|
- - ">="
|
765
759
|
- !ruby/object:Gem::Version
|
766
|
-
version:
|
760
|
+
version: '2.0'
|
767
761
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
768
762
|
requirements:
|
769
763
|
- - ">="
|