crowbar-client 2.2.0 → 2.2.1

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
  SHA1:
3
- metadata.gz: 3ecbbfcbd11f4a3f271ac148b1b133a263d3bf8f
4
- data.tar.gz: 8337b224ca654899291ab830294c173dbfe57403
3
+ metadata.gz: 4da88aa4d847eb33fd49059ba13a36ba19c37375
4
+ data.tar.gz: 01281b07c8e373c9d0291ddb3ced3985ea12f7f1
5
5
  SHA512:
6
- metadata.gz: 3b7d1e3f3d934c75f3edde8df6db94b9f7843a38d9ac70e27ffa9481e341f89eda52aaa31414b5493d21fa366a835bba4d03228351faa19bed14d97621f56ac2
7
- data.tar.gz: c27a8bded618b8ec1bc361519a079e4549d1090d8614ec195b1acbf3d6d9dfa712e91c45983e577116779a75fe93afb54dc031caf5d1c20ef3793f9149d65970
6
+ metadata.gz: ab8363e15f75d69f3b1e7eacbf2a32d5aa7ed0549f217565bb4ba20e6e4487f987b67eba00f4c7b22b3431d620eaaeff36250b721a28ba6a78b5a5b63938b00f
7
+ data.tar.gz: bacc1907cc82f75edec29d2a1b036dff5d16a8e882926675985cc755fd2974d794d1edb33705182957cbb36eb8703ca474571c39d6b9ce6cdcaf8b56b31babd5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.2.1](https://github.com/crowbar/crowbar-client/releases/tag/v2.2.1) - 2015-12-15
4
+
5
+ * BUGFIX
6
+ * Fixed attribute naming within network request classes (@tboerger)
7
+ * Always provide a valid output format (@tboerger)
8
+ * Call correct classes for ip deallocation (@tboerger)
9
+ * ENHANCEMENT
10
+ * Prevent install with invalid network config (@MaximilianMeister)
11
+
3
12
  ## [2.2.0](https://github.com/crowbar/crowbar-client/releases/tag/v2.2.0) - 2015-12-03
4
13
 
5
14
  * BUGFIX
@@ -49,7 +49,7 @@ module Crowbar
49
49
  LONGDESC
50
50
 
51
51
  def deallocate(proposal, node, network)
52
- Command::HostIP::Allocate.new(
52
+ Command::HostIP::Deallocate.new(
53
53
  *command_params(
54
54
  proposal: proposal,
55
55
  node: node,
@@ -49,7 +49,7 @@ module Crowbar
49
49
  LONGDESC
50
50
 
51
51
  def deallocate(proposal, service, network)
52
- Command::VirtualIP::Allocate.new(
52
+ Command::VirtualIP::Deallocate.new(
53
53
  *command_params(
54
54
  proposal: proposal,
55
55
  service: service,
@@ -34,6 +34,8 @@ module Crowbar
34
34
  say "Triggered installation process"
35
35
  when 226
36
36
  say "Crowbar already installing"
37
+ when 412
38
+ say "Network validation failed"
37
39
  when 410
38
40
  say "Installation is already done"
39
41
  when 501
@@ -33,7 +33,11 @@ module Crowbar
33
33
  options[:format] = :table
34
34
  end
35
35
 
36
- options[:format].to_sym
36
+ if options[:format].nil?
37
+ :table
38
+ else
39
+ options[:format].to_sym
40
+ end
37
41
  end
38
42
 
39
43
  protected
@@ -40,7 +40,7 @@ module Crowbar
40
40
  "network",
41
41
  "1.0",
42
42
  "allocate_ip",
43
- attrs.prop
43
+ attrs.proposal
44
44
  ].join("/")
45
45
  end
46
46
  end
@@ -38,7 +38,7 @@ module Crowbar
38
38
  "network",
39
39
  "1.0",
40
40
  "deallocate_ip",
41
- attrs.prop
41
+ attrs.proposal
42
42
  ].join("/")
43
43
  end
44
44
  end
@@ -38,7 +38,7 @@ module Crowbar
38
38
  "network",
39
39
  "1.0",
40
40
  "disable_interface",
41
- attrs.prop
41
+ attrs.proposal
42
42
  ].join("/")
43
43
  end
44
44
  end
@@ -38,7 +38,7 @@ module Crowbar
38
38
  "network",
39
39
  "1.0",
40
40
  "enable_interface",
41
- attrs.prop
41
+ attrs.proposal
42
42
  ].join("/")
43
43
  end
44
44
  end
@@ -40,7 +40,7 @@ module Crowbar
40
40
  "network",
41
41
  "1.0",
42
42
  "allocate_virtual_ip",
43
- attrs.prop
43
+ attrs.proposal
44
44
  ].join("/")
45
45
  end
46
46
  end
@@ -38,7 +38,7 @@ module Crowbar
38
38
  "network",
39
39
  "1.0",
40
40
  "deallocate_virtual_ip",
41
- attrs.prop
41
+ attrs.proposal
42
42
  ].join("/")
43
43
  end
44
44
  end
@@ -19,7 +19,7 @@ module Crowbar
19
19
  class Version
20
20
  MAJOR = 2
21
21
  MINOR = 2
22
- PATCH = 0
22
+ PATCH = 1
23
23
 
24
24
  PRE = nil
25
25
 
@@ -30,7 +30,7 @@ describe "Crowbar::Client::Request::HostIP::Allocate" do
30
30
  network: "",
31
31
  range: "",
32
32
  suggest: "",
33
- prop: "default"
33
+ proposal: "default"
34
34
  }
