alinta-testing 0.1
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 +7 -0
- data/lib/alinta-testing.rb +1 -0
- data/lib/alinta-testing/steps.rb +16 -0
- data/lib/alinta-testing/version.rb +3 -0
- metadata +61 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: f38820133cc2414f19de639be773bfc30d528aa4
|
|
4
|
+
data.tar.gz: 64da3b0c110a3777eecb97ee034df61fad0e8f0f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ff9ef85208b5f8f4c05c2757846bbec8c8c8a93e4611b1e9da50a803ce17fa4a51a6458872919cefe9d26d17cb5ee83737d4411d441d9680a0e498c0882bc87d
|
|
7
|
+
data.tar.gz: 8365a90f1ab433999b2f37b4d4a23017287355c41954c31db77767d5109dbbff0989d4669ba6be68fec8ace97f154d4685e51dca68683b4825bb7814fea07d7a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'alinta-testing/steps'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'cucumber-rest-bdd'
|
|
2
|
+
|
|
3
|
+
Given(/^I am an API management authenticated client$/) do
|
|
4
|
+
tenant_id = ENV['ALINTA_TENANTID']
|
|
5
|
+
client_id = ENV['ALINTA_CLIENTID']
|
|
6
|
+
client_secret = ENV['ALINTA_CLIENTSECRET']
|
|
7
|
+
vault_name = ENV['ALINTA_VAULT']
|
|
8
|
+
if tenant_id.nil? or client_id.nil? or client_secret.nil? or vault_name.nil?
|
|
9
|
+
fail('One or more required environment variables have not been defined.')
|
|
10
|
+
end
|
|
11
|
+
steps %Q{
|
|
12
|
+
Given I retrieve the API Management subscription key secret "APIMgmnt--End2End--Starter--Primary" from Azure Storage Vault "#{vault_name}" using tenant "#{tenant_id}" with credentials "#{client_id}" and "#{client_secret}"
|
|
13
|
+
And I am a client
|
|
14
|
+
And I add the API Management key header
|
|
15
|
+
}
|
|
16
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: alinta-testing
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '0.1'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Matt Hosking
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: alinta-cucumber-rest-bdd
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0.5'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0.5'
|
|
27
|
+
description: alinta-testing performs common tasks for end to end tests in cucumber.
|
|
28
|
+
email:
|
|
29
|
+
- matt.hosking@alintaenergy.com.au
|
|
30
|
+
executables: []
|
|
31
|
+
extensions: []
|
|
32
|
+
extra_rdoc_files: []
|
|
33
|
+
files:
|
|
34
|
+
- lib/alinta-testing.rb
|
|
35
|
+
- lib/alinta-testing/steps.rb
|
|
36
|
+
- lib/alinta-testing/version.rb
|
|
37
|
+
homepage: https://github.com/AlintaEnergy/alinta-testing
|
|
38
|
+
licenses:
|
|
39
|
+
- MIT
|
|
40
|
+
metadata: {}
|
|
41
|
+
post_install_message:
|
|
42
|
+
rdoc_options: []
|
|
43
|
+
require_paths:
|
|
44
|
+
- lib
|
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: 2.4.0
|
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
requirements: []
|
|
56
|
+
rubyforge_project:
|
|
57
|
+
rubygems_version: 2.6.14
|
|
58
|
+
signing_key:
|
|
59
|
+
specification_version: 4
|
|
60
|
+
summary: Common functionality for Alinta Energy end to end tests
|
|
61
|
+
test_files: []
|