Skip to content

Commit

Permalink
uuid looking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bombela authored and kriskowal committed Dec 23, 2016
1 parent 7e52b64 commit 6958854
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/servicename_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ func TestValidServiceNames(t *testing.T) {
"supper-skipper",
"supperskipper83",
"supper-skipper83",
"a77ab7g4-51cb-4808-a9ef-875568bde54a", // not valid UUID
"eviluuid26695g10-a384-48e7-8867-6d48b7fae80a", // not valid UUID
"a77gb7e4-51cb-4808-a9ef-875568bde54aeviluuid", // not valid UUID
}
for _, n := range tests {
assert.NoError(t, ValidateServiceName(n), n)
Expand All @@ -45,6 +48,7 @@ func TestInvalidServiceNames(t *testing.T) {
"26695a10-a384-48e7-8867-6d48b7fae80a",
"eviluuid26695a10-a384-48e7-8867-6d48b7fae80a",
"a77ab7e4-51cb-4808-a9ef-875568bde54aeviluuid",
"26695g10-a384-48e7-8867-6d48b7fae80a", // not valid UUID, but starts with a number.
"superSkipper",
"SuperSkipper",
"super_skipper",
Expand Down

0 comments on commit 6958854

Please sign in to comment.