aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2019-03-07 10:31:57 -0800
committerRitu Sood <ritu.sood@intel.com>2019-03-07 10:43:58 -0800
commit2fe6627e8ec74bbd8a7777a41f519cc082a4a566 (patch)
tree8ded7de6efab71f35b4aa709a80a5ee4dd344d4d /internal
parentf5dbc7008e5e72f53c4fce33d23248a5a303fc19 (diff)
Fix unit test failure
Updating unit test for matching the changes in another patches Change-Id: I1a6d7ecf00261a4a7b7514b45456f6ac17993d2e Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/ovn/ovn_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/pkg/ovn/ovn_test.go b/internal/pkg/ovn/ovn_test.go
index 312a26a..f974c30 100644
--- a/internal/pkg/ovn/ovn_test.go
+++ b/internal/pkg/ovn/ovn_test.go
@@ -124,7 +124,7 @@ var _ = Describe("Add logical Port", func() {
})
fakeCmds = ovntest.AddFakeCmdsNoOutputNoError(fakeCmds, []string{
- "ovn-nbctl --timeout=15 --may-exist lsp-add " + netName + " " + portName + " -- lsp-set-addresses " + portName + " " + macIPAddress + " -- --if-exists clear logical_switch_port " + portName + " dynamic_addresses",
+ "ovn-nbctl --timeout=15 --may-exist lsp-add " + netName + " " + portName + " -- lsp-set-addresses " + portName + " " + macIPAddress + " -- --if-exists clear logical_switch_port " + portName + " dynamic_addresses" + " -- set logical_switch_port " + portName + " external-ids:namespace= external-ids:logical_switch=" + netName + " external-ids:pod=true",
})
fakeCmds = ovntest.AddFakeCmd(fakeCmds, &ovntest.ExpectedCmd{
@@ -141,9 +141,6 @@ var _ = Describe("Add logical Port", func() {
err := util.SetExec(fexec)
Expect(err).NotTo(HaveOccurred())
- _, err = config.InitConfig(ctx, fexec, nil)
- Expect(err).NotTo(HaveOccurred())
-
fakeClient := &fake.Clientset{}
var fakeWatchFactory factory.WatchFactory