use of io.mantisrx.runtime.JobOwner in project mantis by Netflix.
the class JobClusterConfigTest method noVersionAutogenerate.
@Test
public void noVersionAutogenerate() {
String name = "noArtifactNameFails";
JobClusterConfig clusterConfig = new JobClusterConfig.Builder().withArtifactName("myart").withSchedulingInfo(DEFAULT_SCHED_INFO).build();
final JobClusterDefinitionImpl fakeJobCluster = new JobClusterDefinitionImpl.Builder().withJobClusterConfig(clusterConfig).withName(name).withUser("nj").withParameters(Lists.newArrayList()).withIsReadyForJobMaster(true).withOwner(new JobOwner("Nick", "Mantis", "desc", "nma@netflix.com", "repo")).withMigrationConfig(WorkerMigrationConfig.DEFAULT).build();
assertTrue(clusterConfig.getVersion() != null);
}
Aggregations