-
-
Notifications
You must be signed in to change notification settings - Fork 900
/
Copy pathtransform_model.feature
37 lines (33 loc) · 1.48 KB
/
transform_model.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Feature: Use an entity or document transformer to return the correct ressource
@createSchema
@!mongodb
Scenario: Get collection from entities
Given there is a TransformedDummy for date '2025-01-01'
When I send a "GET" request to "/transformed_dummy_entity_ressources"
Then the response status code should be 200
And the response should be in JSON
And the JSON node "hydra:totalItems" should be equal to 1
@!mongodb
Scenario: Get item from entity
Given there is a TransformedDummy for date '2025-01-01'
When I send a "GET" request to "/transformed_dummy_entity_ressources/1"
Then the response status code should be 200
And the response should be in JSON
And the JSON node "year" should exist
And the JSON node year should be equal to "2025"
@createSchema
@mongodb
Scenario: Get collection from documents
Given there is a TransformedDummy for date '2025-01-01'
When I send a "GET" request to "/transformed_dummy_document_ressources"
Then the response status code should be 200
And the response should be in JSON
And the JSON node "hydra:totalItems" should be equal to 1
@mongodb
Scenario: Get item from document
Given there is a TransformedDummy for date '2025-01-01'
When I send a "GET" request to "/transformed_dummy_document_ressources/1"
Then the response status code should be 200
And the response should be in JSON
And the JSON node "year" should exist
And the JSON node year should be equal to "2025"