Skip to content

Commit 665a57c

Browse files
(alpha update): (unit tests) fix call by adding suite to run all tests
1 parent 3ebbb2e commit 665a57c

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed

pkg/cli/alpha/internal/update/prepare_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package update
1919
import (
2020
"os"
2121
"path/filepath"
22-
"testing"
2322

2423
"github.com/h2non/gock"
2524
. "github.com/onsi/ginkgo/v2"
@@ -31,11 +30,6 @@ import (
3130
v3 "sigs.k8s.io/kubebuilder/v4/pkg/config/v3"
3231
)
3332

34-
func TestCommand(t *testing.T) {
35-
RegisterFailHandler(Fail)
36-
RunSpecs(t, "update")
37-
}
38-
3933
var _ = Describe("Prepare for internal update", func() {
4034
var (
4135
tmpDir string
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
Copyright 2025 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package update
18+
19+
import (
20+
"testing"
21+
22+
. "github.com/onsi/ginkgo/v2"
23+
. "github.com/onsi/gomega"
24+
)
25+
26+
func TestCommand(t *testing.T) {
27+
RegisterFailHandler(Fail)
28+
RunSpecs(t, "alpha command: update suite")
29+
}

0 commit comments

Comments
 (0)