when: 'we search for anchors with given Yang module name'
resourceMeter.start()
def result = cpsAnchorService.queryAnchorNames(CPS_PERFORMANCE_TEST_DATASPACE, [yangModuleName])
when: 'we search for anchors with given Yang module name'
resourceMeter.start()
def result = cpsAnchorService.queryAnchorNames(CPS_PERFORMANCE_TEST_DATASPACE, [yangModuleName])
and: 'operation completes with expected resource usage'
recordAndAssertResourceUsage("Query for anchors with ${scenario}",
expectedTimeInSeconds, resourceMeter.totalTimeInSeconds,
and: 'operation completes with expected resource usage'
recordAndAssertResourceUsage("Query for anchors with ${scenario}",
expectedTimeInSeconds, resourceMeter.totalTimeInSeconds,
where: 'the following parameters are used'
scenario | yangModuleName || expectedTimeInSeconds
'1 KB module' | 'module0' || 3
where: 'the following parameters are used'
scenario | yangModuleName || expectedTimeInSeconds
'1 KB module' | 'module0' || 3