feat(testutil): add GetRandomNameHyphenated (#17342)

This started coming up more often for me, so time for a test helper!

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Cian Johnston
2025-04-10 19:08:38 +01:00
committed by GitHub
parent 46d4b28384
commit 1e0051a9a2
3 changed files with 11 additions and 2 deletions

View File

@ -534,7 +534,7 @@ func TestTemplatePush(t *testing.T) {
"test_name": tt.name,
}))
templateName := strings.ReplaceAll(testutil.GetRandomName(t), "_", "-")
templateName := testutil.GetRandomNameHyphenated(t)
inv, root := clitest.New(t, "templates", "push", templateName, "-d", tempDir, "--yes")
clitest.SetupConfig(t, templateAdmin, root)