-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into III-6310-refactor-legacy-tariff
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |