Make it possible to run functional tests again

When running tox -e functional, stestr was running the unit tests.
Changing .stestr.conf to use ${OS_TEST_PATH} seems to fix it. Two
functional tests were not passing when I made this change, so I
fixed those as well so this change wouldn't fail the gate.

Change-Id: I6c4a3ff7a50aca925dca1d7f9cfe83e99fedaa50
This commit is contained in:
Terry Wilson 2018-07-19 17:37:39 +00:00
parent f631143f3c
commit b494214719
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
[DEFAULT]
test_path=./ovsdbapp/tests/unit
test_path=${OS_TEST_PATH}
top_dir=./

View File

@ -436,8 +436,8 @@ class TestLspOps(OvnNorthboundTest):
def test_lsp_del_wrong_switch(self):
lsp = self._lsp_add(self.switch, None)
sw_id = self.useFixture(fixtures.LogicalSwitchFixture()).obj
cmd = self.api.lsp_del(lsp.uuid, sw_id)
sw = self.useFixture(fixtures.LogicalSwitchFixture()).obj
cmd = self.api.lsp_del(lsp.uuid, sw.uuid)
self.assertRaises(RuntimeError, cmd.execute, check_error=True)
def test_lsp_del_switch_no_exist(self):
@ -964,8 +964,8 @@ class TestLogicalRouterPortOps(OvnNorthboundTest):
def test_lrp_del_wrong_router(self):
lrp = self._lrp_add(None)
sw_id = self.useFixture(fixtures.LogicalSwitchFixture()).obj
cmd = self.api.lrp_del(lrp.uuid, sw_id)
sw = self.useFixture(fixtures.LogicalSwitchFixture()).obj
cmd = self.api.lrp_del(lrp.uuid, sw.uuid)
self.assertRaises(RuntimeError, cmd.execute, check_error=True)
def test_lrp_del_router_no_exist(self):