Skip to content

Commit

Permalink
Merge branch 'master' into III-6310-refactor-legacy-tariff
Browse files Browse the repository at this point in the history
  • Loading branch information
LucWollants authored Nov 20, 2024
2 parents ee0c2f0 + 4ed19e7 commit ae1e7bf
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions features/history/metadata.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Feature: Test the metadata in the history API

Background:
Given I am using the UDB3 base URL
And I am authorized with an Auth0 client access token for "test_client"
And I create a minimal place and save the "url" as "placeUrl"
And I wait for the place with url "%{placeUrl}" to be indexed
And I create a minimal permanent event and save the "url" as "eventUrl"
And I wait for the event with url "%{eventUrl}" to be indexed

Scenario: test metaData place
Given I am using an UiTID v1 API key of consumer "uitdatabank"
And I am authorized as JWT provider v1 user "centraal_beheerder"
And I send and accept "application/json"
And I send a GET request to "%{placeUrl}/history"
And the JSON response at "0/author" should be "pjeOqgEYI0Y4gmr8DWMpUrpTMXrvjgpc@clients"
And the JSON response at "0/auth0ClientId" should be "pjeOqgEYI0Y4gmr8DWMpUrpTMXrvjgpc"
And the JSON response at "0/auth0ClientName" should be "UiTdatabank Acceptance Tests"
And the JSON response at "0/api" should be "JSON-LD API"

Scenario: test metaData event
Given I am using an UiTID v1 API key of consumer "uitdatabank"
And I am authorized as JWT provider v1 user "centraal_beheerder"
And I send and accept "application/json"
And I send a GET request to "%{eventUrl}/history"
And the JSON response at "0/author" should be "pjeOqgEYI0Y4gmr8DWMpUrpTMXrvjgpc@clients"
And the JSON response at "0/auth0ClientId" should be "pjeOqgEYI0Y4gmr8DWMpUrpTMXrvjgpc"
And the JSON response at "0/auth0ClientName" should be "UiTdatabank Acceptance Tests"
And the JSON response at "0/api" should be "JSON-LD API"

0 comments on commit ae1e7bf

Please sign in to comment.