Skip to content

Commit 89b2f4b

Browse files
committed
Fix test after moving file directory
1 parent 561a70f commit 89b2f4b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/operator/controllers/external_traffic/external_traffic_network_policy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ func (s *ExternalNetworkPolicyReconcilerTestSuite) SetupSuite() {
5757
logrus.Info("Setting up test suite")
5858
s.TestEnv = &envtest.Environment{Scheme: clientgoscheme.Scheme}
5959
var err error
60-
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "..", "config", "crd")}
60+
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "config", "crd")}
6161
s.TestEnv.WebhookInstallOptions = envtest.WebhookInstallOptions{
62-
Paths: []string{filepath.Join("..", "..", "..", "config", "webhook")},
62+
Paths: []string{filepath.Join("..", "..", "config", "webhook")},
6363
LocalServingHost: "localhost",
6464
}
6565
utilruntime.Must(apiextensionsv1.AddToScheme(s.TestEnv.Scheme))

src/operator/controllers/external_traffic/external_traffic_network_policy_with_ingress_controllers_configured_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ func (s *ExternalNetworkPolicyReconcilerWithIngressControllersConfiguredTestSuit
6565
logrus.Info("Setting up test suite")
6666
s.TestEnv = &envtest.Environment{Scheme: clientgoscheme.Scheme}
6767
var err error
68-
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "..", "config", "crd")}
68+
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "config", "crd")}
6969
s.TestEnv.WebhookInstallOptions = envtest.WebhookInstallOptions{
70-
Paths: []string{filepath.Join("..", "..", "..", "config", "webhook")},
70+
Paths: []string{filepath.Join("..", "..", "config", "webhook")},
7171
LocalServingHost: "localhost",
7272
}
7373
utilruntime.Must(apiextensionsv1.AddToScheme(s.TestEnv.Scheme))

src/operator/controllers/external_traffic/external_traffic_network_policy_with_no_intents_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ func (s *ExternalNetworkPolicyReconcilerWithNoIntentsTestSuite) SetupSuite() {
5454
logrus.Info("Setting up test suite")
5555
s.TestEnv = &envtest.Environment{Scheme: clientgoscheme.Scheme}
5656
var err error
57-
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "..", "config", "crd")}
57+
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "config", "crd")}
5858
s.TestEnv.WebhookInstallOptions = envtest.WebhookInstallOptions{
59-
Paths: []string{filepath.Join("..", "..", "..", "config", "webhook")},
59+
Paths: []string{filepath.Join("..", "..", "config", "webhook")},
6060
LocalServingHost: "localhost",
6161
}
6262
utilruntime.Must(apiextensionsv1.AddToScheme(s.TestEnv.Scheme))

0 commit comments

Comments
 (0)