Skip to content

Commit ad1a530

Browse files
committed
Add test to ensure job names with periods are accepted
1 parent 8f7645f commit ad1a530

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/scala/org/apache/mesos/chronos/scheduler/jobs/JobUtilsSpec.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,10 @@ class JobUtilsSpec extends SpecificationWithJUnit with Mockito {
6464
scheduledJobWithArguments.command.toString must_== commandWithArguments
6565
dependencyJobWithArguments.command.toString must_== commandWithArguments
6666
}
67+
68+
"Accepts a job name with periods" in {
69+
val jobName = "sample.name"
70+
71+
JobUtils.isValidJobName(jobName)
72+
}
6773
}

0 commit comments

Comments
 (0)