soaspec 0.0.19 → 0.0.20

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: c3e53fb443e8bf646f3d5d3f92a168caa911894c
4
- data.tar.gz: 9d42eb2d035223b02e6945ee909a311602f81248
3
+ metadata.gz: 3b26b60879c4a04d6e2e732ae30d68f952c900b8
4
+ data.tar.gz: 384a4124f13e2a6fd8e744405eb7984f6933f815
5
5
  SHA512:
6
- metadata.gz: 5802c9730faf4812f1bc015e77fcf42ac1b463e9906bf18847714ccd68a1f1f0a28512c68ae40c36651319d787e230489f8cbfa754c84de510e224ec297aad36
7
- data.tar.gz: 660dc61ac22e5783d1a40e902e960f00de087eaf20001a5841eee3666a6be3383f1f2d5bab7862f31a9f70d71ffc82c4a3f64ce66044f68aa4f999fdc58f8c84
6
+ metadata.gz: 0b36fca7efbd8a658138353ae6e973dc616adfef6c358f819f60f27a5510504dd798a14e330c993bb58aa14b320433312b1fc0254058837b6189326100acf771
7
+ data.tar.gz: 626ad32c4284a2e1662bdf8755865e98c951225cf1e4cb20fc61cf4e3c01b235831239f663f96574a43d216e5da8d7f68709d5a7136888075987751658789714
data/.gitignore CHANGED
@@ -1,13 +1,13 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /logs/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /.idea/
11
-
12
- # rspec failure tracking
13
- .rspec_status
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /logs/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /.idea/
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -1,5 +1,5 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.4
5
- before_install: gem install bundler -v 1.16.0
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.4
5
+ before_install: gem install bundler -v 1.16.0
@@ -1,74 +1,74 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at samuel.garratt@integrationqa.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at samuel.garratt@integrationqa.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/ChangeLog CHANGED
@@ -1,56 +1,62 @@
1
- Version 0.0.19 / 2018-1-25
2
- * Enhancements
3
- * Added own shared examples to init script and to in built specs
4
-
5
- Version 0.0.18 / 2018-1-25
6
- * Fixes
7
- * Updated 'soaspec-init' so that it works again.
8
- * Enhancements
9
- * Added example showing representing data for request in YAML
10
-
11
- Version 0.0.17 / 2018-1-25
12
- * Fixes
13
- * Updated hash search so that it handles Array
14
-
15
- Version 0.0.16 / 2018-1-23
16
- * Fixes
17
- * Corrected logic of auto convert to hash. Previous version did not handle test specific values correctly
18
-
19
- Version 0.0.15 / 2018-1-23
20
- * Fixes
21
- * Updated code to convert string key in Savon request to key automatically by default before passing to Savon. This saves
22
- the user doing the conversion themselves.
23
-
24
- Version 0.0.14 / 2018-1-23
25
- * Fixes
26
- * Updated 'xml_to_yaml_file' exe to clean up YAML more. No more array for Hash value. Indenting needs work though.
27
- Now it's more like something you can read and pass into Savon request.
28
-
29
- Version 0.0.13 / 2018-1-23
30
- * Enhancements
31
- * Executable to create xml file from yaml
32
-
33
- Version 0.0.12 / 2018/1-22
34
- * Enhancements
35
- * Example name added to log file
36
-
37
- Version 0.0.10 / 2018-1-21
38
- * Enhancements
39
- * Added [] method to perform xpath assertion
40
- * Using Savon xpath. No need to explicitly provide namespace for xpath
41
-
42
- Version 0.0.9 / 2018-1-20
43
- * Refactoring
44
- * class_options -> savon_options - More specific
45
- * default_operation -> operation - Not default anymore so better not in name
46
- * Enhancements
47
- * Made mandatory_xpath_values method to add to 'success scenarios' shared example
48
-
49
- Version 0.0.8 / 2018-1-19
50
- * Enhancements
51
- * Added root_attributes method to add attribute to the root class
52
-
53
- Version 0.0.7 / 2018-1-19
54
- * Enhancements
55
- * Added contain_key matcher
1
+ Version 0.0.20 / 2018-1-26
2
+ * Enhancements
3
+ * Added ability to strip namespaces 'Soaspec::Environment.strip_namespaces = true'. See spec for example
4
+ * Fixes
5
+ * Made custom error and used it to make 'have_element_at_xpath' work when negated
6
+
7
+ Version 0.0.19 / 2018-1-25
8
+ * Enhancements
9
+ * Added own shared examples to init script and to in built specs
10
+
11
+ Version 0.0.18 / 2018-1-25
12
+ * Fixes
13
+ * Updated 'soaspec-init' so that it works again.
14
+ * Enhancements
15
+ * Added example showing representing data for request in YAML
16
+
17
+ Version 0.0.17 / 2018-1-25
18
+ * Fixes
19
+ * Updated hash search so that it handles Array
20
+
21
+ Version 0.0.16 / 2018-1-23
22
+ * Fixes
23
+ * Corrected logic of auto convert to hash. Previous version did not handle test specific values correctly
24
+
25
+ Version 0.0.15 / 2018-1-23
26
+ * Fixes
27
+ * Updated code to convert string key in Savon request to key automatically by default before passing to Savon. This saves
28
+ the user doing the conversion themselves.
29
+
30
+ Version 0.0.14 / 2018-1-23
31
+ * Fixes
32
+ * Updated 'xml_to_yaml_file' exe to clean up YAML more. No more array for Hash value. Indenting needs work though.
33
+ Now it's more like something you can read and pass into Savon request.
34
+
35
+ Version 0.0.13 / 2018-1-23
36
+ * Enhancements
37
+ * Executable to create xml file from yaml
38
+
39
+ Version 0.0.12 / 2018/1-22
40
+ * Enhancements
41
+ * Example name added to log file
42
+
43
+ Version 0.0.10 / 2018-1-21
44
+ * Enhancements
45
+ * Added [] method to perform xpath assertion
46
+ * Using Savon xpath. No need to explicitly provide namespace for xpath
47
+
48
+ Version 0.0.9 / 2018-1-20
49
+ * Refactoring
50
+ * class_options -> savon_options - More specific
51
+ * default_operation -> operation - Not default anymore so better not in name
52
+ * Enhancements
53
+ * Made mandatory_xpath_values method to add to 'success scenarios' shared example
54
+
55
+ Version 0.0.8 / 2018-1-19
56
+ * Enhancements
57
+ * Added root_attributes method to add attribute to the root class
58
+
59
+ Version 0.0.7 / 2018-1-19
60
+ * Enhancements
61
+ * Added contain_key matcher
56
62
  * mandatory_elements method created for SoapHandler - can be used to add tests to success scenarios (see example get_weather_web_service class for details)
