feat(register): add label format validation

This commit is contained in:
fuxiaohei authored and Jason Song committed 2022-11-24 15:38:13 +08:00
1 parent e9e42e850b
commit 3f676a742b
2 files changed
+36 -2

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
package cmd
import "testing"
func TestValidateLabels(t *testing.T) {
labels := []string{"ubuntu-latest:docker://node:16-buster"}
if err := validateLabels(labels); err != nil {
t.Errorf("validateLabels() error = %v", err)
}
}