Search in sources :

Example 1 with AutoscaleClientBuilder

use of com.sequenceiq.periscope.client.AutoscaleClient.AutoscaleClientBuilder in project cloudbreak by hortonworks.

the class AutoscaleTestSuiteInitializer method initCloudbreakSuite.

@BeforeSuite(dependsOnMethods = "initContext")
@Parameters("periscopeServer")
public void initCloudbreakSuite(@Optional("") String periscopeServer) {
    periscopeServer = StringUtils.hasLength(periscopeServer) ? periscopeServer : defaultPeriscopeServer;
    String identity = itContext.getContextParam(IntegrationTestContext.IDENTITY_URL);
    String user = itContext.getContextParam(IntegrationTestContext.AUTH_USER);
    String password = itContext.getContextParam(IntegrationTestContext.AUTH_PASSWORD);
    AutoscaleClient autoscaleClient = new AutoscaleClientBuilder(periscopeServer + autoscaleRootContextPath, identity, "cloudbreak_shell").withCertificateValidation(false).withDebug(true).withCredential(user, password).withIgnorePreValidation(false).build();
    itContext.putContextParam(CloudbreakITContextConstants.AUTOSCALE_CLIENT, autoscaleClient);
}
Also used : AutoscaleClient(com.sequenceiq.periscope.client.AutoscaleClient) AutoscaleClientBuilder(com.sequenceiq.periscope.client.AutoscaleClient.AutoscaleClientBuilder) Parameters(org.testng.annotations.Parameters) BeforeSuite(org.testng.annotations.BeforeSuite)

Aggregations

AutoscaleClient (com.sequenceiq.periscope.client.AutoscaleClient)1 AutoscaleClientBuilder (com.sequenceiq.periscope.client.AutoscaleClient.AutoscaleClientBuilder)1 BeforeSuite (org.testng.annotations.BeforeSuite)1 Parameters (org.testng.annotations.Parameters)1