From 1858ebef311da4f42b64af489f91434f38c79733 Mon Sep 17 00:00:00 2001 From: Ethan Freestone Date: Fri, 18 Oct 2024 09:48:14 +0100 Subject: [PATCH] chore: added test1 tenant sample data file --- .../tenant/sample_data/test1-data.groovy | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 service/src/main/okapi/tenant/sample_data/test1-data.groovy diff --git a/service/src/main/okapi/tenant/sample_data/test1-data.groovy b/service/src/main/okapi/tenant/sample_data/test1-data.groovy new file mode 100644 index 00000000..3b1a6c86 --- /dev/null +++ b/service/src/main/okapi/tenant/sample_data/test1-data.groovy @@ -0,0 +1,40 @@ +// DEV NOTE -- This is what will be used for the default rancher-desktop-db/dc environments +// For vagrant development (which I think is deprecated now) there may need to be a different file +// to avoid making changes to diku-data or _data. +log.info "Running test1-data tenant sample data file" + +import org.olf.kb.RemoteKB + +/* RemoteKB.findByName('GOKb_TEST') ?: (new RemoteKB( + name:'GOKb_TEST', + type:'org.olf.kb.adapters.GOKbOAIAdapter', + uri:'https://gokbt.gbv.de/gokb/oai/index', + fullPrefix:'gokb', + rectype: RemoteKB.RECTYPE_PACKAGE, + active:Boolean.TRUE, + supportsHarvesting:true, + activationEnabled:false, + //cursor: "2022-08-09T19:34:42Z" +).save(failOnError:true)) */ + +RemoteKB.findByName('GOKb') ?: (new RemoteKB( + name:'GOKb', + type:'org.olf.kb.adapters.GOKbOAIAdapter', + uri:'https://gokb.org/gokb/oai/index', + fullPrefix:'gokb', + rectype: RemoteKB.RECTYPE_PACKAGE, + active:Boolean.TRUE, + supportsHarvesting:true, + activationEnabled:false +).save(failOnError:true)) + +/* RemoteKB.findByName('DEBUG') ?: (new RemoteKB( + name:'DEBUG', + type:'org.olf.kb.adapters.DebugGoKbAdapter', + // uri can be used to directly force a package from the resources folder + // uri: 'src/integration-test/resources/DebugGoKbAdapter/borked_ids.xml' + rectype: RemoteKB.RECTYPE_PACKAGE, + active:Boolean.TRUE, + supportsHarvesting:true, + activationEnabled:false +).save(failOnError:true)) */ \ No newline at end of file