Skip to content

Commit

Permalink
MODLD-601: LCCN deduplication test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiBordak committed Nov 28, 2024
1 parent 434c178 commit d6752b5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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
* def response = $

@putResource
Scenario: Put a resource
Given path 'resource/' + id
Given path 'linked-data/resource/' + id
And request resourceRequest
When method PUT
Then status 200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
2 changes: 2 additions & 0 deletions mod-linked-data/src/main/resources/karate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6752b5

Please sign in to comment.