private fun createVolumeData(name: String, numVolumes: Int): List<Volume>? { val volumes: List<Volume> = ArrayList<Volume>()val cgUri: URI = createBlockConsistencyGroup("$name-cg") for (i in 1..numVolumes) { val volume = Volume() val volumeURI: URI = URIUtil.createId(Volume::class.java) testVolumeURIs.add(volumeURI) volume.setId(volumeURI) volume.setLabel(name + i) volume.setConsistencyGroup(cgUri) _dbClient.createObject(volume) } return volumes }
Creates the BlockObject Volume data .