@@ -44,8 +44,8 @@ import (
4444 "testing"
4545 "time"
4646
47- . "github.com/onsi/ginkgo"
48- . "github.com/onsi/gomega"
47+ "github.com/onsi/ginkgo"
48+ "github.com/onsi/gomega"
4949 "github.com/onsi/gomega/gexec"
5050 "github.com/oracle/oci-go-sdk/v45/common"
5151 "github.com/oracle/oci-go-sdk/v45/database"
@@ -77,6 +77,21 @@ This test suite runs the integration test which checks the following scenario
77775. Test ADB binding with hardLink=true
7878**/
7979
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+
8095var cfg * rest.Config
8196var k8sClient client.Client
8297var configProvider common.ConfigurationProvider
@@ -100,15 +115,15 @@ const SharedAdminPassSecretName string = "adb-admin-password"
100115const SharedWalletPassSecretName = "adb-wallet-password"
101116
102117func TestAPIs (t * testing.T ) {
103- RegisterFailHandler (Fail )
118+ gomega . RegisterFailHandler (ginkgo . Fail )
104119
105- RunSpecsWithDefaultAndCustomReporters (t ,
120+ ginkgo . RunSpecsWithDefaultAndCustomReporters (t ,
106121 "Controller Suite" ,
107- []Reporter {printer.NewlineReporter {}})
122+ []ginkgo. Reporter {printer.NewlineReporter {}})
108123}
109124
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 )))
112127
113128 By ("bootstrapping test environment" )
114129 testEnv = & envtest.Environment {
@@ -145,7 +160,7 @@ var _ = BeforeSuite(func(done Done) {
145160 Expect (err ).ToNot (HaveOccurred ())
146161
147162 go func () {
148- defer GinkgoRecover ()
163+ defer ginkgo . GinkgoRecover ()
149164 err = k8sManager .Start (ctrl .SetupSignalHandler ())
150165 Expect (err ).ToNot (HaveOccurred (), "failed to run manager" )
151166 gexec .KillAndWait (4 * time .Second )
0 commit comments