crowbar-client 3.1.3 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,31 @@
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_relative "../../../../spec_helper"
18
+
19
+ describe "Crowbar::Client::Command::Database::Create" do
20
+ include_context "command_context"
21
+
22
+ it_behaves_like "a command class", true do
23
+ subject do
24
+ ::Crowbar::Client::Command::Database::Create.new(
25
+ stdin,
26
+ stdout,
27
+ stderr
28
+ )
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,31 @@
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_relative "../../../../spec_helper"
18
+
19
+ describe "Crowbar::Client::Command::Database::Test" do
20
+ include_context "command_context"
21
+
22
+ it_behaves_like "a command class", true do
23
+ subject do
24
+ ::Crowbar::Client::Command::Database::Test.new(
25
+ stdin,
26
+ stdout,
27
+ stderr
28
+ )
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,62 @@
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_relative "../../../../spec_helper"
18
+
19
+ describe "Crowbar::Client::Request::Database::Connect" do
20
+ it_behaves_like "a request class", true do
21
+ subject do
22
+ ::Crowbar::Client::Request::Database::Connect.new(
23
+ attrs
24
+ )
25
+ end
26
+
27
+ let!(:attrs) do
28
+ {
29
+ db_username: "crowbar",
30
+ db_password: "crowbar",
31
+ database: "crowbar_production",
32
+ host: "localhost",
33
+ port: "5432"
34
+ }
35
+ end
36
+
37
+ let!(:params) do
38
+ {
39
+ username: "crowbar",
40
+ password: "crowbar",
41
+ database: "crowbar_production",
42
+ host: "localhost",
43
+ port: "5432"
44
+ }
45
+ end
46
+
47
+ let!(:method) do
48
+ :post
49
+ end
50
+
51
+ let!(:url) do
52
+ "api/database/connect"
53
+ end
54
+
55
+ let!(:headers) do
56
+ {
57
+ "Content-Type" => "application/vnd.crowbar.v2.0+json",
58
+ "Accept" => "application/vnd.crowbar.v2.0+json"
59
+ }
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,56 @@
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_relative "../../../../spec_helper"
18
+
19
+ describe "Crowbar::Client::Request::Database::Create" do
20
+ it_behaves_like "a request class", true do
21
+ subject do
22
+ ::Crowbar::Client::Request::Database::Create.new(
23
+ attrs
24
+ )
25
+ end
26
+
27
+ let!(:attrs) do
28
+ {
29
+ db_username: "crowbar",
30
+ db_password: "crowbar"
31
+ }
32
+ end
33
+
34
+ let!(:params) do
35
+ {
36
+ username: "crowbar",
37
+ password: "crowbar"
38
+ }
39
+ end
40
+
41
+ let!(:method) do
42
+ :post
43
+ end
44
+
45
+ let!(:url) do
46
+ "api/database/new"
47
+ end
48
+
49
+ let!(:headers) do
50
+ {
51
+ "Content-Type" => "application/vnd.crowbar.v2.0+json",
52
+ "Accept" => "application/vnd.crowbar.v2.0+json"
53
+ }
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,62 @@
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_relative "../../../../spec_helper"
18
+
19
+ describe "Crowbar::Client::Request::Database::Test" do
20
+ it_behaves_like "a request class", true do
21
+ subject do
22
+ ::Crowbar::Client::Request::Database::Test.new(
23
+ attrs
24
+ )
25
+ end
26
+
27
+ let!(:attrs) do
28
+ {
29
+ db_username: "crowbar",
30
+ db_password: "crowbar",
31
+ database: "crowbar_production",
32
+ host: "localhost",
33
+ port: "5432"
34
+ }
35
+ end
36
+
37
+ let!(:params) do
38
+ {
39
+ username: "crowbar",
40
+ password: "crowbar",
41
+ database: "crowbar_production",
42
+ host: "localhost",
43
+ port: "5432"
44
+ }
45
+ end
46
+
47
+ let!(:method) do
48
+ :post
49
+ end
50
+
51
+ let!(:url) do
52
+ "api/database/test"
53
+ end
54
+
55
+ let!(:headers) do
56
+ {
57
+ "Content-Type" => "application/vnd.crowbar.v2.0+json",
58
+ "Accept" => "application/vnd.crowbar.v2.0+json"
59
+ }
60
+ end
61
+ end
62
+ end
@@ -21,7 +21,6 @@ if ENV["CODECLIMATE_REPO_TOKEN"]
21
21
  require "codeclimate-test-reporter"
