From 6830a64d4a53927ecbdb9fb3f83170bbff9b95e1 Mon Sep 17 00:00:00 2001 From: PK Jacob Date: Thu, 19 Dec 2024 12:11:25 -0500 Subject: [PATCH] FAT-17574: Restart mod-search kafka listeners --- .../restart-mod-search-kafka-listeners.feature | 13 +++++++++++++ .../src/test/java/org/folio/ModLinkedDataTest.java | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 mod-linked-data/src/main/resources/citation/mod-linked-data/restart-mod-search-kafka-listeners.feature diff --git a/mod-linked-data/src/main/resources/citation/mod-linked-data/restart-mod-search-kafka-listeners.feature b/mod-linked-data/src/main/resources/citation/mod-linked-data/restart-mod-search-kafka-listeners.feature new file mode 100644 index 000000000..5eb105791 --- /dev/null +++ b/mod-linked-data/src/main/resources/citation/mod-linked-data/restart-mod-search-kafka-listeners.feature @@ -0,0 +1,13 @@ +Feature: mod-linked-data integration tests + + Background: + * url baseUrl + * table searchModule + | name | + | 'mod-search' | + + Scenario: Restart mod-search kafka listeners + // Create a dummy tenant & enable mod-search for that tenant. Also, delete that tenant immediately. + // This will restart kafka listeners in mod-search + * def dummyTenant = 'dummytenant' + random_string().toLowerCase() + * call read('classpath:common/tenant.feature') ({ modules: searchModule, tenant: dummyTenant }) diff --git a/mod-linked-data/src/test/java/org/folio/ModLinkedDataTest.java b/mod-linked-data/src/test/java/org/folio/ModLinkedDataTest.java index 7a8434510..d177fbc4d 100644 --- a/mod-linked-data/src/test/java/org/folio/ModLinkedDataTest.java +++ b/mod-linked-data/src/test/java/org/folio/ModLinkedDataTest.java @@ -24,6 +24,7 @@ public ModLinkedDataTest() { 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"); } @AfterAll @@ -51,7 +52,6 @@ void updateAuthority() { runFeatureTest("authority/authority-update.feature"); } - @Test void importBibRecordFromSrsToLinkedData() { runFeatureTest("import-bib/import-bib.feature");