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);
}
Aggregations