alinta-testing 0.3.7 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be0d68982a7c396ad4cbc81f7ce64eee09da07545dd3923eb53643ba767b4ffb
4
- data.tar.gz: c133d4fd04fbea2cf3c99e587535f85c3bb235ddef36e93795665f0b92d674d1
3
+ metadata.gz: d325fa498f18f0933bde6986524a472e7f020e2c62ec8bad19947af7921b22e5
4
+ data.tar.gz: 5c13ee4ddb2353bd87b63d34d97ffd282170859f400f9026086272a6e00fe2eb
5
5
  SHA512:
6
- metadata.gz: af9830ca354459d3d23c41612971f0889fee3b78f12a1294a5049af0c300f6c06b9cb58455e49179d269b9172e0be863916784ccec08a07397788ec1da67438b
7
- data.tar.gz: 17dde1bbca13aaa9a760dc3b1541561932410d13e8f7fa78c60895ca094a0072cf84f0ed827cb9f62edec1677e021b385bbe5e5441228833d72db7c49cf89499
6
+ metadata.gz: 38c0df80c6b24ec7205ff1ae4acfab9a8a3f9e3001fa186151632d13e2ad854675a6d1aac7fd6e2b1639bc9d7b7fe29de040b139a17520b6514b8ebc70a1f59c
7
+ data.tar.gz: f7f1e028f36a2cba37ab78b5daf5ce3fddd988161b5a863530d568781142f261c8833bdd646ab895f51dfb1ebb5be73952dd68c4699e7be6c5b486f82f8b15a4
@@ -88,11 +88,19 @@ Given("I retrieve the secret {string} from Azure Storage Vault {string} using ac
88
88
  }
89
89
  end
90
90
 
91
+ Given("I am issuing versioned requests") do |resource|
92
+ if ENV['api_version'] != nil && ENV['api_version'] != ""
93
+ @urlbasepath = ENV['api_version']
94
+ @urlbasepath = "#{@urlbasepath}/" unless @urlbasepath.end_with?('/')
95
+ end
96
+ end
97
+
91
98
  Given("I am issuing versioned requests for {resource_name}") do |resource|
92
- version = ENV['api_version']
93
99
  @urlbasepath = resource
94
100
  @urlbasepath = "#{@urlbasepath}/" unless @urlbasepath.end_with?('/')
95
- @urlbasepath = "#{@urlbasepath}#{version}" unless version.to_s.empty?
96
- @urlbasepath = "#{@urlbasepath}/" unless @urlbasepath.end_with?('/')
101
+ if ENV['api_version'] != nil && ENV['api_version'] != ""
102
+ @urlbasepath = "#{@urlbasepath}#{ENV['api_version']}"
103
+ @urlbasepath = "#{@urlbasepath}/" unless @urlbasepath.end_with?('/')
104
+ end
97
105
  end
98
106
 
@@ -1,3 +1,3 @@
1
1
  module AlintaTesting
2
- VERSION = "0.3.7"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alinta-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hosking