Search in sources :

Example 1 with LockService

use of com.walmartlabs.concord.sdk.LockService in project concord-plugins by walmartlabs.

the class BackendManagerTest method setUp.

@Before
public void setUp() throws Exception {
    Path tmpDir = Paths.get("/tmp/concord");
    if (!Files.exists(tmpDir)) {
        Files.createDirectories(tmpDir);
    }
    dstDir = Files.createTempDirectory(tmpDir, "test");
    Context ctx = new MockContext(Collections.singletonMap("workDir", dstDir.toAbsolutePath().toString()));
    LockService lockService = mock(LockService.class);
    ObjectStorage objectStorage = TerraformTaskTest.createObjectStorage(wireMockRule);
    backendManager = new BackendFactoryV1(ctx, lockService, objectStorage);
}
Also used : Path(java.nio.file.Path) Context(com.walmartlabs.concord.sdk.Context) MockContext(com.walmartlabs.concord.sdk.MockContext) MockContext(com.walmartlabs.concord.sdk.MockContext) LockService(com.walmartlabs.concord.sdk.LockService) ObjectStorage(com.walmartlabs.concord.sdk.ObjectStorage) Before(org.junit.Before)

Aggregations

Context (com.walmartlabs.concord.sdk.Context)1 LockService (com.walmartlabs.concord.sdk.LockService)1 MockContext (com.walmartlabs.concord.sdk.MockContext)1 ObjectStorage (com.walmartlabs.concord.sdk.ObjectStorage)1 Path (java.nio.file.Path)1 Before (org.junit.Before)1