crowbar-client 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +18 -6
- data/lib/crowbar/client.rb +54 -0
- data/lib/crowbar/client/app.rb +3 -0
- data/lib/crowbar/client/app/backup.rb +62 -1
- data/lib/crowbar/client/app/barclamp.rb +10 -0
- data/lib/crowbar/client/app/base.rb +50 -0
- data/lib/crowbar/client/app/batch.rb +25 -0
- data/lib/crowbar/client/app/entry.rb +26 -1
- data/lib/crowbar/client/app/host_ip.rb +24 -0
- data/lib/crowbar/client/app/installer.rb +16 -1
- data/lib/crowbar/client/app/interface.rb +21 -0
- data/lib/crowbar/client/app/network.rb +3 -0
- data/lib/crowbar/client/app/node.rb +3 -0
- data/lib/crowbar/client/app/proposal.rb +3 -0
- data/lib/crowbar/client/app/repository.rb +3 -0
- data/lib/crowbar/client/app/role.rb +3 -0
- data/lib/crowbar/client/app/server.rb +56 -0
- data/lib/crowbar/client/app/virtual_ip.rb +24 -0
- data/lib/crowbar/client/command.rb +3 -0
- data/lib/crowbar/client/command/backup.rb +3 -0
- data/lib/crowbar/client/command/backup/create.rb +3 -0
- data/lib/crowbar/client/command/backup/delete.rb +3 -0
- data/lib/crowbar/client/command/backup/download.rb +3 -0
- data/lib/crowbar/client/command/backup/list.rb +3 -0
- data/lib/crowbar/client/command/backup/restore.rb +3 -0
- data/lib/crowbar/client/command/backup/upload.rb +3 -0
- data/lib/crowbar/client/command/barclamp.rb +3 -0
- data/lib/crowbar/client/command/barclamp/list.rb +3 -0
- data/lib/crowbar/client/command/base.rb +3 -0
- data/lib/crowbar/client/command/batch.rb +3 -0
- data/lib/crowbar/client/command/batch/build.rb +3 -0
- data/lib/crowbar/client/command/batch/export.rb +3 -0
- data/lib/crowbar/client/command/host_ip.rb +3 -0
- data/lib/crowbar/client/command/host_ip/allocate.rb +3 -0
- data/lib/crowbar/client/command/host_ip/deallocate.rb +3 -0
- data/lib/crowbar/client/command/installer.rb +3 -0
- data/lib/crowbar/client/command/installer/start.rb +3 -0
- data/lib/crowbar/client/command/installer/status.rb +3 -0
- data/lib/crowbar/client/command/interface.rb +3 -0
- data/lib/crowbar/client/command/interface/disable.rb +3 -0
- data/lib/crowbar/client/command/interface/enable.rb +3 -0
- data/lib/crowbar/client/command/node.rb +3 -0
- data/lib/crowbar/client/command/node/allocate.rb +4 -1
- data/lib/crowbar/client/command/node/delete.rb +3 -0
- data/lib/crowbar/client/command/node/group.rb +3 -0
- data/lib/crowbar/client/command/node/hardware.rb +4 -1
- data/lib/crowbar/client/command/node/identify.rb +4 -1
- data/lib/crowbar/client/command/node/list.rb +3 -0
- data/lib/crowbar/client/command/node/powercycle.rb +4 -1
- data/lib/crowbar/client/command/node/poweroff.rb +4 -1
- data/lib/crowbar/client/command/node/poweron.rb +4 -1
- data/lib/crowbar/client/command/node/reboot.rb +4 -1
- data/lib/crowbar/client/command/node/reinstall.rb +4 -1
- data/lib/crowbar/client/command/node/rename.rb +3 -0
- data/lib/crowbar/client/command/node/reset.rb +4 -1
- data/lib/crowbar/client/command/node/role.rb +3 -0
- data/lib/crowbar/client/command/node/show.rb +3 -0
- data/lib/crowbar/client/command/node/shutdown.rb +4 -1
- data/lib/crowbar/client/command/node/status.rb +3 -0
- data/lib/crowbar/client/command/node/transition.rb +3 -0
- data/lib/crowbar/client/command/proposal.rb +3 -0
- data/lib/crowbar/client/command/proposal/commit.rb +3 -0
- data/lib/crowbar/client/command/proposal/create.rb +3 -0
- data/lib/crowbar/client/command/proposal/delete.rb +3 -0
- data/lib/crowbar/client/command/proposal/dequeue.rb +3 -0
- data/lib/crowbar/client/command/proposal/edit.rb +3 -0
- data/lib/crowbar/client/command/proposal/list.rb +3 -0
- data/lib/crowbar/client/command/proposal/reset.rb +3 -0
- data/lib/crowbar/client/command/proposal/show.rb +3 -0
- data/lib/crowbar/client/command/repository.rb +3 -0
- data/lib/crowbar/client/command/repository/activate.rb +3 -0
- data/lib/crowbar/client/command/repository/activate_all.rb +3 -0
- data/lib/crowbar/client/command/repository/deactivate.rb +3 -0
- data/lib/crowbar/client/command/repository/deactivate_all.rb +3 -0
- data/lib/crowbar/client/command/repository/list.rb +3 -0
- data/lib/crowbar/client/command/role.rb +3 -0
- data/lib/crowbar/client/command/role/list.rb +3 -0
- data/lib/crowbar/client/command/role/show.rb +3 -0
- data/lib/crowbar/client/command/server.rb +5 -0
- data/lib/crowbar/client/command/server/api.rb +3 -0
- data/lib/crowbar/client/command/server/check.rb +75 -0
- data/lib/crowbar/client/command/virtual_ip.rb +3 -0
- data/lib/crowbar/client/command/virtual_ip/allocate.rb +3 -0
- data/lib/crowbar/client/command/virtual_ip/deallocate.rb +3 -0
- data/lib/crowbar/client/config.rb +128 -1
- data/lib/crowbar/client/filter.rb +3 -0
- data/lib/crowbar/client/filter/array.rb +3 -0
- data/lib/crowbar/client/filter/base.rb +3 -0
- data/lib/crowbar/client/filter/hash.rb +3 -0
- data/lib/crowbar/client/filter/subset.rb +3 -0
- data/lib/crowbar/client/formatter.rb +3 -0
- data/lib/crowbar/client/formatter/array.rb +3 -0
- data/lib/crowbar/client/formatter/base.rb +3 -0
- data/lib/crowbar/client/formatter/hash.rb +3 -0
- data/lib/crowbar/client/formatter/nested.rb +3 -0
- data/lib/crowbar/client/mixin.rb +3 -0
- data/lib/crowbar/client/mixin/barclamp.rb +3 -0
- data/lib/crowbar/client/mixin/filter.rb +3 -0
- data/lib/crowbar/client/mixin/format.rb +3 -0
- data/lib/crowbar/client/request.rb +3 -0
- data/lib/crowbar/client/request/backup.rb +3 -0
- data/lib/crowbar/client/request/backup/create.rb +18 -0
- data/lib/crowbar/client/request/backup/delete.rb +13 -0
- data/lib/crowbar/client/request/backup/download.rb +13 -0
- data/lib/crowbar/client/request/backup/list.rb +13 -0
- data/lib/crowbar/client/request/backup/restore.rb +13 -0
- data/lib/crowbar/client/request/backup/upload.rb +13 -0
- data/lib/crowbar/client/request/barclamp.rb +3 -0
- data/lib/crowbar/client/request/barclamp/list.rb +13 -0
- data/lib/crowbar/client/request/base.rb +42 -11
- data/lib/crowbar/client/request/batch.rb +3 -0
- data/lib/crowbar/client/request/batch/build.rb +13 -0
- data/lib/crowbar/client/request/batch/export.rb +18 -0
- data/lib/crowbar/client/request/host_ip.rb +3 -0
- data/lib/crowbar/client/request/host_ip/allocate.rb +18 -0
- data/lib/crowbar/client/request/host_ip/deallocate.rb +18 -0
- data/lib/crowbar/client/request/installer.rb +3 -0
- data/lib/crowbar/client/request/installer/start.rb +18 -0
- data/lib/crowbar/client/request/installer/status.rb +13 -0
- data/lib/crowbar/client/request/interface.rb +3 -0
- data/lib/crowbar/client/request/interface/disable.rb +18 -0
- data/lib/crowbar/client/request/interface/enable.rb +18 -0
- data/lib/crowbar/client/request/node.rb +33 -0
- data/lib/crowbar/client/request/node/action.rb +13 -0
- data/lib/crowbar/client/request/node/allocate.rb +29 -0
- data/lib/crowbar/client/request/node/delete.rb +13 -0
- data/lib/crowbar/client/request/node/group.rb +13 -0
- data/lib/crowbar/client/request/node/hardware.rb +29 -0
- data/lib/crowbar/client/request/node/identify.rb +29 -0
- data/lib/crowbar/client/request/node/list.rb +13 -0
- data/lib/crowbar/client/request/node/powercycle.rb +29 -0
- data/lib/crowbar/client/request/node/poweroff.rb +29 -0
- data/lib/crowbar/client/request/node/poweron.rb +29 -0
- data/lib/crowbar/client/request/node/reboot.rb +29 -0
- data/lib/crowbar/client/request/node/reinstall.rb +29 -0
- data/lib/crowbar/client/request/node/rename.rb +18 -0
- data/lib/crowbar/client/request/node/reset.rb +29 -0
- data/lib/crowbar/client/request/node/role.rb +18 -0
- data/lib/crowbar/client/request/node/show.rb +13 -0
- data/lib/crowbar/client/request/node/shutdown.rb +29 -0
- data/lib/crowbar/client/request/node/status.rb +13 -0
- data/lib/crowbar/client/request/node/transition.rb +18 -0
- data/lib/crowbar/client/request/party.rb +3 -0
- data/lib/crowbar/client/request/proposal.rb +3 -0
- data/lib/crowbar/client/request/proposal/commit.rb +13 -0
- data/lib/crowbar/client/request/proposal/create.rb +18 -0
- data/lib/crowbar/client/request/proposal/delete.rb +13 -0
- data/lib/crowbar/client/request/proposal/dequeue.rb +13 -0
- data/lib/crowbar/client/request/proposal/edit.rb +18 -0
- data/lib/crowbar/client/request/proposal/list.rb +13 -0
- data/lib/crowbar/client/request/proposal/reset.rb +13 -0
- data/lib/crowbar/client/request/proposal/show.rb +13 -0
- data/lib/crowbar/client/request/proposal/template.rb +13 -0
- data/lib/crowbar/client/request/repository.rb +3 -0
- data/lib/crowbar/client/request/repository/activate.rb +18 -0
- data/lib/crowbar/client/request/repository/activate_all.rb +13 -0
- data/lib/crowbar/client/request/repository/deactivate.rb +18 -0
- data/lib/crowbar/client/request/repository/deactivate_all.rb +13 -0
- data/lib/crowbar/client/request/repository/list.rb +13 -0
- data/lib/crowbar/client/request/role.rb +3 -0
- data/lib/crowbar/client/request/role/list.rb +13 -0
- data/lib/crowbar/client/request/role/show.rb +13 -0
- data/lib/crowbar/client/request/server.rb +5 -0
- data/lib/crowbar/client/request/server/api.rb +13 -0
- data/lib/crowbar/client/request/server/check.rb +49 -0
- data/lib/crowbar/client/request/virtual_ip.rb +3 -0
- data/lib/crowbar/client/request/virtual_ip/allocate.rb +18 -0
- data/lib/crowbar/client/request/virtual_ip/deallocate.rb +18 -0
- data/lib/crowbar/client/util.rb +3 -0
- data/lib/crowbar/client/util/editor.rb +3 -0
- data/lib/crowbar/client/util/runner.rb +3 -0
- data/lib/crowbar/client/version.rb +23 -1
- data/spec/crowbar/client/command/backup/create_spec.rb +8 -16
- data/spec/crowbar/client/command/backup/delete_spec.rb +8 -16
- data/spec/crowbar/client/command/backup/download_spec.rb +8 -16
- data/spec/crowbar/client/command/backup/list_spec.rb +7 -15
- data/spec/crowbar/client/command/backup/restore_spec.rb +8 -16
- data/spec/crowbar/client/command/backup/upload_spec.rb +11 -19
- data/spec/crowbar/client/command/barclamp/list_spec.rb +7 -15
- data/spec/crowbar/client/command/batch/build_spec.rb +11 -19
- data/spec/crowbar/client/command/batch/export_spec.rb +7 -15
- data/spec/crowbar/client/command/host_ip/allocate_spec.rb +7 -15
- data/spec/crowbar/client/command/host_ip/deallocate_spec.rb +7 -15
- data/spec/crowbar/client/command/installer/start_spec.rb +8 -16
- data/spec/crowbar/client/command/installer/status_spec.rb +7 -15
- data/spec/crowbar/client/command/interface/disable_spec.rb +7 -15
- data/spec/crowbar/client/command/interface/enable_spec.rb +7 -15
- data/spec/crowbar/client/command/node/allocate_spec.rb +7 -15
- data/spec/crowbar/client/command/node/delete_spec.rb +7 -15
- data/spec/crowbar/client/command/node/group_spec.rb +7 -15
- data/spec/crowbar/client/command/node/hardware_spec.rb +7 -15
- data/spec/crowbar/client/command/node/identify_spec.rb +7 -15
- data/spec/crowbar/client/command/node/list_spec.rb +9 -17
- data/spec/crowbar/client/command/node/powercycle_spec.rb +7 -15
- data/spec/crowbar/client/command/node/poweroff_spec.rb +7 -15
- data/spec/crowbar/client/command/node/poweron_spec.rb +7 -15
- data/spec/crowbar/client/command/node/reboot_spec.rb +7 -15
- data/spec/crowbar/client/command/node/reinstall_spec.rb +7 -15
- data/spec/crowbar/client/command/node/rename_spec.rb +7 -15
- data/spec/crowbar/client/command/node/reset_spec.rb +7 -15
- data/spec/crowbar/client/command/node/role_spec.rb +7 -15
- data/spec/crowbar/client/command/node/show_spec.rb +7 -15
- data/spec/crowbar/client/command/node/shutdown_spec.rb +7 -15
- data/spec/crowbar/client/command/node/status_spec.rb +7 -15
- data/spec/crowbar/client/command/node/transition_spec.rb +7 -15
- data/spec/crowbar/client/command/proposal/commit_spec.rb +7 -15
- data/spec/crowbar/client/command/proposal/delete_spec.rb +7 -15
- data/spec/crowbar/client/command/proposal/dequeue_spec.rb +7 -15
- data/spec/crowbar/client/command/proposal/list_spec.rb +7 -15
- data/spec/crowbar/client/command/proposal/reset_spec.rb +7 -15
- data/spec/crowbar/client/command/proposal/show_spec.rb +7 -15
- data/spec/crowbar/client/command/repository/activate_all_spec.rb +7 -15
- data/spec/crowbar/client/command/repository/activate_spec.rb +7 -15
- data/spec/crowbar/client/command/repository/deactivate_all_spec.rb +7 -15
- data/spec/crowbar/client/command/repository/deactivate_spec.rb +7 -15
- data/spec/crowbar/client/command/repository/list_spec.rb +7 -15
- data/spec/crowbar/client/command/role/list_spec.rb +7 -15
- data/spec/crowbar/client/command/role/show_spec.rb +7 -15
- data/spec/crowbar/client/command/server/api_spec.rb +7 -15
- data/spec/crowbar/client/command/server/check_spec.rb +31 -0
- data/spec/crowbar/client/command/virtual_ip/allocate_spec.rb +7 -15
- data/spec/crowbar/client/command/virtual_ip/deallocate_spec.rb +7 -15
- data/spec/crowbar/client/request/server/check_spec.rb +50 -0
- data/spec/support/command_examples.rb +59 -0
- metadata +117 -95
@@ -19,22 +19,14 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Backup::Restore" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
it "should always return a request class" do
|
32
|
-
expect(subject.request).to(
|
33
|
-
be_a(
|
34
|
-
::Crowbar::Client::Request::Backup::Restore
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Backup::Restore.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr,
|
28
|
+
name: "test-backup"
|
35
29
|
)
|
36
|
-
|
30
|
+
end
|
37
31
|
end
|
38
|
-
|
39
|
-
pending
|
40
32
|
end
|
@@ -19,25 +19,17 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Backup::Upload" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Backup::Upload.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr,
|
28
|
+
{},
|
29
|
+
file: fixture_path(
|
30
|
+
"upload.tgz"
|
31
|
+
)
|
30
32
|
)
|
31
|
-
|
33
|
+
end
|
32
34
|
end
|
33
|
-
|
34
|
-
it "should always return a request class" do
|
35
|
-
expect(subject.request).to(
|
36
|
-
be_a(
|
37
|
-
::Crowbar::Client::Request::Backup::Upload
|
38
|
-
)
|
39
|
-
)
|
40
|
-
end
|
41
|
-
|
42
|
-
pending
|
43
35
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Barclamp::List" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Barclamp::List
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Barclamp::List.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,25 +19,17 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Batch::Build" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Batch::Build.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr,
|
28
|
+
{},
|
29
|
+
file: fixture_path(
|
30
|
+
"batch.yml"
|
31
|
+
)
|
30
32
|
)
|
31
|
-
|
33
|
+
end
|
32
34
|
end
|
33
|
-
|
34
|
-
it "should always return a request class" do
|
35
|
-
expect(subject.request).to(
|
36
|
-
be_a(
|
37
|
-
::Crowbar::Client::Request::Batch::Build
|
38
|
-
)
|
39
|
-
)
|
40
|
-
end
|
41
|
-
|
42
|
-
pending
|
43
35
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Batch::Export" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Batch::Export
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Batch::Export.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::HostIP::Allocate" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::HostIP::Allocate
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::HostIP::Allocate.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::HostIP::Deallocate" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::HostIP::Deallocate
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::HostIP::Deallocate.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,22 +19,14 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Installer::Start" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
it "should always return a request class" do
|
32
|
-
expect(subject.request).to(
|
33
|
-
be_a(
|
34
|
-
::Crowbar::Client::Request::Installer::Start
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Installer::Start.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr,
|
28
|
+
force: false
|
35
29
|
)
|
36
|
-
|
30
|
+
end
|
37
31
|
end
|
38
|
-
|
39
|
-
pending
|
40
32
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Installer::Status" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Installer::Status
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Installer::Status.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Interface::Disable" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Interface::Disable
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Interface::Disable.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Interface::Enable" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Interface::Enable
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Interface::Enable.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Node::Allocate" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Node::Action
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Node::Allocate.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Node::Delete" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Node::Delete
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Node::Delete.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Node::Group" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Node::Group
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Node::Group.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|
@@ -19,21 +19,13 @@ require_relative "../../../../spec_helper"
|
|
19
19
|
describe "Crowbar::Client::Command::Node::Hardware" do
|
20
20
|
include_context "command_context"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should always return a request class" do
|
31
|
-
expect(subject.request).to(
|
32
|
-
be_a(
|
33
|
-
::Crowbar::Client::Request::Node::Action
|
22
|
+
it_behaves_like "a command class", true do
|
23
|
+
subject do
|
24
|
+
::Crowbar::Client::Command::Node::Hardware.new(
|
25
|
+
stdin,
|
26
|
+
stdout,
|
27
|
+
stderr
|
34
28
|
)
|
35
|
-
|
29
|
+
end
|
36
30
|
end
|
37
|
-
|
38
|
-
pending
|
39
31
|
end
|