g5_foundation_client 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c378d986a14681eda34c3c3b37b95e0122f67c3
|
4
|
+
data.tar.gz: ed962e0c317bccff5bb00500b4329cefe0af2efa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d868f7739a7b473260b4e532ebb0790d2c6bb9b6c9ec0cf0142628b9c78bf0086f85e068901a3be3e518cd3302cc1dfb5c1c6d06b451a86bb80e289b3dd14fb
|
7
|
+
data.tar.gz: 585136c329f697c946aa9430ece2a4d0b73a306d132cafb398a7fa6122c7d19f327c4d90076ef61ca9bc06d4ed41292f445ddae341cc15a98eae9e9d2b9968cb
|
@@ -19,7 +19,7 @@ class G5FoundationClient::IntegrationSetting
|
|
19
19
|
'inventory' == self.vendor_action
|
20
20
|
end
|
21
21
|
|
22
|
-
[:vendor_action, :strategy_name, :vendor_endpoint, :vendor_user_name, :vendor_password].each do |field|
|
22
|
+
[:job_frequency_in_minutes, :vendor_action, :strategy_name, :vendor_endpoint, :vendor_user_name, :vendor_password].each do |field|
|
23
23
|
define_method(field) { self.integration_setting_hash[field] }
|
24
24
|
end
|
25
25
|
|
@@ -4,6 +4,7 @@ describe G5FoundationClient::IntegrationSetting do
|
|
4
4
|
before { G5FoundationClient.access_token = 'token' }
|
5
5
|
|
6
6
|
describe 'instantiating with a hash' do
|
7
|
+
let(:job_frequency_in_minutes) { 60 }
|
7
8
|
let(:service_url) { 'http://inventory.service.example.com' }
|
8
9
|
let(:location) { 'location' }
|
9
10
|
let(:strategy_name) { 'Centershift' }
|
@@ -12,17 +13,19 @@ describe G5FoundationClient::IntegrationSetting do
|
|
12
13
|
let(:vendor_password) { 'pw' }
|
13
14
|
let(:vendor_action) { 'inventory' }
|
14
15
|
let(:custom_integration_settings) { {foo: 'bar'} }
|
15
|
-
let(:init_hash) { {service_url:
|
16
|
-
location:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
let(:init_hash) { {service_url: service_url,
|
17
|
+
location: location,
|
18
|
+
job_frequency_in_minutes: job_frequency_in_minutes,
|
19
|
+
strategy_name: strategy_name,
|
20
|
+
vendor_endpoint: vendor_endpoint,
|
21
|
+
vendor_user_name: vendor_user_name,
|
22
|
+
vendor_password: vendor_password,
|
23
|
+
vendor_action: 'inventory'
|
22
24
|
} }
|
23
25
|
|
24
26
|
subject { G5FoundationClient::IntegrationSetting.new(init_hash) }
|
25
27
|
|
28
|
+
its(:job_frequency_in_minutes) { should eql(job_frequency_in_minutes) }
|
26
29
|
its(:location) { should eql(location) }
|
27
30
|
its(:vendor_action) { should eql(vendor_action) }
|
28
31
|
its(:vendor_endpoint) { should eql(vendor_endpoint) }
|