22
22
 
23
23
  Coveralls.wear!
24
- CodeClimate::TestReporter.start
25
24
 
26
25
  SimpleCov.start do
27
26
  add_filter "/spec"
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: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Boerger
@@ -10,124 +10,124 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-18 00:00:00.000000000 Z
13
+ date: 2016-11-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ! '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ! '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ! '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ! '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: yard
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ! '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ! '>='
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rspec
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ! '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ! '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: aruba
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ! '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ! '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: webmock
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ! '>='
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ! '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: thor
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ! '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: 0.19.1
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ! '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: 0.19.1
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: activesupport
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - <
117
+ - - "<"
118
118
  - !ruby/object:Gem::Version
119
119
  version: 5.0.0
120
- - - ! '>='
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
122
  version: 3.0.0
123
123
  type: :runtime
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - <
127
+ - - "<"
128
128
  - !ruby/object:Gem::Version
129
129
  version: 5.0.0
130
- - - ! '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: 3.0.0
133
133
  - !ruby/object:Gem::Dependency
@@ -148,75 +148,74 @@ dependencies:
148
148
  name: net-http-digest_auth
149
149
  requirement: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ~>
151
+ - - "~>"
152
152
  - !ruby/object:Gem::Version
153
153
  version: '1.4'
154
154
  type: :runtime
155
155
  prerelease: false
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - ~>
158
+ - - "~>"
159
159
  - !ruby/object:Gem::Version
160
160
  version: '1.4'
161
161
  - !ruby/object:Gem::Dependency
162
162
  name: inifile
163
163
  requirement: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ! '>='
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: 3.0.0
168
168
  type: :runtime
169
169
  prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - ! '>='
172
+ - - ">="
173
173
  - !ruby/object:Gem::Version
174
174
  version: 3.0.0
175
175
  - !ruby/object:Gem::Dependency
176
176
  name: terminal-table
177
177
  requirement: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - ! '>='
179
+ - - ">="
180
180
  - !ruby/object:Gem::Version
181
181
  version: 1.4.5
182
182
  type: :runtime
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - ! '>='
186
+ - - ">="
187
187
  - !ruby/object:Gem::Version
188
188
  version: 1.4.5
189
189
  - !ruby/object:Gem::Dependency
190
190
  name: easy_diff
191
191
  requirement: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - ! '>='
193
+ - - ">="
194
194
  - !ruby/object:Gem::Version
195
195
  version: 0.0.5
196
196
  type: :runtime
197
197
  prerelease: false
198
198
  version_requirements: !ruby/object:Gem::Requirement
199
199
  requirements:
200
- - - ! '>='
200
+ - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: 0.0.5
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: hashie
205
205
  requirement: !ruby/object:Gem::Requirement
206
206
  requirements:
207
- - - ! '>='
207
+ - - ">="
208
208
  - !ruby/object:Gem::Version
209
209
  version: 3.4.1
210
210
  type: :runtime
211
211
  prerelease: false
212
212
  version_requirements: !ruby/object:Gem::Requirement
213
213
  requirements:
214
- - - ! '>='
214
+ - - ">="
215
215
  - !ruby/object:Gem::Version
216
216
  version: 3.4.1
217
- description: ! ' Standalone commandline client for crowbar
218
-
219
- '
217
+ description: |2
218
+ Standalone commandline client for crowbar
220
219
  email:
221
220
  - tboerger@suse.de
222
221
  - mmeister@suse.de
@@ -237,6 +236,7 @@ files:
237
236
  - lib/crowbar/client/app/barclamp.rb
238
237
  - lib/crowbar/client/app/base.rb
239
238
  - lib/crowbar/client/app/batch.rb
239
+ - lib/crowbar/client/app/database.rb
240
240
  - lib/crowbar/client/app/entry.rb
241
241
  - lib/crowbar/client/app/host_ip.rb
242
242
  - lib/crowbar/client/app/installer.rb
@@ -263,6 +263,10 @@ files:
263
263
  - lib/crowbar/client/command/batch.rb
264
264
  - lib/crowbar/client/command/batch/build.rb
265
265
  - lib/crowbar/client/command/batch/export.rb
266
+ - lib/crowbar/client/command/database.rb
267
+ - lib/crowbar/client/command/database/connect.rb
268
+ - lib/crowbar/client/command/database/create.rb
269
+ - lib/crowbar/client/command/database/test.rb
266
270
  - lib/crowbar/client/command/host_ip.rb
