Skip to content

Commit

Permalink
FAT-17756: set loadReferenceData: true for linked-data tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pkjacob committed Dec 23, 2024
1 parent 911da22 commit 07c2be3
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 38 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Feature: Authority update
* callonce login testUser
* def testUserHeaders = { 'Content-Type': 'application/json', 'x-okapi-token': '#(okapitoken)', 'Accept': '*/*' }
* configure headers = testUserHeaders
* def authorityFileRequest = read('samples/authority_source_file.json')
* call postAuthorityFile

Scenario: create authority and work, then update authority
# Step 1: create an authority
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions mod-linked-data/src/main/resources/karate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function fn() {
var testTenant = karate.properties['testTenant'];

var config = {
tenantParams: {loadReferenceData: true},
baseUrl: 'http://localhost:9130',
admin: {tenant: 'diku', name: 'diku_admin', password: 'admin'},
prototypeTenant: 'diku',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class CreateResourceSimulation extends Simulation {

val before = scenario("before")
.exec(karateFeature("classpath:citation/mod-linked-data/linked-data-junit.feature"))
val createRefData = scenario("createRefData")
.exec(karateFeature("classpath:citation/mod-linked-data/create-ref-data.feature"))
val createResource = scenario("createResource")
.repeat(10) {
exec(karateFeature("classpath:citation/mod-linked-data/features/create-bib-api/create-resource.feature"))
Expand All @@ -36,7 +34,6 @@ class CreateResourceSimulation extends Simulation {

setUp(
before.inject(atOnceUsers(1))
.andThen(createRefData.inject(atOnceUsers(1)))
.andThen(createResource.inject(nothingFor(3 seconds), rampUsers(3) during (5 seconds)))
.andThen(after.inject(nothingFor(3 seconds), atOnceUsers(1))),
).protocols(protocol)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public ModLinkedDataTest() {
@BeforeAll
public void setup() {
runFeature("classpath:citation/mod-linked-data/linked-data-junit.feature");
runFeature("classpath:citation/mod-linked-data/create-ref-data.feature");
runFeature("classpath:citation/mod-linked-data/restart-mod-search-kafka-listeners.feature");
}

Expand Down

0 comments on commit 07c2be3

Please sign in to comment.