private void joinNodesAndVerifyConvergence() throws Throwable { TestNodeGroupManager manager = new TestNodeGroupManager(ServiceUriPaths.DEFAULT_NODE_GROUP_NAME); manager.addHosts(new ArrayList<>(this.hosts)); manager.joinNodeGroupAndWaitForConvergence(); }
private void joinNodesAndVerifyConvergence() throws Throwable { TestNodeGroupManager manager = new TestNodeGroupManager(ServiceUriPaths.DEFAULT_NODE_GROUP_NAME); manager.addHosts(new ArrayList<>(this.hosts)); manager.joinNodeGroupAndWaitForConvergence(); }
TestNodeGroupManager manager = new TestNodeGroupManager(nodeGroupName); manager.addHosts(hosts); manager.setTimeout(timeout);
TestNodeGroupManager manager = new TestNodeGroupManager(nodeGroupName); manager.addHosts(hosts); manager.setTimeout(timeout);
VerificationHost host2 = createAndStartHost(false); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); nodeGroup.addHost(host1); nodeGroup.addHost(host2);
VerificationHost host2 = createAndStartHost(false); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); nodeGroup.addHost(host1); nodeGroup.addHost(host2);
TestNodeGroupManager groupA = new TestNodeGroupManager("groupA") .addHost(host1) .addHost(host2) TestNodeGroupManager groupB = new TestNodeGroupManager("groupB") .addHost(host1) .addHost(host4)
TestNodeGroupManager groupA = new TestNodeGroupManager("groupA") .addHost(host1) .addHost(host2) TestNodeGroupManager groupB = new TestNodeGroupManager("groupB") .addHost(host1) .addHost(host4)
host2.startFactory(ExampleODLService::createFactory, ExampleODLService.FACTORY_LINK); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); int maintMillis = VerificationHost.FAST_MAINT_INTERVAL_MILLIS / 2; nodeGroup.setMaintenanceInterval(Duration.ofMillis(maintMillis));
host2.startFactory(ExampleODLService::createFactory, ExampleODLService.FACTORY_LINK); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); int maintMillis = VerificationHost.FAST_MAINT_INTERVAL_MILLIS / 2; nodeGroup.setMaintenanceInterval(Duration.ofMillis(maintMillis));
VerificationHost host2 = createAndStartHost(false); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); nodeGroup.addHost(host1); nodeGroup.addHost(host2);
VerificationHost host2 = createAndStartHost(false); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); nodeGroup.addHost(host1); nodeGroup.addHost(host2);
@Test public void testExternalAuthenticationMultinode() throws Throwable { VerificationHost host1 = createAndStartHost(true, false, new TestAuthenticationService()); VerificationHost host2 = createAndStartHost(true, false, new TestAuthenticationService()); VerificationHost host3 = createAndStartHost(true, false, new TestAuthenticationService()); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); nodeGroup.addHost(host1); nodeGroup.addHost(host2); nodeGroup.addHost(host3); // perform lambda under system auth context AuthTestUtils.executeWithSystemAuthContext(nodeGroup, () -> { nodeGroup.joinNodeGroupAndWaitForConvergence(); // wait the service to be available in cluster nodeGroup.waitForFactoryServiceAvailable("/core/examples"); }); ServiceHost host = nodeGroup.getHost(); // test external auth redirect host1.log("Testing auth service redirect in multi-node"); testExternalAuthRedirectMultinode(host); host1.log("Auth service redirect in multi-node working as expected"); // test external auth token request host1.log("Testing auth service token request in multi-node"); testExternalAuthTokenRequestMultinode(host); host1.log("AuthenticationService token request is working in multi-node"); // test replication with external auth host1.log("Testing replication with external auth in multi-node"); testExternalAuthReplicationMultinode(host); host1.log("Replication with external auth in multi-node is working"); }
@Test public void testExternalAuthenticationMultinode() throws Throwable { VerificationHost host1 = createAndStartHost(true, false, new TestAuthenticationService()); VerificationHost host2 = createAndStartHost(true, false, new TestAuthenticationService()); VerificationHost host3 = createAndStartHost(true, false, new TestAuthenticationService()); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); nodeGroup.addHost(host1); nodeGroup.addHost(host2); nodeGroup.addHost(host3); // perform lambda under system auth context AuthTestUtils.executeWithSystemAuthContext(nodeGroup, () -> { nodeGroup.joinNodeGroupAndWaitForConvergence(); // wait the service to be available in cluster nodeGroup.waitForFactoryServiceAvailable("/core/examples"); }); ServiceHost host = nodeGroup.getHost(); // test external auth redirect host1.log("Testing auth service redirect in multi-node"); testExternalAuthRedirectMultinode(host); host1.log("Auth service redirect in multi-node working as expected"); // test external auth token request host1.log("Testing auth service token request in multi-node"); testExternalAuthTokenRequestMultinode(host); host1.log("AuthenticationService token request is working in multi-node"); // test replication with external auth host1.log("Testing replication with external auth in multi-node"); testExternalAuthReplicationMultinode(host); host1.log("Replication with external auth in multi-node is working"); }
VerificationHost host = createAndStartHost(true); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); nodeGroup.addHost(host);
VerificationHost host = createAndStartHost(true); TestNodeGroupManager nodeGroup = new TestNodeGroupManager(); nodeGroup.addHost(host);