Skip to content

Commit

Permalink
chore: added test1 tenant sample data file
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanFreestone committed Oct 18, 2024
1 parent b055016 commit 1858ebe
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions service/src/main/okapi/tenant/sample_data/test1-data.groovy
Original file line number Diff line number Diff line change
@@ -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)) */

0 comments on commit 1858ebe

Please sign in to comment.