35
35
  end
36
36
 
@@ -28,7 +28,7 @@ describe "Crowbar::Client::Request::HostIP::Deallocate" do
28
28
  {
29
29
  node: "node1",
30
30
  network: "admin",
31
- prop: "default"
31
+ proposal: "default"
32
32
  }
33
33
  end
34
34
 
@@ -28,7 +28,7 @@ describe "Crowbar::Client::Request::Interface::Disable" do
28
28
  {
29
29
  node: "node1",
30
30
  network: "admin",
31
- prop: "default"
31
+ proposal: "default"
32
32
  }
33
33
  end
34
34
 
@@ -28,7 +28,7 @@ describe "Crowbar::Client::Request::Interface::Enable" do
28
28
  {
29
29
  node: "node1",
30
30
  network: "admin",
31
- prop: "default"
31
+ proposal: "default"
32
32
  }
33
33
  end
34
34
 
@@ -30,7 +30,7 @@ describe "Crowbar::Client::Request::VirtualIP::Allocate" do
30
30
  network: "",
31
31
  range: "",
32
32
  suggest: "",
33
- prop: "default"
33
+ proposal: "default"
34
34
  }
35
35
  end
36
36
 
@@ -28,7 +28,7 @@ describe "Crowbar::Client::Request::VirtualIP::Deallocate" do
28
28
  {
29
29
  service: "",
30
30
  network: "",
31
- prop: "default"
31
+ proposal: "default"
32
32
  }
33
33
  end
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowbar-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Boerger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2015-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -469,105 +469,105 @@ required_rubygems_version: !ruby/object:Gem::Requirement
469
469
  version: '0'
470
470
  requirements: []
471
471
  rubyforge_project:
472
- rubygems_version: 2.2.2
472
+ rubygems_version: 2.2.5
473
473
  signing_key:
474
474
  specification_version: 4
475
475
  summary: Crowbar commandline client
476
476
  test_files:
477
- - spec/spec_helper.rb
478
477
  - spec/support/request_examples.rb
479
478
  - spec/support/command_context.rb
480
- - spec/crowbar/client/util/runner_spec.rb
481
- - spec/crowbar/client/util/editor_spec.rb
482
479
  - spec/crowbar/client/app_spec.rb
483
- - spec/crowbar/client/filter/hash_spec.rb
484
- - spec/crowbar/client/filter/subset_spec.rb
485
- - spec/crowbar/client/filter/array_spec.rb
486
480
  - spec/crowbar/client/formatter/nested_spec.rb
487
- - spec/crowbar/client/formatter/hash_spec.rb
488
481
  - spec/crowbar/client/formatter/array_spec.rb
489
- - spec/crowbar/client/command/proposal/list_spec.rb
482
+ - spec/crowbar/client/formatter/hash_spec.rb
483
+ - spec/crowbar/client/filter/array_spec.rb
484
+ - spec/crowbar/client/filter/hash_spec.rb
485
+ - spec/crowbar/client/filter/subset_spec.rb
486
+ - spec/crowbar/client/util/editor_spec.rb
487
+ - spec/crowbar/client/util/runner_spec.rb
488
+ - spec/crowbar/client/command/host_ip/allocate_spec.rb
489
+ - spec/crowbar/client/command/host_ip/deallocate_spec.rb
490
+ - spec/crowbar/client/command/server/api_spec.rb
491
+ - spec/crowbar/client/command/repository/activate_all_spec.rb
492
+ - spec/crowbar/client/command/repository/deactivate_spec.rb
493
+ - spec/crowbar/client/command/repository/list_spec.rb
494
+ - spec/crowbar/client/command/repository/deactivate_all_spec.rb
495
+ - spec/crowbar/client/command/repository/activate_spec.rb
496
+ - spec/crowbar/client/command/role/show_spec.rb
497
+ - spec/crowbar/client/command/role/list_spec.rb
498
+ - spec/crowbar/client/command/barclamp/list_spec.rb
490
499
  - spec/crowbar/client/command/proposal/show_spec.rb
