crowbar-client 2.4.3 → 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/CHANGELOG.md +11 -0
- data/lib/crowbar/client/app/repository.rb +12 -10
- data/lib/crowbar/client/app/role.rb +2 -2
- data/lib/crowbar/client/command/proposal/create.rb +2 -2
- data/lib/crowbar/client/command/repository/list.rb +8 -5
- data/lib/crowbar/client/command/role/show.rb +2 -2
- data/lib/crowbar/client/config.rb +1 -1
- data/lib/crowbar/client/mixin/barclamp.rb +1 -1
- data/lib/crowbar/client/request.rb +3 -3
- data/lib/crowbar/client/request/backup/create.rb +16 -2
- data/lib/crowbar/client/request/backup/delete.rb +15 -1
- data/lib/crowbar/client/request/backup/download.rb +3 -3
- data/lib/crowbar/client/request/backup/list.rb +15 -1
- data/lib/crowbar/client/request/backup/restore.rb +15 -1
- data/lib/crowbar/client/request/backup/upload.rb +23 -7
- data/lib/crowbar/client/request/base.rb +35 -53
- data/lib/crowbar/client/request/batch/build.rb +5 -4
- data/lib/crowbar/client/request/proposal/create.rb +1 -1
- data/lib/crowbar/client/request/repository/activate.rb +1 -0
- data/lib/crowbar/client/request/repository/deactivate.rb +1 -0
- data/lib/crowbar/client/request/rest.rb +45 -0
- data/lib/crowbar/client/util.rb +3 -0
- data/lib/crowbar/client/util/apiversion.rb +36 -0
- data/lib/crowbar/client/version.rb +3 -3
- data/spec/crowbar/client/command/proposal/create_spec.rb +3 -3
- data/spec/crowbar/client/command/proposal/edit_spec.rb +3 -3
- data/spec/crowbar/client/request/backup/create_spec.rb +6 -4
- data/spec/crowbar/client/request/backup/delete_spec.rb +3 -3
- data/spec/crowbar/client/request/backup/download_spec.rb +1 -1
- data/spec/crowbar/client/request/backup/list_spec.rb +3 -3
- data/spec/crowbar/client/request/backup/restore_spec.rb +3 -3
- data/spec/crowbar/client/request/backup/upload_spec.rb +13 -4
- data/spec/crowbar/client/request/batch/build_spec.rb +7 -1
- data/spec/crowbar/client/request/repository/activate_spec.rb +2 -0
- data/spec/crowbar/client/request/repository/deactivate_spec.rb +2 -0
- data/spec/support/request_examples.rb +12 -14
- metadata +118 -104
- data/lib/crowbar/client/request/party.rb +0 -82
@@ -14,6 +14,8 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
#
|
16
16
|
|
17
|
+
require "easy_diff"
|
18
|
+
|
17
19
|
module Crowbar
|
18
20
|
module Client
|
19
21
|
module Request
|
@@ -22,15 +24,14 @@ module Crowbar
|
|
22
24
|
# Implementation for the batch build request
|
23
25
|
#
|
24
26
|
class Build < Base
|
25
|
-
def
|
26
|
-
|
27
|
-
headers: headers,
|
27
|
+
def content
|
28
|
+
super.easy_merge!(
|
28
29
|
query: {
|
29
30
|
includes: attrs.includes,
|
30
31
|
excludes: attrs.excludes,
|
31
32
|
file: attrs.file
|
32
33
|
}
|
33
|
-
|
34
|
+
)
|
34
35
|
end
|
35
36
|
|
36
37
|
#
|
@@ -0,0 +1,45 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2016, SUSE Linux GmbH
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
require "rest-client"
|
18
|
+
|
19
|
+
module Crowbar
|
20
|
+
module Client
|
21
|
+
module Request
|
22
|
+
class Rest < RestClient::Resource
|
23
|
+
def initialize(options = {})
|
24
|
+
url = options.fetch(:url, "")
|
25
|
+
user = options.fetch(:user, Config.username)
|
26
|
+
password = options.fetch(:password, Config.password)
|
27
|
+
auth_type = options.fetch(:auth_type, :digest)
|
28
|
+
|
29
|
+
Config.debug && RestClient.log = "stdout"
|
30
|
+
|
31
|
+
super(
|
32
|
+
[
|
33
|
+
Config.server,
|
34
|
+
"/",
|
35
|
+
url
|
36
|
+
].join(""),
|
37
|
+
user: user,
|
38
|
+
password: password,
|
39
|
+
auth_type: auth_type
|
40
|
+
)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
data/lib/crowbar/client/util.rb
CHANGED
@@ -0,0 +1,36 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2015, SUSE Linux GmbH
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
module Crowbar
|
18
|
+
module Client
|
19
|
+
module Util
|
20
|
+
class ApiVersion
|
21
|
+
attr_accessor :version
|
22
|
+
|
23
|
+
def initialize(version)
|
24
|
+
@version = version
|
25
|
+
end
|
26
|
+
|
27
|
+
def headers
|
28
|
+
{
|
29
|
+
"Accept" => "application/vnd.crowbar.v#{version}+json",
|
30
|
+
"Content-Type" => "application/vnd.crowbar.v#{version}+json"
|
31
|
+
}
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -46,9 +46,9 @@ describe "Crowbar::Client::Command::Proposal::Create" do
|
|
46
46
|
headers: {}
|
47
47
|
)
|
48
48
|
|
49
|
-
expect(subject.
|
50
|
-
|
51
|
-
::Crowbar::Client::
|
49
|
+
expect(subject.class).to(
|
50
|
+
eq(
|
51
|
+
::Crowbar::Client::Command::Proposal::Create
|
52
52
|
)
|
53
53
|
)
|
54
54
|
end
|
@@ -47,9 +47,9 @@ describe "Crowbar::Client::Command::Proposal::Edit" do
|
|
47
47
|
headers: {}
|
48
48
|
)
|
49
49
|
|
50
|
-
expect(subject.
|
51
|
-
|
52
|
-
::Crowbar::Client::
|
50
|
+
expect(subject.class).to(
|
51
|
+
eq(
|
52
|
+
::Crowbar::Client::Command::Proposal::Edit
|
53
53
|
)
|
54
54
|
)
|
55
55
|
end
|
@@ -32,7 +32,9 @@ describe "Crowbar::Client::Request::Backup::Create" do
|
|
32
32
|
|
33
33
|
let!(:params) do
|
34
34
|
{
|
35
|
-
|
35
|
+
backup: {
|
36
|
+
name: "test-backup"
|
37
|
+
}
|
36
38
|
}
|
37
39
|
end
|
38
40
|
|
@@ -41,13 +43,13 @@ describe "Crowbar::Client::Request::Backup::Create" do
|
|
41
43
|
end
|
42
44
|
|
43
45
|
let!(:url) do
|
44
|
-
"
|
46
|
+
"api/crowbar/backups"
|
45
47
|
end
|
46
48
|
|
47
49
|
let!(:headers) do
|
48
50
|
{
|
49
|
-
"
|
50
|
-
"
|
51
|
+
"Accept" => "application/vnd.crowbar.v2.0+json",
|
52
|
+
"Content-Type" => "application/vnd.crowbar.v2.0+json"
|
51
53
|
}
|
52
54
|
end
|
53
55
|
end
|
@@ -40,13 +40,13 @@ describe "Crowbar::Client::Request::Backup::Delete" do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
let!(:url) do
|
43
|
-
"
|
43
|
+
"api/crowbar/backups/foo"
|
44
44
|
end
|
45
45
|
|
46
46
|
let!(:headers) do
|
47
47
|
{
|
48
|
-
"
|
49
|
-
"
|
48
|
+
"Accept" => "application/vnd.crowbar.v2.0+json",
|
49
|
+
"Content-Type" => "application/vnd.crowbar.v2.0+json"
|
50
50
|
}
|
51
51
|
end
|
52
52
|
end
|
@@ -37,13 +37,13 @@ describe "Crowbar::Client::Request::Backup::List" do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
let!(:url) do
|
40
|
-
"
|
40
|
+
"api/crowbar/backups"
|
41
41
|
end
|
42
42
|
|
43
43
|
let!(:headers) do
|
44
44
|
{
|
45
|
-
"
|
46
|
-
"
|
45
|
+
"Accept" => "application/vnd.crowbar.v2.0+json",
|
46
|
+
"Content-Type" => "application/vnd.crowbar.v2.0+json"
|
47
47
|
}
|
48
48
|
end
|
49
49
|
end
|
@@ -39,13 +39,13 @@ describe "Crowbar::Client::Request::Backup::Restore" do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
let!(:url) do
|
42
|
-
"
|
42
|
+
"api/crowbar/backups/foo/restore"
|
43
43
|
end
|
44
44
|
|
45
45
|
let!(:headers) do
|
46
46
|
{
|
47
|
-
"
|
48
|
-
"
|
47
|
+
"Accept" => "application/vnd.crowbar.v2.0+json",
|
48
|
+
"Content-Type" => "application/vnd.crowbar.v2.0+json"
|
49
49
|
}
|
50
50
|
end
|
51
51
|
end
|
@@ -28,12 +28,21 @@ describe "Crowbar::Client::Request::Backup::Upload" do
|
|
28
28
|
{
|
29
29
|
file: fixture_path(
|
30
30
|
"upload.tgz"
|
31
|
-
).open
|
31
|
+
).open.path
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
35
35
|
let!(:params) do
|
36
|
-
{
|
36
|
+
{
|
37
|
+
backup: {
|
38
|
+
payload: {
|
39
|
+
multipart: true,
|
40
|
+
file: fixture_path(
|
41
|
+
"upload.tgz"
|
42
|
+
).open.path
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
37
46
|
end
|
38
47
|
|
39
48
|
let!(:method) do
|
@@ -41,12 +50,12 @@ describe "Crowbar::Client::Request::Backup::Upload" do
|
|
41
50
|
end
|
42
51
|
|
43
52
|
let!(:url) do
|
44
|
-
"
|
53
|
+
"api/crowbar/backups/upload"
|
45
54
|
end
|
46
55
|
|
47
56
|
let!(:headers) do
|
48
57
|
{
|
49
|
-
"Accept" => "application/json",
|
58
|
+
"Accept" => "application/vnd.crowbar.v2.0+json",
|
50
59
|
"Content-Length" => "468",
|
51
60
|
"Content-Type" => "multipart/form-data; boundary=-----------RubyMultipartPost"
|
52
61
|
}
|
@@ -27,6 +27,7 @@ describe "Crowbar::Client::Request::Repository::Activate" do
|
|
27
27
|
let!(:attrs) do
|
28
28
|
{
|
29
29
|
platform: "suse-12.0",
|
30
|
+
arch: "x86_64",
|
30
31
|
repo: "sles12-pool"
|
31
32
|
}
|
32
33
|
end
|
@@ -34,6 +35,7 @@ describe "Crowbar::Client::Request::Repository::Activate" do
|
|
34
35
|
let!(:params) do
|
35
36
|
{
|
36
37
|
platform: "suse-12.0",
|
38
|
+
arch: "x86_64",
|
37
39
|
repo: "sles12-pool"
|
38
40
|
}
|
39
41
|
end
|
@@ -27,6 +27,7 @@ describe "Crowbar::Client::Request::Repository::Deactivate" do
|
|
27
27
|
let!(:attrs) do
|
28
28
|
{
|
29
29
|
platform: "suse-12.0",
|
30
|
+
arch: "x86_64",
|
30
31
|
repo: "sles12-pool"
|
31
32
|
}
|
32
33
|
end
|
@@ -34,6 +35,7 @@ describe "Crowbar::Client::Request::Repository::Deactivate" do
|
|
34
35
|
let!(:params) do
|
35
36
|
{
|
36
37
|
platform: "suse-12.0",
|
38
|
+
arch: "x86_64",
|
37
39
|
repo: "sles12-pool"
|
38
40
|
}
|
39
41
|
end
|
@@ -43,16 +43,18 @@ shared_examples "a request class" do |with_body|
|
|
43
43
|
|
44
44
|
it "submits payload to an API" do
|
45
45
|
content = if with_body
|
46
|
-
|
47
|
-
body: params.to_json,
|
48
|
-
headers: headers
|
49
|
-
}
|
46
|
+
params
|
50
47
|
else
|
51
|
-
|
52
|
-
headers: headers
|
53
|
-
}
|
48
|
+
""
|
54
49
|
end
|
55
50
|
|
51
|
+
allow(Crowbar::Client::Request::Rest).to receive(:new).and_return(
|
52
|
+
Crowbar::Client::Request::Rest.new(
|
53
|
+
url: url,
|
54
|
+
auth_type: nil
|
55
|
+
)
|
56
|
+
)
|
57
|
+
|
56
58
|
stub_request(
|
57
59
|
method,
|
58
60
|
"http://crowbar:80/#{url}"
|
@@ -65,14 +67,10 @@ shared_examples "a request class" do |with_body|
|
|
65
67
|
subject.process
|
66
68
|
|
67
69
|
expect(
|
68
|
-
|
70
|
+
Crowbar::Client::Request::Rest.new(url: url).send(
|
69
71
|
method,
|
70
|
-
"http://crowbar:80/#{url}"
|
71
|
-
).with(
|
72
72
|
content
|
73
|
-
)
|
74
|
-
).to(
|
75
|
-
have_been_made.once
|
76
|
-
)
|
73
|
+
).code
|
74
|
+
).to eq(200)
|
77
75
|
end
|
78
76
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crowbar-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Boerger
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -131,19 +131,33 @@ dependencies:
|
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: 3.0.0
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
|
-
name:
|
134
|
+
name: rest-client
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - '='
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.
|
139
|
+
version: 2.0.0
|
140
140
|
type: :runtime
|
141
141
|
prerelease: false
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - '='
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 0.
|
146
|
+
version: 2.0.0
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: net-http-digest_auth
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '1.4'
|
154
|
+
type: :runtime
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - "~>"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '1.4'
|
147
161
|
- !ruby/object:Gem::Dependency
|
148
162
|
name: inifile
|
149
163
|
requirement: !ruby/object:Gem::Requirement
|
@@ -357,7 +371,6 @@ files:
|
|
357
371
|
- lib/crowbar/client/request/node/shutdown.rb
|
358
372
|
- lib/crowbar/client/request/node/status.rb
|
359
373
|
- lib/crowbar/client/request/node/transition.rb
|
360
|
-
- lib/crowbar/client/request/party.rb
|
361
374
|
- lib/crowbar/client/request/proposal.rb
|
362
375
|
- lib/crowbar/client/request/proposal/commit.rb
|
363
376
|
- lib/crowbar/client/request/proposal/create.rb
|
@@ -374,6 +387,7 @@ files:
|
|
374
387
|
- lib/crowbar/client/request/repository/deactivate.rb
|
375
388
|
- lib/crowbar/client/request/repository/deactivate_all.rb
|
376
389
|
- lib/crowbar/client/request/repository/list.rb
|
390
|
+
- lib/crowbar/client/request/rest.rb
|
377
391
|
- lib/crowbar/client/request/role.rb
|
378
392
|
- lib/crowbar/client/request/role/list.rb
|
379
393
|
- lib/crowbar/client/request/role/show.rb
|
@@ -384,6 +398,7 @@ files:
|
|
384
398
|
- lib/crowbar/client/request/virtual_ip/allocate.rb
|
385
399
|
- lib/crowbar/client/request/virtual_ip/deallocate.rb
|
386
400
|
- lib/crowbar/client/util.rb
|
401
|
+
- lib/crowbar/client/util/apiversion.rb
|
387
402
|
- lib/crowbar/client/util/editor.rb
|
388
403
|
- lib/crowbar/client/util/runner.rb
|
389
404
|
- lib/crowbar/client/version.rb
|
@@ -521,123 +536,122 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
521
536
|
version: '0'
|
522
537
|
requirements: []
|
523
538
|
rubyforge_project:
|
524
|
-
rubygems_version: 2.2.
|
539
|
+
rubygems_version: 2.2.2
|
525
540
|
signing_key:
|
526
541
|
specification_version: 4
|
527
542
|
summary: Crowbar commandline client
|
528
543
|
test_files:
|
529
544
|
- spec/spec_helper.rb
|
530
|
-
- spec/support/helper_methods.rb
|
531
|
-
- spec/support/request_examples.rb
|
532
|
-
- spec/support/command_examples.rb
|
533
|
-
- spec/support/command_context.rb
|
534
545
|
- spec/crowbar/client_spec.rb
|
535
546
|
- spec/crowbar/client/util/editor_spec.rb
|
536
547
|
- spec/crowbar/client/util/runner_spec.rb
|
537
|
-
- spec/crowbar/client/
|
538
|
-
- spec/crowbar/client/request/backup/create_spec.rb
|
539
|
-
- spec/crowbar/client/request/backup/upload_spec.rb
|
540
|
-
- spec/crowbar/client/request/backup/download_spec.rb
|
541
|
-
- spec/crowbar/client/request/backup/restore_spec.rb
|
542
|
-
- spec/crowbar/client/request/backup/delete_spec.rb
|
543
|
-
- spec/crowbar/client/request/virtual_ip/allocate_spec.rb
|
544
|
-
- spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
|
545
|
-
- spec/crowbar/client/request/role/list_spec.rb
|
546
|
-
- spec/crowbar/client/request/role/show_spec.rb
|
547
|
-
- spec/crowbar/client/request/interface/enable_spec.rb
|
548
|
-
- spec/crowbar/client/request/interface/disable_spec.rb
|
549
|
-
- spec/crowbar/client/request/batch/export_spec.rb
|
550
|
-
- spec/crowbar/client/request/batch/build_spec.rb
|
551
|
-
- spec/crowbar/client/request/host_ip/allocate_spec.rb
|
552
|
-
- spec/crowbar/client/request/host_ip/deallocate_spec.rb
|
553
|
-
- spec/crowbar/client/request/proposal/list_spec.rb
|
554
|
-
- spec/crowbar/client/request/proposal/create_spec.rb
|
555
|
-
- spec/crowbar/client/request/proposal/commit_spec.rb
|
556
|
-
- spec/crowbar/client/request/proposal/show_spec.rb
|
557
|
-
- spec/crowbar/client/request/proposal/reset_spec.rb
|
558
|
-
- spec/crowbar/client/request/proposal/template_spec.rb
|
559
|
-
- spec/crowbar/client/request/proposal/dequeue_spec.rb
|
560
|
-
- spec/crowbar/client/request/proposal/delete_spec.rb
|
561
|
-
- spec/crowbar/client/request/proposal/edit_spec.rb
|
562
|
-
- spec/crowbar/client/request/barclamp/list_spec.rb
|
563
|
-
- spec/crowbar/client/request/node/list_spec.rb
|
564
|
-
- spec/crowbar/client/request/node/transition_spec.rb
|
565
|
-
- spec/crowbar/client/request/node/role_spec.rb
|
566
|
-
- spec/crowbar/client/request/node/rename_spec.rb
|
567
|
-
- spec/crowbar/client/request/node/action_spec.rb
|
568
|
-
- spec/crowbar/client/request/node/show_spec.rb
|
569
|
-
- spec/crowbar/client/request/node/status_spec.rb
|
570
|
-
- spec/crowbar/client/request/node/delete_spec.rb
|
571
|
-
- spec/crowbar/client/request/node/group_spec.rb
|
572
|
-
- spec/crowbar/client/request/repository/list_spec.rb
|
573
|
-
- spec/crowbar/client/request/repository/activate_all_spec.rb
|
574
|
-
- spec/crowbar/client/request/repository/deactivate_spec.rb
|
575
|
-
- spec/crowbar/client/request/repository/activate_spec.rb
|
576
|
-
- spec/crowbar/client/request/repository/deactivate_all_spec.rb
|
577
|
-
- spec/crowbar/client/request/installer/status_spec.rb
|
578
|
-
- spec/crowbar/client/request/installer/start_spec.rb
|
579
|
-
- spec/crowbar/client/request/server/api_spec.rb
|
580
|
-
- spec/crowbar/client/request/server/check_spec.rb
|
581
|
-
- spec/crowbar/client/request/party_spec.rb
|
548
|
+
- spec/crowbar/client/filter/hash_spec.rb
|
582
549
|
- spec/crowbar/client/filter/array_spec.rb
|
583
550
|
- spec/crowbar/client/filter/subset_spec.rb
|
584
|
-
- spec/crowbar/client/filter/hash_spec.rb
|
585
551
|
- spec/crowbar/client/app_spec.rb
|
586
|
-
- spec/crowbar/client/command/
|
587
|
-
- spec/crowbar/client/command/
|
588
|
-
- spec/crowbar/client/command/
|
589
|
-
- spec/crowbar/client/command/
|
590
|
-
- spec/crowbar/client/command/backup/restore_spec.rb
|
591
|
-
- spec/crowbar/client/command/backup/delete_spec.rb
|
592
|
-
- spec/crowbar/client/command/virtual_ip/allocate_spec.rb
|
552
|
+
- spec/crowbar/client/command/server/api_spec.rb
|
553
|
+
- spec/crowbar/client/command/server/check_spec.rb
|
554
|
+
- spec/crowbar/client/command/installer/start_spec.rb
|
555
|
+
- spec/crowbar/client/command/installer/status_spec.rb
|
593
556
|
- spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
|
594
|
-
- spec/crowbar/client/command/
|
595
|
-
- spec/crowbar/client/command/role/show_spec.rb
|
596
|
-
- spec/crowbar/client/command/interface/enable_spec.rb
|
597
|
-
- spec/crowbar/client/command/interface/disable_spec.rb
|
598
|
-
- spec/crowbar/client/command/batch/export_spec.rb
|
557
|
+
- spec/crowbar/client/command/virtual_ip/allocate_spec.rb
|
599
558
|
- spec/crowbar/client/command/batch/build_spec.rb
|
600
|
-
- spec/crowbar/client/command/
|
559
|
+
- spec/crowbar/client/command/batch/export_spec.rb
|
601
560
|
- spec/crowbar/client/command/host_ip/deallocate_spec.rb
|
602
|
-
- spec/crowbar/client/command/
|
603
|
-
- spec/crowbar/client/command/
|
604
|
-
- spec/crowbar/client/command/
|
605
|
-
- spec/crowbar/client/command/
|
606
|
-
- spec/crowbar/client/command/
|
607
|
-
- spec/crowbar/client/command/
|
608
|
-
- spec/crowbar/client/command/
|
609
|
-
- spec/crowbar/client/command/
|
610
|
-
- spec/crowbar/client/command/barclamp/list_spec.rb
|
611
|
-
- spec/crowbar/client/command/node/list_spec.rb
|
612
|
-
- spec/crowbar/client/command/node/allocate_spec.rb
|
613
|
-
- spec/crowbar/client/command/node/transition_spec.rb
|
561
|
+
- spec/crowbar/client/command/host_ip/allocate_spec.rb
|
562
|
+
- spec/crowbar/client/command/repository/activate_all_spec.rb
|
563
|
+
- spec/crowbar/client/command/repository/list_spec.rb
|
564
|
+
- spec/crowbar/client/command/repository/deactivate_spec.rb
|
565
|
+
- spec/crowbar/client/command/repository/deactivate_all_spec.rb
|
566
|
+
- spec/crowbar/client/command/repository/activate_spec.rb
|
567
|
+
- spec/crowbar/client/command/interface/enable_spec.rb
|
568
|
+
- spec/crowbar/client/command/interface/disable_spec.rb
|
614
569
|
- spec/crowbar/client/command/node/shutdown_spec.rb
|
570
|
+
- spec/crowbar/client/command/node/rename_spec.rb
|
615
571
|
- spec/crowbar/client/command/node/hardware_spec.rb
|
572
|
+
- spec/crowbar/client/command/node/list_spec.rb
|
573
|
+
- spec/crowbar/client/command/node/poweron_spec.rb
|
574
|
+
- spec/crowbar/client/command/node/group_spec.rb
|
616
575
|
- spec/crowbar/client/command/node/powercycle_spec.rb
|
576
|
+
- spec/crowbar/client/command/node/reinstall_spec.rb
|
617
577
|
- spec/crowbar/client/command/node/role_spec.rb
|
578
|
+
- spec/crowbar/client/command/node/allocate_spec.rb
|
579
|
+
- spec/crowbar/client/command/node/reset_spec.rb
|
580
|
+
- spec/crowbar/client/command/node/delete_spec.rb
|
618
581
|
- spec/crowbar/client/command/node/reboot_spec.rb
|
619
|
-
- spec/crowbar/client/command/node/
|
582
|
+
- spec/crowbar/client/command/node/status_spec.rb
|
583
|
+
- spec/crowbar/client/command/node/poweroff_spec.rb
|
620
584
|
- spec/crowbar/client/command/node/show_spec.rb
|
621
585
|
- spec/crowbar/client/command/node/identify_spec.rb
|
622
|
-
- spec/crowbar/client/command/node/
|
623
|
-
- spec/crowbar/client/command/
|
624
|
-
- spec/crowbar/client/command/
|
625
|
-
- spec/crowbar/client/command/
|
626
|
-
- spec/crowbar/client/command/
|
627
|
-
- spec/crowbar/client/command/
|
628
|
-
- spec/crowbar/client/command/
|
629
|
-
- spec/crowbar/client/command/
|
630
|
-
- spec/crowbar/client/command/
|
631
|
-
- spec/crowbar/client/command/
|
632
|
-
- spec/crowbar/client/command/
|
633
|
-
- spec/crowbar/client/command/
|
634
|
-
- spec/crowbar/client/command/
|
635
|
-
- spec/crowbar/client/command/
|
636
|
-
- spec/crowbar/client/command/
|
637
|
-
- spec/crowbar/client/command/
|
638
|
-
- spec/crowbar/client/
|
586
|
+
- spec/crowbar/client/command/node/transition_spec.rb
|
587
|
+
- spec/crowbar/client/command/role/list_spec.rb
|
588
|
+
- spec/crowbar/client/command/role/show_spec.rb
|
589
|
+
- spec/crowbar/client/command/proposal/dequeue_spec.rb
|
590
|
+
- spec/crowbar/client/command/proposal/list_spec.rb
|
591
|
+
- spec/crowbar/client/command/proposal/create_spec.rb
|
592
|
+
- spec/crowbar/client/command/proposal/reset_spec.rb
|
593
|
+
- spec/crowbar/client/command/proposal/delete_spec.rb
|
594
|
+
- spec/crowbar/client/command/proposal/edit_spec.rb
|
595
|
+
- spec/crowbar/client/command/proposal/show_spec.rb
|
596
|
+
- spec/crowbar/client/command/proposal/commit_spec.rb
|
597
|
+
- spec/crowbar/client/command/backup/list_spec.rb
|
598
|
+
- spec/crowbar/client/command/backup/create_spec.rb
|
599
|
+
- spec/crowbar/client/command/backup/download_spec.rb
|
600
|
+
- spec/crowbar/client/command/backup/delete_spec.rb
|
601
|
+
- spec/crowbar/client/command/backup/restore_spec.rb
|
602
|
+
- spec/crowbar/client/command/backup/upload_spec.rb
|
603
|
+
- spec/crowbar/client/command/barclamp/list_spec.rb
|
639
604
|
- spec/crowbar/client/formatter/hash_spec.rb
|
605
|
+
- spec/crowbar/client/formatter/array_spec.rb
|
640
606
|
- spec/crowbar/client/formatter/nested_spec.rb
|
641
|
-
- spec/
|
607
|
+
- spec/crowbar/client/request/server/api_spec.rb
|
608
|
+
- spec/crowbar/client/request/server/check_spec.rb
|
609
|
+
- spec/crowbar/client/request/installer/start_spec.rb
|
610
|
+
- spec/crowbar/client/request/installer/status_spec.rb
|
611
|
+
- spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
|
612
|
+
- spec/crowbar/client/request/virtual_ip/allocate_spec.rb
|
613
|
+
- spec/crowbar/client/request/batch/build_spec.rb
|
614
|
+
- spec/crowbar/client/request/batch/export_spec.rb
|
615
|
+
- spec/crowbar/client/request/host_ip/deallocate_spec.rb
|
616
|
+
- spec/crowbar/client/request/host_ip/allocate_spec.rb
|
617
|
+
- spec/crowbar/client/request/repository/activate_all_spec.rb
|
618
|
+
- spec/crowbar/client/request/repository/list_spec.rb
|
619
|
+
- spec/crowbar/client/request/repository/deactivate_spec.rb
|
620
|
+
- spec/crowbar/client/request/repository/deactivate_all_spec.rb
|
621
|
+
- spec/crowbar/client/request/repository/activate_spec.rb
|
622
|
+
- spec/crowbar/client/request/party_spec.rb
|
623
|
+
- spec/crowbar/client/request/interface/enable_spec.rb
|
624
|
+
- spec/crowbar/client/request/interface/disable_spec.rb
|
625
|
+
- spec/crowbar/client/request/node/action_spec.rb
|
626
|
+
- spec/crowbar/client/request/node/rename_spec.rb
|
627
|
+
- spec/crowbar/client/request/node/list_spec.rb
|
628
|
+
- spec/crowbar/client/request/node/group_spec.rb
|
629
|
+
- spec/crowbar/client/request/node/role_spec.rb
|
630
|
+
- spec/crowbar/client/request/node/delete_spec.rb
|
631
|
+
- spec/crowbar/client/request/node/status_spec.rb
|
632
|
+
- spec/crowbar/client/request/node/show_spec.rb
|
633
|
+
- spec/crowbar/client/request/node/transition_spec.rb
|
634
|
+
- spec/crowbar/client/request/role/list_spec.rb
|
635
|
+
- spec/crowbar/client/request/role/show_spec.rb
|
636
|
+
- spec/crowbar/client/request/proposal/dequeue_spec.rb
|
637
|
+
- spec/crowbar/client/request/proposal/template_spec.rb
|
638
|
+
- spec/crowbar/client/request/proposal/list_spec.rb
|
639
|
+
- spec/crowbar/client/request/proposal/create_spec.rb
|
640
|
+
- spec/crowbar/client/request/proposal/reset_spec.rb
|
641
|
+
- spec/crowbar/client/request/proposal/delete_spec.rb
|
642
|
+
- spec/crowbar/client/request/proposal/edit_spec.rb
|
643
|
+
- spec/crowbar/client/request/proposal/show_spec.rb
|
644
|
+
- spec/crowbar/client/request/proposal/commit_spec.rb
|
645
|
+
- spec/crowbar/client/request/backup/list_spec.rb
|
646
|
+
- spec/crowbar/client/request/backup/create_spec.rb
|
647
|
+
- spec/crowbar/client/request/backup/download_spec.rb
|
648
|
+
- spec/crowbar/client/request/backup/delete_spec.rb
|
649
|
+
- spec/crowbar/client/request/backup/restore_spec.rb
|
650
|
+
- spec/crowbar/client/request/backup/upload_spec.rb
|
651
|
+
- spec/crowbar/client/request/barclamp/list_spec.rb
|
652
|
+
- spec/support/command_examples.rb
|
653
|
+
- spec/support/helper_methods.rb
|
654
|
+
- spec/support/request_examples.rb
|
655
|
+
- spec/support/command_context.rb
|
642
656
|
- spec/fixtures/batch.yml
|
643
|
-
|
657
|
+
- spec/fixtures/upload.tgz
|