|
1 | 1 | package cvo |
2 | 2 |
|
3 | 3 | import ( |
4 | | - . "github.com/onsi/ginkgo/v2" //nolint:staticcheck |
5 | | - . "github.com/onsi/gomega" //nolint:staticcheck |
| 4 | + g "github.com/onsi/ginkgo/v2" |
| 5 | + o "github.com/onsi/gomega" |
6 | 6 |
|
7 | 7 | "github.com/openshift/cluster-version-operator/test/oc" |
8 | 8 | ocapi "github.com/openshift/cluster-version-operator/test/oc/api" |
9 | 9 | ) |
10 | 10 |
|
11 | | -var logger = GinkgoLogr.WithName("cluster-version-operator-tests") |
| 11 | +var logger = g.GinkgoLogr.WithName("cluster-version-operator-tests") |
12 | 12 |
|
13 | | -var _ = Describe(`[Jira:"Cluster Version Operator"] cluster-version-operator-tests`, func() { |
14 | | - It("should support passing tests", func() { |
15 | | - Expect(true).To(BeTrue()) |
| 13 | +var _ = g.Describe(`[Jira:"Cluster Version Operator"] cluster-version-operator-tests`, func() { |
| 14 | + g.It("should support passing tests", func() { |
| 15 | + o.Expect(true).To(o.BeTrue()) |
16 | 16 | }) |
17 | 17 |
|
18 | | - It("can use oc to get the version information", func() { |
| 18 | + g.It("can use oc to get the version information", func() { |
19 | 19 | ocClient, err := oc.NewOC(logger) |
20 | | - Expect(err).NotTo(HaveOccurred()) |
21 | | - Expect(ocClient).NotTo(BeNil()) |
| 20 | + o.Expect(err).NotTo(o.HaveOccurred()) |
| 21 | + o.Expect(ocClient).NotTo(o.BeNil()) |
22 | 22 |
|
23 | 23 | output, err := ocClient.Version(ocapi.VersionOptions{Client: true}) |
24 | | - Expect(err).NotTo(HaveOccurred()) |
25 | | - Expect(output).To(ContainSubstring("Client Version:")) |
| 24 | + o.Expect(err).NotTo(o.HaveOccurred()) |
| 25 | + o.Expect(output).To(o.ContainSubstring("Client Version:")) |
26 | 26 | }) |
27 | 27 | }) |
0 commit comments