Commit 42d1cce4 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

refactor: move sample payloads to avoid complex relative references

parent 064a9994
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ Feature: Test implementation of POST /entities (6.4.3.1) with different entity p

Background:
  * url urlBase
  * def buildings = read('../../../../../../samples/buildings.json')
  * def buildings = read('classpath:ngsi-ld/payloads/entities/buildings.json')

Scenario Outline: Create Buildings with different payloads
    Given path 'entities'
+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@ Feature: Test implementation of POST /entities (6.4.3.1) with invalid request

Background:
  * url urlBase
  * def building = read('../../../../../../samples/building.jsonld')
  * def buildingWithoutContext = read('../../../../../../samples/building-without-context.json')
  * def building = read('classpath:ngsi-ld/payloads/entities/building.jsonld')
  * def buildingWithoutContext = read('classpath:ngsi-ld/payloads/entities/building-without-context.json')
  * configure charset = null

Scenario: Create Building with unsupported Media type
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ Feature: Test implementation of POST /entities (6.4.3.1) with existing entity
Background:
  * url urlBase
  * def fixtures = callonce read('support/create-entity-fixture.feature')
  * def building = read('../../../../../../samples/building.jsonld')
  * def building = read('classpath:ngsi-ld/payloads/entities/building.jsonld')

Scenario:
    Given path 'entities'
+23 −0
Original line number Diff line number Diff line
{
    "id": "urn:ngsi-ld:Building:3009ef20-9f62-41f5-bd66-92f041b428b0",
    "type": "Building",
    "name": {
        "type": "Property",
        "value": "Eiffel Tower"
    },
    "subCategory": {
        "type": "Property",
        "value": ["tourism"]
    },
    "location": {
        "type": "GeoProperty",
        "value": {
            "type": "Point",
            "coordinates": [13.3986, 52.5547]
        }
    },
    "@context": [
        "https://fiware.github.io/data-models/context.jsonld",
        "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
    ]
}
 No newline at end of file
+8 −0
Original line number Diff line number Diff line
{
    "id": "urn:ngsi-ld:Building:3009ef20-9f62-41f5-bd66-92f041b428b1",
    "type": "Building",
    "@context": [
        "https://fiware.github.io/data-models/context.jsonld",
        "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
    ]
}
 No newline at end of file
Loading