Search in sources :

Example 6 with JobOwner

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);
}
Also used : JobOwner(io.mantisrx.runtime.JobOwner) Test(org.junit.Test)

Aggregations

JobOwner (io.mantisrx.runtime.JobOwner)6 Test (org.junit.Test)6 Label (io.mantisrx.common.Label)1 IJobClusterMetadata (io.mantisrx.master.jobcluster.IJobClusterMetadata)1 Parameter (io.mantisrx.runtime.parameter.Parameter)1 NamedJob (io.mantisrx.server.master.store.NamedJob)1 ArrayList (java.util.ArrayList)1