Skip to content

Commit 0f64670

Browse files
committed
[test] fix functional test
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
1 parent 26433bf commit 0f64670

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/functional/horizon_controller_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,11 +872,11 @@ var _ = Describe("Horizon controller", func() {
872872
When("Horizon CR instance is built with NAD", func() {
873873
var nad map[string][]string
874874
BeforeEach(func() {
875-
nad := th.CreateNetworkAttachmentDefinition(types.NamespacedName{
875+
nadDef := th.CreateNetworkAttachmentDefinition(types.NamespacedName{
876876
Namespace: namespace,
877877
Name: "storage",
878878
})
879-
DeferCleanup(th.DeleteInstance, nad)
879+
DeferCleanup(th.DeleteInstance, nadDef)
880880
rawSpec := map[string]interface{}{
881881
"secret": SecretName,
882882
"networkAttachments": []string{"storage"},
@@ -892,9 +892,10 @@ var _ = Describe("Horizon controller", func() {
892892
})
893893
keystoneAPI := keystone.CreateKeystoneAPI(namespace)
894894
DeferCleanup(keystone.DeleteKeystoneAPI, keystoneAPI)
895+
nad = map[string][]string{deploymentName.Namespace + "/storage": {"172.18.0.1"}}
895896
th.SimulateDeploymentReadyWithPods(
896897
horizonName,
897-
map[string][]string{deploymentName.Namespace + "/storage": {"172.18.0.1"}},
898+
nad,
898899
)
899900

900901
})

0 commit comments

Comments
 (0)