Loading karate/build.gradle +1 −2 Original line number Diff line number Diff line Loading @@ -65,11 +65,10 @@ test { // I would prefer having a way to automatically pass all datahub properties ... // To be investigated later systemProperty "datahub.urlBase", System.properties.getProperty("datahub.urlBase") systemProperty "datahub.authServer", System.properties.getProperty("datahub.authServer") systemProperty "datahub.clientId", System.properties.getProperty("datahub.clientId") systemProperty "datahub.clientSecret", System.properties.getProperty("datahub.clientSecret") systemProperty "datahub.username", System.properties.getProperty("datahub.username") systemProperty "datahub.password", System.properties.getProperty("datahub.password") // Ensure tests are always run outputs.upToDateWhen { false } Loading karate/src/test/java/api/entities/create-entities.feature +3 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ Background: * url urlBase * def buildings = read('classpath:ngsi-ld/payloads/entities/buildings.json') * def token = accessToken * configure headers = read('classpath:headers.js') * configure afterFeature = """ function() { Loading karate/src/test/java/api/entities/create-entity-with-invalid-request.feature +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,9 @@ Background: * def buildingWithoutContext = read('classpath:ngsi-ld/payloads/entities/building-without-context.json') * configure charset = null * def token = accessToken * configure headers = read('classpath:headers.js') Scenario: Create Building with unsupported Media type Given path 'entities' And request building Loading karate/src/test/java/api/entities/create-existing-entity.feature +3 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,9 @@ Feature: Test implementation of POST /entities (6.4.3.1) with existing entity Background: * url urlBase * def token = accessToken * configure headers = read('classpath:headers.js') * def fixtures = callonce read('support/create-entity-fixture.feature') * def building = read('classpath:ngsi-ld/payloads/entities/building-minimal.jsonld') Loading karate/src/test/java/api/oauth2.feature +1 −3 Original line number Diff line number Diff line Loading @@ -7,11 +7,9 @@ Background: Scenario: Call the token endpoint to get an access token * path 'token' * form field grant_type = 'password' * form field grant_type = 'client_credentials' * form field client_id = clientId * form field client_secret = clientSecret * form field username = username * form field password = password * method post * status 200 Loading Loading
karate/build.gradle +1 −2 Original line number Diff line number Diff line Loading @@ -65,11 +65,10 @@ test { // I would prefer having a way to automatically pass all datahub properties ... // To be investigated later systemProperty "datahub.urlBase", System.properties.getProperty("datahub.urlBase") systemProperty "datahub.authServer", System.properties.getProperty("datahub.authServer") systemProperty "datahub.clientId", System.properties.getProperty("datahub.clientId") systemProperty "datahub.clientSecret", System.properties.getProperty("datahub.clientSecret") systemProperty "datahub.username", System.properties.getProperty("datahub.username") systemProperty "datahub.password", System.properties.getProperty("datahub.password") // Ensure tests are always run outputs.upToDateWhen { false } Loading
karate/src/test/java/api/entities/create-entities.feature +3 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ Background: * url urlBase * def buildings = read('classpath:ngsi-ld/payloads/entities/buildings.json') * def token = accessToken * configure headers = read('classpath:headers.js') * configure afterFeature = """ function() { Loading
karate/src/test/java/api/entities/create-entity-with-invalid-request.feature +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,9 @@ Background: * def buildingWithoutContext = read('classpath:ngsi-ld/payloads/entities/building-without-context.json') * configure charset = null * def token = accessToken * configure headers = read('classpath:headers.js') Scenario: Create Building with unsupported Media type Given path 'entities' And request building Loading
karate/src/test/java/api/entities/create-existing-entity.feature +3 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,9 @@ Feature: Test implementation of POST /entities (6.4.3.1) with existing entity Background: * url urlBase * def token = accessToken * configure headers = read('classpath:headers.js') * def fixtures = callonce read('support/create-entity-fixture.feature') * def building = read('classpath:ngsi-ld/payloads/entities/building-minimal.jsonld') Loading
karate/src/test/java/api/oauth2.feature +1 −3 Original line number Diff line number Diff line Loading @@ -7,11 +7,9 @@ Background: Scenario: Call the token endpoint to get an access token * path 'token' * form field grant_type = 'password' * form field grant_type = 'client_credentials' * form field client_id = clientId * form field client_secret = clientSecret * form field username = username * form field password = password * method post * status 200 Loading