diff --git a/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/crud-resource.feature b/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/crud-resource.feature index 2c4d6149d..50ef740d1 100644 --- a/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/crud-resource.feature +++ b/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/crud-resource.feature @@ -11,7 +11,7 @@ Feature: CRUD operations on a resource @postResource Scenario: Post a resource - Given path 'resource' + Given path 'linked-data/resource' And request resourceRequest When method POST Then status 200 @@ -19,7 +19,7 @@ Feature: CRUD operations on a resource @putResource Scenario: Put a resource - Given path 'resource/' + id + Given path 'linked-data/resource/' + id And request resourceRequest When method PUT Then status 200 diff --git a/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/crud-settings.feature b/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/crud-settings.feature index 89d0a0bc5..eb324d27c 100644 --- a/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/crud-settings.feature +++ b/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/crud-settings.feature @@ -4,7 +4,7 @@ Feature: CRUD operations on settings @getSettings Scenario: Get settings - Given path 'settings/entries + Given path 'settings/entries' And param query = query When method GET Then status 200 diff --git a/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/validation-resource.feature b/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/validation-resource.feature index 0646ad533..8efcd3352 100644 --- a/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/validation-resource.feature +++ b/mod-linked-data/src/main/resources/citation/mod-linked-data/features/util/validation-resource.feature @@ -4,7 +4,7 @@ Feature: Resource validation @validationErrorWithCodeOnResourceCreation Scenario: Get a resource - Given path 'resource' + Given path 'linked-data/resource' And request resource When method POST Then status 400 diff --git a/mod-linked-data/src/main/resources/citation/mod-linked-data/linked-data-junit.feature b/mod-linked-data/src/main/resources/citation/mod-linked-data/linked-data-junit.feature index 18ec0a7e7..13cbf02cf 100644 --- a/mod-linked-data/src/main/resources/citation/mod-linked-data/linked-data-junit.feature +++ b/mod-linked-data/src/main/resources/citation/mod-linked-data/linked-data-junit.feature @@ -52,6 +52,9 @@ Feature: mod-linked-data integration tests | 'browse.authorities.collection.get' | | 'source-storage.records.formatted.item.get' | | 'ui-quick-marc.settings.lccn-duplicate-check.edit' | + | 'mod-settings.entries.collection.get' | + | 'mod-settings.entries.item.get' | + | 'mod-settings.entries.item.put' | Scenario: create tenant and users for testing Given call read('classpath:common/setup-users.feature') diff --git a/mod-linked-data/src/main/resources/karate-config.js b/mod-linked-data/src/main/resources/karate-config.js index 84c61da8f..bf4310cfb 100644 --- a/mod-linked-data/src/main/resources/karate-config.js +++ b/mod-linked-data/src/main/resources/karate-config.js @@ -39,6 +39,8 @@ function fn() { getResourceSupportCheck: karate.read('classpath:citation/mod-linked-data/features/util/crud-resource.feature@getResourceSupportCheck'), getResourcePreview: karate.read('classpath:citation/mod-linked-data/features/util/crud-resource.feature@getResourcePreview'), validationErrorWithCodeOnResourceCreation: karate.read('classpath:citation/mod-linked-data/features/util/validation-resource.feature@validationErrorWithCodeOnResourceCreation'), + getSettings: karate.read('classpath:citation/mod-linked-data/features/util/crud-settings.feature@getSettings'), + getSetting: karate.read('classpath:citation/mod-linked-data/features/util/crud-settings.feature@getSetting'), postImport: karate.read('classpath:citation/mod-linked-data/features/util/crud-resource.feature@postImport'), // define global functions