2023-02-28 18:44:46 +08:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-11-21 20:12:25 +08:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestValidateLabels(t *testing.T) {
|
2023-01-27 20:42:02 +08:00
|
|
|
labels := []string{"ubuntu-latest:docker://node:16-buster", "self-hosted"}
|
2022-11-21 20:12:25 +08:00
|
|
|
if err := validateLabels(labels); err != nil {
|
|
|
|
t.Errorf("validateLabels() error = %v", err)
|
|
|
|
}
|
|
|
|
}
|