mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-27 01:56:03 +08:00
update func names to match new convention
This commit is contained in:
@@ -123,7 +123,7 @@ routes:
|
||||
`
|
||||
)
|
||||
|
||||
func TestParseWorkspaceSpec(t *testing.T) {
|
||||
func Test_ParseWorkspaceSpec(t *testing.T) {
|
||||
workspaceSpec, err := parseWorkspaceSpec(workspaceSpecManifest)
|
||||
assert.Nil(t, err)
|
||||
assert.NotEmpty(t, workspaceSpec)
|
||||
|
@@ -28,7 +28,7 @@ func assertWorkspaceNameValid(t *testing.T, name string) {
|
||||
assert.True(t, valid)
|
||||
}
|
||||
|
||||
func TestWorkspaceNameValidation_RegexValid(t *testing.T) {
|
||||
func Test_WorkspaceNameValidation_RegexValid(t *testing.T) {
|
||||
assertWorkspaceNameInvalid(t, "600s")
|
||||
|
||||
assertWorkspaceNameValid(t, "test-5")
|
||||
|
Reference in New Issue
Block a user