Skip to content

Commit cfad5d4

Browse files
committed
fix: fix Behat
1 parent e2fd9a1 commit cfad5d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4854
-53
lines changed

features/doctrine/boolean_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ Feature: Boolean filter on collections
471471
"properties": {
472472
"@id": {"pattern": "^/converted_booleans/(2|4)$"},
473473
"@type": {"pattern": "^ConvertedBoolean"},
474+
"operation": {"type": "array"},
474475
"name_converted": {"type": "boolean"},
475476
"id": {"type": "integer", "minimum":2, "maximum": 4}
476477
},

features/doctrine/date_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ Feature: Date filter on collections
582582
"properties": {
583583
"@id": {"pattern": "^/converted_dates/(29|30)$"},
584584
"@type": {"pattern": "^ConvertedDate"},
585+
"operation": {"type": "array"},
585586
"name_converted": {"type": "string"},
586587
"id": {"type": "integer", "minimum":29, "maximum": 30}
587588
},

features/doctrine/exists_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Feature: Exists filter on collections
169169
"properties": {
170170
"@id": {"pattern": "^/converted_strings/(1|3)$"},
171171
"@type": {"pattern": "^ConvertedString"},
172+
"operation": {"type": "array"},
172173
"name_converted": {"pattern": "^name#(1|3)$"},
173174
"id": {"type": "integer", "minimum":1, "maximum": 3}
174175
},

features/doctrine/issue6175/standard_put_entity_inheritence.feature

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,29 @@ Feature: Update properties of a resource that are inherited with standard PUT op
1919
"@context": "/contexts/DummyMappedSubclass",
2020
"@id": "/dummy_mapped_subclasses/1",
2121
"@type": "DummyMappedSubclass",
22+
"operation": [
23+
{
24+
"@type": [
25+
"hydra:Operation",
26+
"schema:FindAction"
27+
],
28+
"hydra:description": "Retrieves a DummyMappedSubclass resource.",
29+
"hydra:method": "GET",
30+
"hydra:title": "getDummyMappedSubclass",
31+
"returns": "owl:Nothing"
32+
},
33+
{
34+
"@type": [
35+
"hydra:Operation",
36+
"schema:ReplaceAction"
37+
],
38+
"expects": "DummyMappedSubclass",
39+
"hydra:description": "Replaces the DummyMappedSubclass resource.",
40+
"hydra:method": "PUT",
41+
"hydra:title": "putDummyMappedSubclass",
42+
"returns": "DummyMappedSubclass"
43+
}
44+
],
2245
"id": 1,
2346
"foo": "updated value"
2447
}

features/doctrine/numeric_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ Feature: Numeric filter on collections
159159
"properties": {
160160
"@id": {"pattern": "^/converted_integers/(2|3)$"},
161161
"@type": {"pattern": "^ConvertedInteger$"},
162+
"operation": {"type": "array"},
162163
"name_converted": {"type": "integer"},
163164
"id": {"type": "integer", "minimum":2, "maximum": 3}
164165
},

features/doctrine/order_filter.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ Feature: Order filter on collections
733733
"properties": {
734734
"@id": {"pattern": "^/converted_integers/3$"},
735735
"@type": {"pattern": "^ConvertedInteger$"},
736+
"operation": {"type": "array"},
736737
"name_converted": {"type": "integer"},
737738
"id": {"type": "integer", "minimum":3, "maximum": 3}
738739
},
@@ -744,6 +745,7 @@ Feature: Order filter on collections
744745
"properties": {
745746
"@id": {"pattern": "^/converted_integers/2$"},
746747
"@type": {"pattern": "^ConvertedInteger$"},
748+
"operation": {"type": "array"},
747749
"name_converted": {"type": "integer"},
748750
"id": {"type": "integer", "minimum":2, "maximum": 2}
749751
},
@@ -755,6 +757,7 @@ Feature: Order filter on collections
755757
"properties": {
756758
"@id": {"pattern": "^/converted_integers/1$"},
757759
"@type": {"pattern": "^ConvertedInteger$"},
760+
"operation": {"type": "array"},
758761
"name_converted": {"type": "integer"},
759762
"id": {"type": "integer", "minimum":1, "maximum": 1}
760763
},

