Skip to content

Commit 0c7a72c

Browse files
committed
Fix SetupSampleData
1 parent 3dc5a84 commit 0c7a72c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

stroom-app/src/test/java/stroom/test/ContentStoreTestSetup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,13 @@ private synchronized void cacheContentStore() throws RuntimeException {
238238
// Generate the file: URL of the content-store YAML file
239239
final String contentStoreFileUrl = "file://" +
240240
localContentRepo.resolve("source/content-store.yml");
241+
final String sampleContentStoreFileUrl = "file://" +
242+
localContentRepo.resolve("sample-source/content-store.yml");
241243

242244
// Hack to force the content store config to use our content store config file
243245
contentStoreResource = contentStoreResourceProvider.get();
244246
contentStoreResource.addTestUriContentStoreUrl(contentStoreFileUrl);
247+
contentStoreResource.addTestUriContentStoreUrl(sampleContentStoreFileUrl);
245248

246249
// Tell the content store to get from our local GIT repo instead of the https version
247250
contentStoreResource.remapGitUrl("https://github.com/gchq/stroom-content.git",

stroom-app/src/test/java/stroom/test/SetupSampleDataModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import stroom.config.app.Config;
2525
import stroom.config.app.ConfigHolder;
2626
import stroom.index.VolumeTestConfigModule;
27+
import stroom.langchain.impl.MockOpenAIModule;
2728
import stroom.meta.statistics.impl.MockMetaStatisticsModule;
2829
import stroom.resource.impl.ResourceModule;
2930
import stroom.security.mock.MockUserSecurityContextModule;
@@ -68,5 +69,6 @@ protected void configure() {
6869
install(new MockMetaStatisticsModule());
6970
install(new stroom.test.DatabaseTestControlModule());
7071
install(new JerseyModule());
72+
install(new MockOpenAIModule());
7173
}
7274
}

0 commit comments

Comments
 (0)