use of com.mesosphere.sdk.offer.evaluate.security.TLSArtifactPaths in project dcos-commons by mesosphere.
the class TLSEvaluationStageTest method init.
@Before
public void init() throws Exception {
MockitoAnnotations.initMocks(this);
when(mockSchedulerConfig.getServiceTLD()).thenReturn(Constants.DNS_TLD);
// echo -n "pod-type-0-test-task-name.service-name.autoip.dcos.thisdcos.directory" | sha1sum
String sanHash = "8ffc618c478beb31a043d978652d7bc571fedfe2";
tlsArtifactPaths = new TLSArtifactPaths("test-namespace", TestConstants.POD_TYPE + "-" + TestConstants.TASK_INDEX + "-" + TestConstants.TASK_NAME, sanHash);
tlsEvaluationStage = new TLSEvaluationStage(TestConstants.SERVICE_NAME, TestConstants.TASK_NAME, "test-namespace", mockTLSArtifactsUpdater, mockSchedulerConfig);
}
use of com.mesosphere.sdk.offer.evaluate.security.TLSArtifactPaths in project dcos-commons by mesosphere.
the class TLSCleanupStepTest method init.
@Before
public void init() {
MockitoAnnotations.initMocks(this);
tlsArtifactPaths = new TLSArtifactPaths(TestConstants.SERVICE_NAME, String.format("%s-%d-%s", TestConstants.POD_TYPE, 0, TestConstants.TASK_NAME), "a-test-hash");
}
Aggregations