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 +4 -4
- data/lib/alinta-testing/steps/azure.rb +11 -3
- data/lib/alinta-testing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d325fa498f18f0933bde6986524a472e7f020e2c62ec8bad19947af7921b22e5
|
4
|
+
data.tar.gz: 5c13ee4ddb2353bd87b63d34d97ffd282170859f400f9026086272a6e00fe2eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
96
|
-
|
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
|
|