features/doctrine/range_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ Feature: Range filter on collections
447447
"properties": {
448448
"@id": {"pattern": "^/converted_integers/(1|2)$"},
449449
"@type": {"pattern": "^ConvertedInteger$"},
450+
"operation": {"type": "array"},
450451
"name_converted": {"type": "integer"},
451452
"id": {"type": "integer", "minimum":1, "maximum": 2}
452453
},

features/elasticsearch/read.feature

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,39 @@ Feature: Retrieve from Elasticsearch
1515
"@context": "/contexts/User",
1616
"@id": "/users/116b83f8-6c32-48d8-8e28-c5c247532d3f",
1717
"@type": "User",
18+
"operation": [
19+
{
20+
"@type": ["hydra:Operation", "schema:FindAction"],
21+
"hydra:description": "Retrieves a User resource.",
22+
"hydra:method": "GET",
23+
"hydra:title": "getUser",
24+
"returns": "User"
25+
},
26+
{
27+
"@type": ["hydra:Operation", "schema:ReplaceAction"],
28+
"expects": "User",
29+
"hydra:description": "Replaces the User resource.",
30+
"hydra:method": "PUT",
31+
"hydra:title": "putUser",
32+
"returns": "User"
33+
},
34+
{
35+
"@type": "hydra:Operation",
36+
"expects": "User",
37+
"expectsHeader": [{"headerName": "Content-Type", "possibleValue": ["application/merge-patch+json", "application/vnd.api+json"]}],
38+
"hydra:description": "Updates the User resource.",
39+
"hydra:method": "PATCH",
40+
"hydra:title": "patchUser",
41+
"returns": "User"
42+
},
43+
{
44+
"@type": ["hydra:Operation", "schema:DeleteAction"],
45+
"hydra:description": "Deletes the User resource.",
46+
"hydra:method": "DELETE",
47+
"hydra:title": "deleteUser",
48+
"returns": "owl:Nothing"
49+
}
50+
],
1851
"id": "116b83f8-6c32-48d8-8e28-c5c247532d3f",
1952
"gender": "male",
2053
"age": 31,
@@ -392,6 +425,39 @@ Feature: Retrieve from Elasticsearch
392425
"@context": "/contexts/Library",
393426
"@id": "/libraries/116b83f8-6c32-48d8-8e28-c5c247532d3f",
394427
"@type": "Library",
428+
"operation": [
429+
{
430+
"@type": ["hydra:Operation", "schema:FindAction"],
431+
"hydra:description": "Retrieves a Library resource.",
432+
"hydra:method": "GET",
433+
"hydra:title": "getLibrary",
434+
"returns": "Library"
435+
},
436+
{
437+
"@type": ["hydra:Operation", "schema:ReplaceAction"],
438+
"expects": "Library",
439+
"hydra:description": "Replaces the Library resource.",
440+
"hydra:method": "PUT",
441+
"hydra:title": "putLibrary",
442+
"returns": "Library"
443+
},
444+
{
445+
"@type": "hydra:Operation",
446+
"expects": "Library",
447+
"expectsHeader": [{"headerName": "Content-Type", "possibleValue": ["application/merge-patch+json", "application/vnd.api+json"]}],
448+
"hydra:description": "Updates the Library resource.",
449+
"hydra:method": "PATCH",
450+
"hydra:title": "patchLibrary",
451+
"returns": "Library"
452+
},
453+
{
454+
"@type": ["hydra:Operation", "schema:DeleteAction"],
455+
"hydra:description": "Deletes the Library resource.",
456+
"hydra:method": "DELETE",
457+
"hydra:title": "deleteLibrary",
458+
"returns": "owl:Nothing"
459+
}
460+
],
395461
"id": "116b83f8-6c32-48d8-8e28-c5c247532d3f",
396462
"gender": "male",
397463
"age": 31,

