Search in sources :

Example 1 with Java8LocalCommandExecutor

use of com.datastax.fallout.ops.commands.Java8LocalCommandExecutor in project fallout by datastax.

the class EnsembleFalloutTest method createActiveTestRunBuilder.

public ActiveTestRunBuilder createActiveTestRunBuilder() {
    User testUser = getTestUser();
    UserCredentials userCredentials = new UserCredentials(testUser, Optional.empty());
    // secret is needed for example yamls to be valid
    testUser.addGenericSecret("MY_ASTRA_TOKEN", "dummy_astra_token");
    JobFileLoggers loggers = new JobFileLoggers(testRunArtifactPath(), true, userCredentials);
    return ActiveTestRunBuilder.create().withTestRunScratchSpace(persistentTestScratchSpace()).withTestRunArtifactPath(testRunArtifactPath()).withTestRunIdentifier(Fakes.TEST_RUN_IDENTIFIER).withLoggers(loggers).withFalloutConfiguration(falloutConfiguration()).withTestRunStatusUpdater(new TestRunAbortedStatusUpdater(new InMemoryTestRunStateStorage(TestRun.State.CREATED))).withUserCredentials(userCredentials).withCommandExecutor(new Java8LocalCommandExecutor()).destroyEnsembleAfterTest(true);
}
Also used : JobFileLoggers(com.datastax.fallout.ops.JobFileLoggers) User(com.datastax.fallout.service.core.User) Java8LocalCommandExecutor(com.datastax.fallout.ops.commands.Java8LocalCommandExecutor) UserCredentials(com.datastax.fallout.runner.UserCredentialsFactory.UserCredentials)

Aggregations

JobFileLoggers (com.datastax.fallout.ops.JobFileLoggers)1 Java8LocalCommandExecutor (com.datastax.fallout.ops.commands.Java8LocalCommandExecutor)1 UserCredentials (com.datastax.fallout.runner.UserCredentialsFactory.UserCredentials)1 User (com.datastax.fallout.service.core.User)1