configuration_service 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/consuming.feature +1 -0
- data/features/step_definitions/consuming_steps.rb +4 -0
- data/lib/configuration_service/test/orchestration_provider.rb +5 -1
- data/lib/configuration_service/test/orchestrator.rb +4 -0
- data/lib/configuration_service/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 799ae54df3cac75e5657db7dff7dbc102049524a
|
4
|
+
data.tar.gz: f1ca9d20a5cd027417b7775787b316680e7674c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d9d8bda7a9a32f5bad1af44cd56bfa5385d77ddf1d9c35a879ef9fd7e7bc73edad3aa692b8c22cc3eaaa8a2ceb0a1417fc32bbfaac6dee6069923146edec48b
|
7
|
+
data.tar.gz: dcb67bfcd33459015d05b7f257b56ecf53add9f23de621b97f61c36500497513ac035b317946307e2b613c209b70483d2fc03ad2a097a3a30e35ff81c26b2209
|
data/features/consuming.feature
CHANGED
@@ -14,6 +14,7 @@ Feature: Consuming configuration data
|
|
14
14
|
Given existing configuration data containing references
|
15
15
|
And the referenced configuration exists
|
16
16
|
And I am allowed to request configuration
|
17
|
+
And I have specified configuration should be resolved
|
17
18
|
When I request configuration data
|
18
19
|
Then the specified configuration should be returned
|
19
20
|
And the references should be replaced with the referenced configuration data
|
@@ -2,6 +2,10 @@ Given(/^a metadata filter$/) do
|
|
2
2
|
pending "Searching with metadata filters not yet supported"
|
3
3
|
end
|
4
4
|
|
5
|
+
Given(/^I have specified configuration should be resolved$/) do
|
6
|
+
@test.given_configuration_should_be_resolved
|
7
|
+
end
|
8
|
+
|
5
9
|
Then(/^I should receive a 'no match' indication$/) do
|
6
10
|
expect(@test.request_not_matched?).to eq true
|
7
11
|
end
|
@@ -134,6 +134,10 @@ module ConfigurationService
|
|
134
134
|
@metadata = {"version" => "1.0"}
|
135
135
|
end
|
136
136
|
|
137
|
+
def given_configuration_should_be_resolved
|
138
|
+
@resolve = true
|
139
|
+
end
|
140
|
+
|
137
141
|
##
|
138
142
|
# @see ConfigurationService::Test::Orchestrator#given_existing_configuration
|
139
143
|
#
|
@@ -327,7 +331,7 @@ module ConfigurationService
|
|
327
331
|
context["provider_id"] = 'broken'
|
328
332
|
end
|
329
333
|
|
330
|
-
context["decorators"] = ['reference_resolver'] if @references
|
334
|
+
context["decorators"] = ['reference_resolver'] if @resolve or @references
|
331
335
|
ConfigurationService::Factory.create_client(context)
|
332
336
|
end
|
333
337
|
|
@@ -55,6 +55,10 @@ module ConfigurationService
|
|
55
55
|
@provider.given_existing_configuration_containing_references
|
56
56
|
end
|
57
57
|
|
58
|
+
def given_configuration_should_be_resolved
|
59
|
+
@provider.given_configuration_should_be_resolved
|
60
|
+
end
|
61
|
+
|
58
62
|
def given_referenced_configuration_exists
|
59
63
|
@provider.given_referenced_configuration_exists
|
60
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configuration_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sheldon Hearn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -160,4 +160,3 @@ signing_key:
|
|
160
160
|
specification_version: 4
|
161
161
|
summary: Configuration service
|
162
162
|
test_files: []
|
163
|
-
has_rdoc:
|