267
271
  - lib/crowbar/client/command/host_ip/allocate.rb
268
272
  - lib/crowbar/client/command/host_ip/deallocate.rb
@@ -355,6 +359,10 @@ files:
355
359
  - lib/crowbar/client/request/batch.rb
356
360
  - lib/crowbar/client/request/batch/build.rb
357
361
  - lib/crowbar/client/request/batch/export.rb
362
+ - lib/crowbar/client/request/database.rb
363
+ - lib/crowbar/client/request/database/connect.rb
364
+ - lib/crowbar/client/request/database/create.rb
365
+ - lib/crowbar/client/request/database/test.rb
358
366
  - lib/crowbar/client/request/host_ip.rb
359
367
  - lib/crowbar/client/request/host_ip/allocate.rb
360
368
  - lib/crowbar/client/request/host_ip/deallocate.rb
@@ -435,6 +443,9 @@ files:
435
443
  - spec/crowbar/client/command/barclamp/list_spec.rb
436
444
  - spec/crowbar/client/command/batch/build_spec.rb
437
445
  - spec/crowbar/client/command/batch/export_spec.rb
446
+ - spec/crowbar/client/command/database/connect_spec.rb
447
+ - spec/crowbar/client/command/database/create_spec.rb
448
+ - spec/crowbar/client/command/database/test_spec.rb
438
449
  - spec/crowbar/client/command/host_ip/allocate_spec.rb
439
450
  - spec/crowbar/client/command/host_ip/deallocate_spec.rb
440
451
  - spec/crowbar/client/command/installer/start_spec.rb
@@ -502,6 +513,9 @@ files:
502
513
  - spec/crowbar/client/request/barclamp/list_spec.rb
503
514
  - spec/crowbar/client/request/batch/build_spec.rb
504
515
  - spec/crowbar/client/request/batch/export_spec.rb
516
+ - spec/crowbar/client/request/database/connect_spec.rb
517
+ - spec/crowbar/client/request/database/create_spec.rb
518
+ - spec/crowbar/client/request/database/test_spec.rb
505
519
  - spec/crowbar/client/request/host_ip/allocate_spec.rb
506
520
  - spec/crowbar/client/request/host_ip/deallocate_spec.rb
507
521
  - spec/crowbar/client/request/installer/start_spec.rb
@@ -567,12 +581,12 @@ require_paths:
567
581
  - lib
568
582
  required_ruby_version: !ruby/object:Gem::Requirement
569
583
  requirements:
570
- - - ! '>='
584
+ - - ">="
571
585
  - !ruby/object:Gem::Version
572
586
  version: 1.9.3
573
587
  required_rubygems_version: !ruby/object:Gem::Requirement
574
588
  requirements:
575
- - - ! '>='
589
+ - - ">="
576
590
  - !ruby/object:Gem::Version
577
591
  version: '0'
578
592
  requirements: []
@@ -592,6 +606,9 @@ test_files:
592
606
  - spec/crowbar/client/command/barclamp/list_spec.rb
593
607
  - spec/crowbar/client/command/batch/build_spec.rb
594
608
  - spec/crowbar/client/command/batch/export_spec.rb
609
+ - spec/crowbar/client/command/database/connect_spec.rb
610
+ - spec/crowbar/client/command/database/create_spec.rb
611
+ - spec/crowbar/client/command/database/test_spec.rb
595
612
  - spec/crowbar/client/command/host_ip/allocate_spec.rb
596
613
  - spec/crowbar/client/command/host_ip/deallocate_spec.rb
597
614
  - spec/crowbar/client/command/installer/start_spec.rb
@@ -659,6 +676,9 @@ test_files:
659
676
  - spec/crowbar/client/request/barclamp/list_spec.rb
660
677
  - spec/crowbar/client/request/batch/build_spec.rb
661
678
  - spec/crowbar/client/request/batch/export_spec.rb
679
+ - spec/crowbar/client/request/database/connect_spec.rb
680
+ - spec/crowbar/client/request/database/create_spec.rb
681
+ - spec/crowbar/client/request/database/test_spec.rb
662
682
  - spec/crowbar/client/request/host_ip/allocate_spec.rb
663
683
  - spec/crowbar/client/request/host_ip/deallocate_spec.rb
664
684
  - spec/crowbar/client/request/installer/start_spec.rb