scooter 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTM1YTEzYzFmZmNlNzZjNzNkZjk1M2M0OTgyYWJiYTNlMTgyYmIxMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWViZWE5ZTdiOGUzNDRmMjc0ZmI4YWVmM2ZjNDJjMWQ0NzM1ODY4ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjRiZDUwMTIzNTllZDk3ZDA2MDNlMjEwNWUzODhmYzFmNmI4OWI2ZjU1OWE1
|
10
|
+
NDc0ZWJkY2JkYTQ1MmQzMDE5MzY4ZjIyNmRmYzBmMzAxOGUyYTZjZTYzZGYz
|
11
|
+
NzU0NTYxNmE4OGZhN2Y1ZjE4MWVhNTNhZDQ4YzYwNjgzNWVlNjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmJjMTQ5NTNmOGM1MDRhMzAwNDdiZDBjNzQ0MDM3NGViMDVkNGJmM2YyNzU2
|
14
|
+
ZjI2OGNhNzBkMTE1N2NlNTIxMGQ3YTU0MjE3ZDFlODEzZjBmY2Y0NzUwYjFj
|
15
|
+
NDMwOTQyOGFiZjg0ZmUzMmNhNjcxNGJkZDkzM2I5YjkzODA0MGY=
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source ENV['GEM_SOURCE'] || 'https://
|
1
|
+
source ENV['GEM_SOURCE'] || 'https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/'
|
2
2
|
#this will probably not be available on rubygems, at least initially
|
3
|
-
#will probably be only available at https://
|
3
|
+
#will probably be only available at https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
|
4
4
|
#TODO: Change this line when it is actually available internally
|
5
5
|
|
6
6
|
# Specify your gem's dependencies in scooter.gemspec
|
data/lib/scooter/version.rb
CHANGED
@@ -241,4 +241,21 @@ describe Scooter::HttpDispatchers::OrchestratorDispatcher do
|
|
241
241
|
expect(response.env.url.query).to be(nil)
|
242
242
|
end
|
243
243
|
end
|
244
|
+
|
245
|
+
describe '.create_dumpling' do
|
246
|
+
let(:dumpling) {{
|
247
|
+
'display-name' => 'dumplings two',
|
248
|
+
'tasks' => ['echo', 'package::status'],
|
249
|
+
'nodes' => ['node2']
|
250
|
+
}}
|
251
|
+
|
252
|
+
it {is_expected.not_to respond_to(:create_dumpling).with(0).arguments }
|
253
|
+
it {is_expected.to respond_to(:create_dumpling).with(1).arguments }
|
254
|
+
it {is_expected.not_to respond_to(:create_dumpling).with(2).arguments }
|
255
|
+
|
256
|
+
it 'should take a single dumpling object' do
|
257
|
+
expect(orchestrator_api.connection).to receive(:post).with("v1/dumplings")
|
258
|
+
expect{ orchestrator_api.create_dumpling(dumpling) }.not_to raise_error
|
259
|
+
end
|
260
|
+
end
|
244
261
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scooter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|