features/http_cache/tag_collector_service.feature

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,52 @@ Feature: Cache invalidation through HTTP Cache tags (custom TagCollector service
4646
"@context": "/contexts/RelationEmbedder",
4747
"@id": "/relation_embedders/2",
4848
"@type": "RelationEmbedder",
49+
"operation": [
50+
{
51+
"@type": "hydra:Operation",
52+
"hydra:description": "Retrieves a RelationEmbedder resource.",
53+
"hydra:method": "GET",
54+
"hydra:title": "A custom operation",
55+
"returns": "xsd:string"
56+
},
57+
{
58+
"@type": "hydra:Operation",
59+
"expects": "RelationEmbedder",
60+
"hydra:description": "Replaces the RelationEmbedder resource.",
61+
"hydra:method": "PUT",
62+
"hydra:title": "A custom operation",
63+
"returns": "xsd:string"
64+
},
65+
{
66+
"@type": "hydra:Operation",
67+
"hydra:description": "Deletes the RelationEmbedder resource.",
68+
"hydra:method": "DELETE",
69+
"hydra:title": "A custom operation",
70+
"returns": "xsd:string"
71+
},
72+
{
73+
"@type": "hydra:Operation",
74+
"hydra:description": "Retrieves a RelationEmbedder resource.",
75+
"hydra:method": "GET",
76+
"hydra:title": "A custom operation",
77+
"returns": "xsd:string"
78+
},
79+
{
80+
"@type": "hydra:Operation",
81+
"hydra:description": "Retrieves a RelationEmbedder resource.",
82+
"hydra:method": "GET",
83+
"hydra:title": "A custom operation",
84+
"returns": "xsd:string"
85+
},
86+
{
87+
"@type": "hydra:Operation",
88+
"expects": "RelationEmbedder",
89+
"hydra:description": "Replaces the RelationEmbedder resource.",
90+
"hydra:method": "PUT",
91+
"hydra:title": "A custom operation",
92+
"returns": "xsd:string"
93+
}
94+
],
4995
"krondstadt": "Krondstadt",
5096
"anotherRelated": {
5197
"@id": "/related_dummies/1",

features/hydra/error.feature

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,48 @@ Feature: Error handling
4040
"@context": "/contexts/ConstraintViolation",
4141
"@id": "/validation_errors/c1051bb4-d103-4f74-8988-acbcafc7fdc3",
4242
"@type": "ConstraintViolation",
43+
"operation": [
44+
{
45+
"@type": [
46+
"hydra:Operation",
47+
"schema:FindAction"
48+
],
49+
"hydra:description": "Retrieves a ConstraintViolation resource.",
50+
"hydra:method": "GET",
51+
"hydra:title": "getConstraintViolation",
52+
"returns": "ConstraintViolation"
53+
},
54+
{
55+
"@type": [
56+
"hydra:Operation",
57+
"schema:FindAction"
58+
],
59+
"hydra:description": "Retrieves a ConstraintViolation resource.",
60+
"hydra:method": "GET",
61+
"hydra:title": "getConstraintViolation",
62+
"returns": "ConstraintViolation"
63+
},
64+
{
65+
"@type": [
66+
"hydra:Operation",
67+
"schema:FindAction"
68+
],
69+
"hydra:description": "Retrieves a ConstraintViolation resource.",
70+
"hydra:method": "GET",
71+
"hydra:title": "getConstraintViolation",
72+
"returns": "ConstraintViolation"
73+
},
74+
{
75+
"@type": [
76+
"hydra:Operation",
77+
"schema:FindAction"
78+
],
79+
"hydra:description": "Retrieves a ConstraintViolation resource.",
80+
"hydra:method": "GET",
81+
"hydra:title": "getConstraintViolation",
82+
"returns": "ConstraintViolation"
83+
}
84+
],
4385
"status": 422,
4486
"violations": [
4587
{

0 commit comments

Comments
 (0)