Commit d957b392 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

feat: bind authentication support

parent 80391b7d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 }
+3 −0
Original line number Diff line number Diff line
@@ -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() {
+3 −0
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -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')

+1 −3
Original line number Diff line number Diff line
@@ -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