use of com.thoughtworks.go.remote.work.BuildRepositoryRemoteStub in project gocd by gocd.
the class GoArtifactsManipulatorTest method setUp.
@BeforeEach
public void setUp(@TempDir Path tempDir) throws Exception {
httpService = mock(HttpService.class);
artifactFolder = TempDirUtils.createTempDirectoryIn(tempDir, "artifact_folder");
tempFile = artifactFolder.resolve("file.txt").toFile();
FileUtils.writeStringToFile(tempFile, "some-random-data", UTF_8);
goArtifactsManipulatorStub = new GoArtifactsManipulatorStub(httpService);
jobIdentifier = new JobIdentifier("pipeline1", 1, "label-1", "stage1", "1", "job1");
AgentRuntimeInfo agentRuntimeInfo = new AgentRuntimeInfo(new AgentIdentifier("h", "1", "u"), AgentRuntimeStatus.Idle, currentWorkingDirectory(), null);
goPublisher = new DefaultGoPublisher(goArtifactsManipulatorStub, jobIdentifier, new BuildRepositoryRemoteStub(), agentRuntimeInfo, "utf-8");
}
use of com.thoughtworks.go.remote.work.BuildRepositoryRemoteStub in project gocd by gocd.
the class GoArtifactsManipulatorTest method setUp.
@Before
public void setUp() throws Exception {
httpService = mock(HttpService.class);
artifactFolder = temporaryFolder.newFolder("artifact_folder");
tempFile = temporaryFolder.newFile("artifact_folder/file.txt");
goArtifactsManipulatorStub = new GoArtifactsManipulatorStub(httpService);
jobIdentifier = new JobIdentifier("pipeline1", 1, "label-1", "stage1", "1", "job1");
AgentRuntimeInfo agentRuntimeInfo = new AgentRuntimeInfo(new AgentIdentifier("h", "1", "u"), AgentRuntimeStatus.Idle, currentWorkingDirectory(), null, false);
goPublisher = new DefaultGoPublisher(goArtifactsManipulatorStub, jobIdentifier, new BuildRepositoryRemoteStub(), agentRuntimeInfo, "utf-8");
}
Aggregations