hammer_cli_katello 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hammer_cli_katello/host_extensions.rb +1 -0
- data/lib/hammer_cli_katello/version.rb +1 -1
- data/test/data/3.5/foreman_api.json +1 -1
- data/test/functional/activation_key/content_override_test.rb +6 -6
- data/test/functional/activation_key/subscriptions_test.rb +1 -1
- data/test/functional/content_view/component/add_test.rb +17 -17
- data/test/functional/content_view/copy_test.rb +1 -1
- data/test/functional/content_view/filter/delete_test.rb +3 -3
- data/test/functional/content_view/filter/info_test.rb +3 -3
- data/test/functional/content_view/filter/update_test.rb +3 -3
- data/test/functional/content_view/puppet_module/remove_test.rb +4 -4
- data/test/functional/filter_rule/delete_test.rb +5 -5
- data/test/functional/filter_rule/info_test.rb +5 -5
- data/test/functional/filter_rule/update_test.rb +5 -5
- data/test/functional/repository/delete_test.rb +1 -1
- data/test/functional/repository/export_test.rb +6 -6
- data/test/functional/repository/info_test.rb +1 -1
- data/test/functional/repository/remove_content_test.rb +1 -1
- data/test/functional/repository/synchronize_test.rb +3 -3
- data/test/functional/repository/update_test.rb +1 -1
- data/test/functional/repository/upload_test.rb +12 -12
- metadata +2 -2
@@ -8,7 +8,7 @@ module HammerCLIKatello
|
|
8
8
|
|
9
9
|
it 'allows minimal options' do
|
10
10
|
api_expects(:repositories, :remove_content) do |p|
|
11
|
-
p['id'] ==
|
11
|
+
p['id'] == 1 && p['ids'] == %w(20 21 22)
|
12
12
|
end
|
13
13
|
|
14
14
|
run_cmd(%w(repository remove-content --id 1 --ids 20,21,22))
|
@@ -25,12 +25,12 @@ describe 'Synchronize a repository' do
|
|
25
25
|
params = ["--id=#{repo_id}"]
|
26
26
|
|
27
27
|
ex = api_expects(:repositories, :sync, 'Repository is synced') do |par|
|
28
|
-
par['id'] == repo_id
|
28
|
+
par['id'] == repo_id
|
29
29
|
end
|
30
30
|
|
31
31
|
ex.returns(sync_response)
|
32
32
|
|
33
|
-
expect_foreman_task(
|
33
|
+
expect_foreman_task(3)
|
34
34
|
|
35
35
|
result = run_cmd(@cmd + params)
|
36
36
|
assert_equal(result.exit_code, 0)
|
@@ -49,7 +49,7 @@ describe 'Synchronize a repository' do
|
|
49
49
|
|
50
50
|
ex.returns(sync_response)
|
51
51
|
|
52
|
-
expect_foreman_task(
|
52
|
+
expect_foreman_task(3)
|
53
53
|
|
54
54
|
result = run_cmd(@cmd + params)
|
55
55
|
assert_equal(result.exit_code, 0)
|
@@ -30,7 +30,7 @@ describe 'upload repository' do
|
|
30
30
|
params = ["--id=#{repo_id}", "--path=#{path}"]
|
31
31
|
|
32
32
|
ex = api_expects(:content_uploads, :create, "Create upload for content") do |par|
|
33
|
-
par[:repository_id] == repo_id
|
33
|
+
par[:repository_id] == repo_id
|
34
34
|
end
|
35
35
|
|
36
36
|
ex.returns(upload_response)
|
@@ -42,14 +42,14 @@ describe 'upload repository' do
|
|
42
42
|
:size => 0,
|
43
43
|
:checksum => 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
|
44
44
|
}
|
45
|
-
par[:id] == repo_id
|
45
|
+
par[:id] == repo_id && par[:uploads] == [upload] && par[:sync_capsule] == true &&
|
46
46
|
par[:publish_repository] == true
|
47
47
|
end
|
48
48
|
|
49
49
|
ex2.returns("")
|
50
50
|
|
51
51
|
ex3 = api_expects(:content_uploads, :destroy, "Delete the upload") do |par|
|
52
|
-
par[:id] == upload_id && par[:repository_id] == repo_id
|
52
|
+
par[:id] == upload_id && par[:repository_id] == repo_id
|
53
53
|
end
|
54
54
|
|
55
55
|
ex3.returns("")
|
@@ -105,7 +105,7 @@ describe 'upload repository' do
|
|
105
105
|
params = ["--id=#{repo_id}", "--path={test}.[r{1}]pm"]
|
106
106
|
|
107
107
|
ex = api_expects(:content_uploads, :create, "Create upload for content") do |par|
|
108
|
-
par[:repository_id] == repo_id
|
108
|
+
par[:repository_id] == repo_id
|
109
109
|
end
|
110
110
|
|
111
111
|
ex.returns(upload_response)
|
@@ -117,14 +117,14 @@ describe 'upload repository' do
|
|
117
117
|
:size => 0,
|
118
118
|
:checksum => 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
|
119
119
|
}
|
120
|
-
par[:id] == repo_id
|
120
|
+
par[:id] == repo_id && par[:uploads] == [upload] && par[:sync_capsule] == true &&
|
121
121
|
par[:publish_repository] == true
|
122
122
|
end
|
123
123
|
|
124
124
|
ex2.returns("")
|
125
125
|
|
126
126
|
ex3 = api_expects(:content_uploads, :destroy, "Delete the upload") do |par|
|
127
|
-
par[:id] == upload_id && par[:repository_id] == repo_id
|
127
|
+
par[:id] == upload_id && par[:repository_id] == repo_id
|
128
128
|
end
|
129
129
|
|
130
130
|
ex3.returns("")
|
@@ -143,7 +143,7 @@ describe 'upload repository' do
|
|
143
143
|
# Begin first upload cycle
|
144
144
|
|
145
145
|
ex = api_expects(:content_uploads, :create, "Create upload for content") do |par|
|
146
|
-
par[:repository_id] == repo_id
|
146
|
+
par[:repository_id] == repo_id
|
147
147
|
end
|
148
148
|
|
149
149
|
ex.returns(upload_response)
|
@@ -155,14 +155,14 @@ describe 'upload repository' do
|
|
155
155
|
:size => 0,
|
156
156
|
:checksum => 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
|
157
157
|
}
|
158
|
-
par[:id] == repo_id
|
158
|
+
par[:id] == repo_id && par[:uploads] == [upload] && par[:sync_capsule] == false &&
|
159
159
|
par[:publish_repository] == false
|
160
160
|
end
|
161
161
|
|
162
162
|
ex.returns("")
|
163
163
|
|
164
164
|
ex = api_expects(:content_uploads, :destroy, "Delete the upload") do |par|
|
165
|
-
par[:id] == upload_id && par[:repository_id] == repo_id
|
165
|
+
par[:id] == upload_id && par[:repository_id] == repo_id
|
166
166
|
end
|
167
167
|
|
168
168
|
ex.returns("")
|
@@ -170,7 +170,7 @@ describe 'upload repository' do
|
|
170
170
|
# Begin second upload cycle
|
171
171
|
|
172
172
|
ex = api_expects(:content_uploads, :create, "Create upload for content") do |par|
|
173
|
-
par[:repository_id] == repo_id
|
173
|
+
par[:repository_id] == repo_id
|
174
174
|
end
|
175
175
|
|
176
176
|
ex.returns(upload_response)
|
@@ -182,14 +182,14 @@ describe 'upload repository' do
|
|
182
182
|
:size => 0,
|
183
183
|
:checksum => 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
|
184
184
|
}
|
185
|
-
par[:id] == repo_id
|
185
|
+
par[:id] == repo_id && par[:uploads] == [upload] && par[:sync_capsule] == true &&
|
186
186
|
par[:publish_repository] == true
|
187
187
|
end
|
188
188
|
|
189
189
|
ex.returns("")
|
190
190
|
|
191
191
|
ex = api_expects(:content_uploads, :destroy, "Delete the upload") do |par|
|
192
|
-
par[:id] == upload_id && par[:repository_id] == repo_id
|
192
|
+
par[:id] == upload_id && par[:repository_id] == repo_id
|
193
193
|
end
|
194
194
|
|
195
195
|
ex.returns("")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_katello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Price
|
@@ -34,7 +34,7 @@ authors:
|
|
34
34
|
autorequire:
|
35
35
|
bindir: bin
|
36
36
|
cert_chain: []
|
37
|
-
date: 2017-
|
37
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: hammer_cli_foreman
|