491
- - spec/crowbar/client/command/proposal/edit_spec.rb
500
+ - spec/crowbar/client/command/proposal/dequeue_spec.rb
492
501
  - spec/crowbar/client/command/proposal/delete_spec.rb
502
+ - spec/crowbar/client/command/proposal/edit_spec.rb
503
+ - spec/crowbar/client/command/proposal/list_spec.rb
493
504
  - spec/crowbar/client/command/proposal/commit_spec.rb
494
- - spec/crowbar/client/command/proposal/dequeue_spec.rb
495
505
  - spec/crowbar/client/command/proposal/create_spec.rb
496
- - spec/crowbar/client/command/role/list_spec.rb
497
- - spec/crowbar/client/command/role/show_spec.rb
498
- - spec/crowbar/client/command/interface/disable_spec.rb
499
- - spec/crowbar/client/command/interface/enable_spec.rb
500
- - spec/crowbar/client/command/barclamp/list_spec.rb
501
- - spec/crowbar/client/command/host_ip/deallocate_spec.rb
502
- - spec/crowbar/client/command/host_ip/allocate_spec.rb
503
- - spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
504
- - spec/crowbar/client/command/virtual_ip/allocate_spec.rb
505
- - spec/crowbar/client/command/server/api_spec.rb
506
- - spec/crowbar/client/command/installer/status_spec.rb
507
506
  - spec/crowbar/client/command/installer/start_spec.rb
508
- - spec/crowbar/client/command/repository/list_spec.rb
509
- - spec/crowbar/client/command/repository/activate_spec.rb
510
- - spec/crowbar/client/command/repository/deactivate_spec.rb
511
- - spec/crowbar/client/command/repository/deactivate_all_spec.rb
512
- - spec/crowbar/client/command/repository/activate_all_spec.rb
513
- - spec/crowbar/client/command/node/list_spec.rb
514
- - spec/crowbar/client/command/node/identify_spec.rb
515
- - spec/crowbar/client/command/node/poweroff_spec.rb
507
+ - spec/crowbar/client/command/installer/status_spec.rb
508
+ - spec/crowbar/client/command/virtual_ip/allocate_spec.rb
509
+ - spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
510
+ - spec/crowbar/client/command/reset/nodes_spec.rb
511
+ - spec/crowbar/client/command/reset/proposal_spec.rb
512
+ - spec/crowbar/client/command/batch/export_spec.rb
513
+ - spec/crowbar/client/command/batch/build_spec.rb
514
+ - spec/crowbar/client/command/node/role_spec.rb
515
+ - spec/crowbar/client/command/node/transition_spec.rb
516
516
  - spec/crowbar/client/command/node/show_spec.rb
517
+ - spec/crowbar/client/command/node/poweroff_spec.rb
517
518
  - spec/crowbar/client/command/node/hardware_spec.rb
519
+ - spec/crowbar/client/command/node/identify_spec.rb
520
+ - spec/crowbar/client/command/node/reset_spec.rb
521
+ - spec/crowbar/client/command/node/delete_spec.rb
518
522
  - spec/crowbar/client/command/node/rename_spec.rb
519
- - spec/crowbar/client/command/node/status_spec.rb
520
- - spec/crowbar/client/command/node/reinstall_spec.rb
523
+ - spec/crowbar/client/command/node/list_spec.rb
521
524
  - spec/crowbar/client/command/node/poweron_spec.rb
522
- - spec/crowbar/client/command/node/role_spec.rb
523
- - spec/crowbar/client/command/node/delete_spec.rb
524
- - spec/crowbar/client/command/node/transition_spec.rb
525
- - spec/crowbar/client/command/node/powercycle_spec.rb
526
- - spec/crowbar/client/command/node/reboot_spec.rb
527
525
  - spec/crowbar/client/command/node/allocate_spec.rb
528
- - spec/crowbar/client/command/node/reset_spec.rb
526
+ - spec/crowbar/client/command/node/reboot_spec.rb
527
+ - spec/crowbar/client/command/node/status_spec.rb
529
528
  - spec/crowbar/client/command/node/shutdown_spec.rb