data/Gemfile CHANGED
@@ -1,16 +1,16 @@
1
- source "https://rubygems.org"
2
-
3
- git_source(:gitlab) { |repo_name| "https://gitlab.com/samuel-garratt/soaspec" }
4
-
5
- # Specify your gem's dependencies in soaspec.gemspec
6
- gemspec
7
- gem 'data_magic'
8
- gem 'rest-client'
9
- gem 'savon'
10
- gem 'require_all'
11
- gem 'nokogiri'
12
- gem 'rake', '12.2.1'
13
- gem 'rspec'
14
- gem 'rspec-its'
15
- gem 'rspec_junit_formatter'
16
- gem 'xml-simple'
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:gitlab) { |repo_name| "https://gitlab.com/samuel-garratt/soaspec" }
4
+
5
+ # Specify your gem's dependencies in soaspec.gemspec
6
+ gemspec
7
+ gem 'data_magic'
8
+ gem 'rest-client'
9
+ gem 'savon'
10
+ gem 'require_all'
11
+ gem 'nokogiri'
12
+ gem 'rake', '12.2.1'
13
+ gem 'rspec'
14
+ gem 'rspec-its'
15
+ gem 'rspec_junit_formatter'
16
+ gem 'xml-simple'
@@ -1,115 +1,115 @@
1
- PATH
2
- remote: .
3
- specs:
4
- soaspec (0.0.18)
5
- rest-client (>= 2.0)
6
- rspec (~> 3.0)
7
- rspec-its (>= 1.2.0)
8
- savon (>= 2)
9
- xml-simple (>= 1.1.5)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- akami (1.3.1)
15
- gyoku (>= 0.4.0)
16
- nokogiri
17
- builder (3.2.3)
18
- concurrent-ruby (1.0.5)
19
- data_magic (1.2)
20
- faker (>= 1.1.2)
21
- yml_reader (>= 0.6)
22
- diff-lcs (1.3)
23
- domain_name (0.5.20170404)
24
- unf (>= 0.0.5, < 1.0.0)
25
- faker (1.8.5)
26
- i18n (~> 0.9.1)
27
- ffi (1.9.18-x64-mingw32)
28
- gyoku (1.3.1)
29
- builder (>= 2.1.2)
30
- http-cookie (1.0.3)
31
- domain_name (~> 0.5)
32
- httpi (2.4.2)
33
- rack
34
- socksify
35
- i18n (0.9.1)
36
- concurrent-ruby (~> 1.0)
37
- mime-types (3.1)
38
- mime-types-data (~> 3.2015)
39
- mime-types-data (3.2016.0521)
40
- mini_portile2 (2.3.0)
41
- netrc (0.11.0)
42
- nokogiri (1.8.1)
43
- mini_portile2 (~> 2.3.0)
44
- nokogiri (1.8.1-x64-mingw32)
45
- mini_portile2 (~> 2.3.0)
46
- nori (2.6.0)
47
- rack (2.0.3)
48
- rake (12.2.1)
49
- require_all (1.5.0)
50
- rest-client (2.0.2)
51
- http-cookie (>= 1.0.2, < 2.0)
52
- mime-types (>= 1.16, < 4.0)
53
- netrc (~> 0.8)
54
- rest-client (2.0.2-x64-mingw32)
55
- ffi (~> 1.9)
56
- http-cookie (>= 1.0.2, < 2.0)
57
- mime-types (>= 1.16, < 4.0)
58
- netrc (~> 0.8)
59
- rspec (3.7.0)
60
- rspec-core (~> 3.7.0)
61
- rspec-expectations (~> 3.7.0)
62
- rspec-mocks (~> 3.7.0)
63
- rspec-core (3.7.0)
64
- rspec-support (~> 3.7.0)
65
- rspec-expectations (3.7.0)
66
- diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.7.0)
68
- rspec-its (1.2.0)
69
- rspec-core (>= 3.0.0)
70
- rspec-expectations (>= 3.0.0)
71
- rspec-mocks (3.7.0)
72
- diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.7.0)
74
- rspec-support (3.7.0)
75
- rspec_junit_formatter (0.3.0)
76
- rspec-core (>= 2, < 4, != 2.12.0)
77
- savon (2.11.2)
78
- akami (~> 1.2)
79
- builder (>= 2.1.2)
80
- gyoku (~> 1.2)
81
- httpi (~> 2.3)
82
- nokogiri (>= 1.4.0)
83
- nori (~> 2.4)
84
- wasabi (~> 3.4)
85
- socksify (1.7.1)
86
- unf (0.1.4)
87
- unf_ext
88
- unf_ext (0.0.7.4)
89
- unf_ext (0.0.7.4-x64-mingw32)
90
- wasabi (3.5.0)
91
- httpi (~> 2.0)
92
- nokogiri (>= 1.4.2)
93
- xml-simple (1.1.5)
94
- yml_reader (0.7)
95
-
96
- PLATFORMS
97
- ruby
98
- x64-mingw32
99
-
100
- DEPENDENCIES
101
- bundler (~> 1.16)
102
- data_magic
103
- nokogiri
104
- rake (= 12.2.1)
105
- require_all
106
- rest-client
107
- rspec
108
- rspec-its
109
- rspec_junit_formatter
110
- savon
111
- soaspec!
112
- xml-simple
113
-
114
- BUNDLED WITH
115
- 1.16.0
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ soaspec (0.0.20)
5
+ rest-client (>= 2.0)
6
+ rspec (~> 3.0)
7
+ rspec-its (>= 1.2.0)
8
+ savon (>= 2)
9
+ xml-simple (>= 1.1.5)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ akami (1.3.1)
15
+ gyoku (>= 0.4.0)
16
+ nokogiri
17
+ builder (3.2.3)
18
+ concurrent-ruby (1.0.5)
19
+ data_magic (1.2)
20
+ faker (>= 1.1.2)
21
+ yml_reader (>= 0.6)
22
+ diff-lcs (1.3)
23
+ domain_name (0.5.20170404)
24
+ unf (>= 0.0.5, < 1.0.0)
25
+ faker (1.8.5)
26
+ i18n (~> 0.9.1)
27
+ ffi (1.9.18-x64-mingw32)
28
+ gyoku (1.3.1)
29
+ builder (>= 2.1.2)
30
+ http-cookie (1.0.3)
31
+ domain_name (~> 0.5)
32
+ httpi (2.4.2)
33
+ rack
34
+ socksify
35
+ i18n (0.9.1)
36
+ concurrent-ruby (~> 1.0)
37
+ mime-types (3.1)
38
+ mime-types-data (~> 3.2015)
39
+ mime-types-data (3.2016.0521)
40
+ mini_portile2 (2.3.0)
41
+ netrc (0.11.0)
42
+ nokogiri (1.8.1)
43
+ mini_portile2 (~> 2.3.0)
44
+ nokogiri (1.8.1-x64-mingw32)
45
+ mini_portile2 (~> 2.3.0)
46
+ nori (2.6.0)
47
+ rack (2.0.3)
48
+ rake (12.2.1)
49
+ require_all (1.5.0)
50
+ rest-client (2.0.2)
51
+ http-cookie (>= 1.0.2, < 2.0)
52
+ mime-types (>= 1.16, < 4.0)
53
+ netrc (~> 0.8)
54
+ rest-client (2.0.2-x64-mingw32)
55
+ ffi (~> 1.9)
56
+ http-cookie (>= 1.0.2, < 2.0)
57
+ mime-types (>= 1.16, < 4.0)
58
+ netrc (~> 0.8)
59
+ rspec (3.7.0)
60
+ rspec-core (~> 3.7.0)
61
+ rspec-expectations (~> 3.7.0)
62
+ rspec-mocks (~> 3.7.0)
63
+ rspec-core (3.7.0)
64
+ rspec-support (~> 3.7.0)
65
+ rspec-expectations (3.7.0)
66
+ diff-lcs (>= 1.2.0, < 2.0)
67
+ rspec-support (~> 3.7.0)
68
+ rspec-its (1.2.0)
69
+ rspec-core (>= 3.0.0)
70
+ rspec-expectations (>= 3.0.0)
71
+ rspec-mocks (3.7.0)
72
+ diff-lcs (>= 1.2.0, < 2.0)
73
+ rspec-support (~> 3.7.0)
74
+ rspec-support (3.7.0)
75
+ rspec_junit_formatter (0.3.0)
76
+ rspec-core (>= 2, < 4, != 2.12.0)
77
+ savon (2.11.2)
78
+ akami (~> 1.2)
79
+ builder (>= 2.1.2)
80
+ gyoku (~> 1.2)
81
+ httpi (~> 2.3)
82
+ nokogiri (>= 1.4.0)
83
+ nori (~> 2.4)
84
+ wasabi (~> 3.4)
85
+ socksify (1.7.1)
86
+ unf (0.1.4)
87
+ unf_ext
88
+ unf_ext (0.0.7.4)
89
+ unf_ext (0.0.7.4-x64-mingw32)
90
+ wasabi (3.5.0)
91
+ httpi (~> 2.0)
92
+ nokogiri (>= 1.4.2)
93
+ xml-simple (1.1.5)
94
+ yml_reader (0.7)
95
+
96
+ PLATFORMS
97
+ ruby
98
+ x64-mingw32
99
+
100
+ DEPENDENCIES
101
+ bundler (~> 1.16)
102
+ data_magic
103
+ nokogiri
104
+ rake (= 12.2.1)
105
+ require_all
106
+ rest-client
107
+ rspec
108
+ rspec-its
109
+ rspec_junit_formatter
110
+ savon
111
+ soaspec!
112
+ xml-simple
113
+
114
+ BUNDLED WITH
115
+ 1.16.0