testContext.setTestName("compute owners for links").logBefore(); for (int i = 0; i < c; i++) { String link = UriUtils.buildUriPath(this.replicationTargetFactoryLink,
testContext.setTestName("compute owners for links").logBefore(); for (int i = 0; i < c; i++) { String link = UriUtils.buildUriPath(this.replicationTargetFactoryLink,
TestContext testContext = this.host.testCreate(childCount); testContext.setTestName("POST replication"); testContext.logBefore(); for (int i = 0; i < childCount; i++) { String link = null;
TestContext testContext = this.host.testCreate(childCount); testContext.setTestName("POST replication"); testContext.logBefore(); for (int i = 0; i < childCount; i++) { String link = null;
String testName = "Replication with " + action; TestContext testContext = this.host.testCreate(testCount); testContext.setTestName(testName).logBefore();
String testName = "Replication with " + action; TestContext testContext = this.host.testCreate(testCount); testContext.setTestName(testName).logBefore();
patchAndDeleteCtx.setTestName("Concurrent PATCH / DELETE on ODL").logBefore(); for (Entry<URI, ExampleServiceState> e : states.entrySet()) { patch = Operation.createPatch(e.getKey())
ctx.setTestName("DELETE").logBefore(); for (String link : res.documentLinks) { Operation del = Operation.createDelete(this.host, link).setCompletion((o, e) -> {
patchAndDeleteCtx.setTestName("Concurrent PATCH / DELETE on ODL").logBefore(); for (Entry<URI, ExampleServiceState> e : states.entrySet()) { patch = Operation.createPatch(e.getKey())
List<URI> exampleServices = new ArrayList<>(); TestContext ctx = this.host.testCreate(this.serviceCount); ctx.logBefore(); for (int i = 0; i < this.serviceCount; i++) { ExampleServiceState s = new ExampleServiceState();
List<URI> exampleServices = new ArrayList<>(); TestContext ctx = this.host.testCreate(this.serviceCount); ctx.logBefore(); for (int i = 0; i < this.serviceCount; i++) { ExampleServiceState s = new ExampleServiceState();
ctx.setTestName("DELETE").logBefore(); for (String link : res.documentLinks) { Operation del = Operation.createDelete(this.host, link).setCompletion((o, e) -> {
ctx.setTestName("Request limit validation").logBefore(); AtomicInteger limitFailures = new AtomicInteger(); for (Service s : services) {
c.b = 3; int expectedResult = c.a * c.a + c.b * c.b; ctx.setTestName("Stateless service POST throughput").logBefore();
ctx.setTestName("Request limit validation").logBefore(); AtomicInteger limitFailures = new AtomicInteger(); for (Service s : services) {
c.b = 3; int expectedResult = c.a * c.a + c.b * c.b; ctx.setTestName("Stateless service POST throughput").logBefore();
private void doUpdates(URI factoryUri, Integer updateCount) { factoryUri = UriUtils.extendUriWithQuery(factoryUri, UriUtils.URI_PARAM_ODATA_TOP, this.serviceCount * 10 + ""); ServiceDocumentQueryResult res = this.host.getFactoryState(factoryUri); assertEquals(this.serviceCount, (long) res.documentCount); TestContext ctx = this.host.testCreate(this.serviceCount * updateCount); ctx.setTestName("PATCH").logBefore(); for (String link : res.documentLinks) { for (int i = 0; i < updateCount; i++) { ExampleServiceState st = new ExampleServiceState(); st.name = i + ""; Operation patch = Operation.createPatch(this.host, link).setBody(st) .setCompletion(ctx.getCompletion()); this.host.send(patch); } } this.host.testWait(ctx); ctx.logAfter(); }
private void doUpdates(URI factoryUri, Integer updateCount) { factoryUri = UriUtils.extendUriWithQuery(factoryUri, UriUtils.URI_PARAM_ODATA_TOP, this.serviceCount * 10 + ""); ServiceDocumentQueryResult res = this.host.getFactoryState(factoryUri); assertEquals(this.serviceCount, (long) res.documentCount); TestContext ctx = this.host.testCreate(this.serviceCount * updateCount); ctx.setTestName("PATCH").logBefore(); for (String link : res.documentLinks) { for (int i = 0; i < updateCount; i++) { ExampleServiceState st = new ExampleServiceState(); st.name = i + ""; Operation patch = Operation.createPatch(this.host, link).setBody(st) .setCompletion(ctx.getCompletion()); this.host.send(patch); } } this.host.testWait(ctx); ctx.logAfter(); }