Skip to content

Commit

Permalink
replace dots with dashes when renaming VMs
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <ahadas@redhat.com>
  • Loading branch information
ahadas committed Jul 21, 2024
1 parent 40ba756 commit 49b6960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/plan/vm_name_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ func TestVmNameHandler(t *testing.T) {
g := gomega.NewGomegaWithT(t)

//Test all cases in name adjustments
originalVmName := "----------------Vm!@#$%^&*()_+-Name/.,';[]-CorREct-<>123----------------------"
newVmName := "vm--name-correct-123"
originalVmName := "----------------Vm!@#$%^&*()_+-Name/.a,';[]-CorREct-<>123----------------------"
newVmName := "vm--name-a-correct-123"
g.Expect(changeVmName(originalVmName)).To(gomega.Equal(newVmName))

//Test the case that the VM name is empty after all removals
Expand Down

0 comments on commit 49b6960

Please sign in to comment.