530
- - spec/crowbar/client/command/batch/export_spec.rb
531
- - spec/crowbar/client/command/batch/build_spec.rb
532
- - spec/crowbar/client/command/reset/nodes_spec.rb
533
- - spec/crowbar/client/command/reset/proposal_spec.rb
534
- - spec/crowbar/client/request/proposal/list_spec.rb
529
+ - spec/crowbar/client/command/node/powercycle_spec.rb
530
+ - spec/crowbar/client/command/node/reinstall_spec.rb
531
+ - spec/crowbar/client/command/interface/enable_spec.rb
532
+ - spec/crowbar/client/command/interface/disable_spec.rb
533
+ - spec/crowbar/client/request/party_spec.rb
534
+ - spec/crowbar/client/request/host_ip/allocate_spec.rb
535
+ - spec/crowbar/client/request/host_ip/deallocate_spec.rb
536
+ - spec/crowbar/client/request/server/api_spec.rb
537
+ - spec/crowbar/client/request/repository/activate_all_spec.rb
538
+ - spec/crowbar/client/request/repository/deactivate_spec.rb
539
+ - spec/crowbar/client/request/repository/list_spec.rb
540
+ - spec/crowbar/client/request/repository/deactivate_all_spec.rb
541
+ - spec/crowbar/client/request/repository/activate_spec.rb
542
+ - spec/crowbar/client/request/role/show_spec.rb
543
+ - spec/crowbar/client/request/role/list_spec.rb
544
+ - spec/crowbar/client/request/barclamp/list_spec.rb
535
545
  - spec/crowbar/client/request/proposal/show_spec.rb
536
- - spec/crowbar/client/request/proposal/edit_spec.rb
546
+ - spec/crowbar/client/request/proposal/dequeue_spec.rb
547
+ - spec/crowbar/client/request/proposal/template_spec.rb
537
548
  - spec/crowbar/client/request/proposal/delete_spec.rb
549
+ - spec/crowbar/client/request/proposal/edit_spec.rb
550
+ - spec/crowbar/client/request/proposal/list_spec.rb
538
551
  - spec/crowbar/client/request/proposal/commit_spec.rb
539
- - spec/crowbar/client/request/proposal/template_spec.rb
540
- - spec/crowbar/client/request/proposal/dequeue_spec.rb
541
552
  - spec/crowbar/client/request/proposal/create_spec.rb
542
- - spec/crowbar/client/request/role/list_spec.rb
543
- - spec/crowbar/client/request/role/show_spec.rb
544
- - spec/crowbar/client/request/interface/disable_spec.rb
545
- - spec/crowbar/client/request/interface/enable_spec.rb
546
- - spec/crowbar/client/request/barclamp/list_spec.rb
547
- - spec/crowbar/client/request/host_ip/deallocate_spec.rb
548
- - spec/crowbar/client/request/host_ip/allocate_spec.rb
549
- - spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
550
- - spec/crowbar/client/request/virtual_ip/allocate_spec.rb
551
- - spec/crowbar/client/request/server/api_spec.rb
552
- - spec/crowbar/client/request/party_spec.rb
553
- - spec/crowbar/client/request/installer/status_spec.rb
554
553
  - spec/crowbar/client/request/installer/start_spec.rb
555
- - spec/crowbar/client/request/repository/list_spec.rb
556
- - spec/crowbar/client/request/repository/activate_spec.rb
557
- - spec/crowbar/client/request/repository/deactivate_spec.rb
558
- - spec/crowbar/client/request/repository/deactivate_all_spec.rb
559
- - spec/crowbar/client/request/repository/activate_all_spec.rb
560
- - spec/crowbar/client/request/node/list_spec.rb
561
- - spec/crowbar/client/request/node/show_spec.rb
562
- - spec/crowbar/client/request/node/rename_spec.rb
563
- - spec/crowbar/client/request/node/status_spec.rb
554
+ - spec/crowbar/client/request/installer/status_spec.rb
555
+ - spec/crowbar/client/request/virtual_ip/allocate_spec.rb
556
+ - spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
557
+ - spec/crowbar/client/request/reset/nodes_spec.rb
558
+ - spec/crowbar/client/request/reset/proposal_spec.rb
559
+ - spec/crowbar/client/request/batch/export_spec.rb
560
+ - spec/crowbar/client/request/batch/build_spec.rb
564
561
  - spec/crowbar/client/request/node/role_spec.rb
565
- - spec/crowbar/client/request/node/delete_spec.rb
566
562
  - spec/crowbar/client/request/node/transition_spec.rb
563
+ - spec/crowbar/client/request/node/show_spec.rb
564
+ - spec/crowbar/client/request/node/delete_spec.rb
565
+ - spec/crowbar/client/request/node/rename_spec.rb
566
+ - spec/crowbar/client/request/node/list_spec.rb
567
567
  - spec/crowbar/client/request/node/action_spec.rb
568
- - spec/crowbar/client/request/batch/export_spec.rb
569
- - spec/crowbar/client/request/batch/build_spec.rb
570
- - spec/crowbar/client/request/reset/nodes_spec.rb
571
- - spec/crowbar/client/request/reset/proposal_spec.rb
568
+ - spec/crowbar/client/request/node/status_spec.rb
569
+ - spec/crowbar/client/request/interface/enable_spec.rb
570
+ - spec/crowbar/client/request/interface/disable_spec.rb
572
571
  - spec/crowbar/client_spec.rb
572
+ - spec/spec_helper.rb
573
573
  has_rdoc: