@@ -44,8 +44,8 @@ import (
44
44
"testing"
45
45
"time"
46
46
47
- . "github.com/onsi/ginkgo"
48
- . "github.com/onsi/gomega"
47
+ "github.com/onsi/ginkgo"
48
+ "github.com/onsi/gomega"
49
49
"github.com/onsi/gomega/gexec"
50
50
"github.com/oracle/oci-go-sdk/v45/common"
51
51
"github.com/oracle/oci-go-sdk/v45/database"
@@ -77,6 +77,21 @@ This test suite runs the integration test which checks the following scenario
77
77
5. Test ADB binding with hardLink=true
78
78
**/
79
79
80
+ // To avoid dot import
81
+ var (
82
+ BeforeSuite = ginkgo .BeforeSuite
83
+ AfterSuite = ginkgo .AfterSuite
84
+ Describe = ginkgo .Describe
85
+ AfterEach = ginkgo .AfterEach
86
+ By = ginkgo .By
87
+ It = ginkgo .It
88
+ Expect = gomega .Expect
89
+ Succeed = gomega .Succeed
90
+ HaveOccurred = gomega .HaveOccurred
91
+ BeNil = gomega .BeNil
92
+ Equal = gomega .Equal
93
+ )
94
+
80
95
var cfg * rest.Config
81
96
var k8sClient client.Client
82
97
var configProvider common.ConfigurationProvider
@@ -100,15 +115,15 @@ const SharedAdminPassSecretName string = "adb-admin-password"
100
115
const SharedWalletPassSecretName = "adb-wallet-password"
101
116
102
117
func TestAPIs (t * testing.T ) {
103
- RegisterFailHandler (Fail )
118
+ gomega . RegisterFailHandler (ginkgo . Fail )
104
119
105
- RunSpecsWithDefaultAndCustomReporters (t ,
120
+ ginkgo . RunSpecsWithDefaultAndCustomReporters (t ,
106
121
"Controller Suite" ,
107
- []Reporter {printer.NewlineReporter {}})
122
+ []ginkgo. Reporter {printer.NewlineReporter {}})
108
123
}
109
124
110
- var _ = BeforeSuite (func (done Done ) {
111
- logf .SetLogger (zap .New (zap .WriteTo (GinkgoWriter ), zap .UseDevMode (true )))
125
+ var _ = BeforeSuite (func (done ginkgo. Done ) {
126
+ logf .SetLogger (zap .New (zap .WriteTo (ginkgo . GinkgoWriter ), zap .UseDevMode (true )))
112
127
113
128
By ("bootstrapping test environment" )
114
129
testEnv = & envtest.Environment {
@@ -145,7 +160,7 @@ var _ = BeforeSuite(func(done Done) {
145
160
Expect (err ).ToNot (HaveOccurred ())
146
161
147
162
go func () {
148
- defer GinkgoRecover ()
163
+ defer ginkgo . GinkgoRecover ()
149
164
err = k8sManager .Start (ctrl .SetupSignalHandler ())
150
165
Expect (err ).ToNot (HaveOccurred (), "failed to run manager" )
151
166
gexec .KillAndWait (4 * time .Second )
0 commit comments