cucumber-http 0.3.1 → 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/README.md +19 -3
- data/lib/cucumber/http/http_steps.rb +30 -0
- data/lib/cucumber/http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 760307f677ade8fcdc3a4b6629f7143e311377f2856d57664f0a4ccfed60fa24
|
4
|
+
data.tar.gz: 68e7faacc18737c3ef9ceb560ae4f362610dfeaf92a4fa08dd0723c2ef36827b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8500cc4964f737ee94d3a28ceb1f10c1b2996e29171f04219ba7e0ed0039b996190a4d1ec57bbaae56d5bdf1eb8ae5a0422440f69561b6398cb1ab645651967d
|
7
|
+
data.tar.gz: 9373aad646952bac2bb998744238f5ff7f143531c385df8e4cf391f429fe2560af3c37f6c60ad66b985cd99f0ecf2366701b2c3d284ea2438c4c5951be205e2f
|
data/README.md
CHANGED
@@ -38,7 +38,7 @@ Feature: Test the UDB3 labels API
|
|
38
38
|
Background:
|
39
39
|
Given I am using the UDB3 development environment
|
40
40
|
And I am authorized as user "centraal_beheerder"
|
41
|
-
And I send and accept
|
41
|
+
And I send "application/json" and accept "application/ld+json"
|
42
42
|
|
43
43
|
@labelcreate
|
44
44
|
Scenario: Create label
|
@@ -66,6 +66,22 @@ Then /^the elapsed time should be less than (#{CAPTURE_FLOAT}) seconds?$/
|
|
66
66
|
Given /^I set headers?:$/
|
67
67
|
```
|
68
68
|
|
69
|
+
```ruby
|
70
|
+
Given /^I send "(.*?)"$/
|
71
|
+
```
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
Given /^I accept "(.*?)"$/
|
75
|
+
```
|
76
|
+
|
77
|
+
```ruby
|
78
|
+
Given /^I send and accept "(.*?)"$/
|
79
|
+
```
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
Given /^I send "(.*?)" and accept "(.*?)"$/
|
83
|
+
```
|
84
|
+
|
69
85
|
```ruby
|
70
86
|
Given /^I send "(.*?)" and accept (XML|JSON)$/
|
71
87
|
```
|
@@ -127,7 +143,7 @@ When /^I create an organizer with a random name of (#{CAPTURE_INTEGER}) characte
|
|
127
143
|
steps %Q{
|
128
144
|
Given I am using the UDB3 development environment
|
129
145
|
And I am authorized as user "centraal_beheerder"
|
130
|
-
And I send and accept
|
146
|
+
And I send and accept "application/json"
|
131
147
|
When I set the JSON request payload to:
|
132
148
|
"""
|
133
149
|
{"mainLanguage":"nl","website":"https://www.#{name}.be","name":"#{name}","contact":[]}
|
@@ -144,7 +160,7 @@ When /^I create a role with a random name of (#{CAPTURE_INTEGER}) characters?$/
|
|
144
160
|
steps %Q{
|
145
161
|
Given I am using the UDB3 development environment
|
146
162
|
And I am authorized as user "centraal_beheerder"
|
147
|
-
And I send and accept
|
163
|
+
And I send and accept "application/json"
|
148
164
|
When I set the JSON request payload to:
|
149
165
|
"""
|
150
166
|
{ "name": "#{name}" }
|
@@ -5,6 +5,36 @@ Given /^I set headers?:$/ do |hdrs|
|
|
5
5
|
hdrs.rows_hash.each { |name, value| add_header(name, value) }
|
6
6
|
end
|
7
7
|
|
8
|
+
Given /^I send "(.*?)"$/ do |content_type|
|
9
|
+
steps %Q{
|
10
|
+
Given I set headers:
|
11
|
+
| Content-Type | #{content_type} |
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
Given /^I accept "(.*?)"$/ do |accept_type|
|
16
|
+
steps %Q{
|
17
|
+
Given I set headers:
|
18
|
+
| Accept | #{accept_type} |
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
Given /^I send and accept "(.*?)"$/ do |type|
|
23
|
+
steps %Q{
|
24
|
+
Given I set headers:
|
25
|
+
| Content-Type | #{type} |
|
26
|
+
| Accept | #{type} |
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
Given /^I send "(.*?)" and accept "(.*?)"$/ do |content_type, accept_type|
|
31
|
+
steps %Q{
|
32
|
+
Given I set headers:
|
33
|
+
| Content-Type | #{content_type} |
|
34
|
+
| Accept | #{accept_type} |
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
8
38
|
Given /^I send "(.*?)" and accept (XML|JSON)$/ do |content_type, accept_type|
|
9
39
|
steps %Q{
|
10
40
|
Given I set headers:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristof Willaert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|