Update nfv scenario tests to use /etc/platform/openrc

When /etc/nova/openrc was removed from the controller
these scenario tests were not updated and therefore were
unable to run.

Verified that the tests are able to get further.

Story: 2004764
Task: 30370
Change-Id: I4206f850957afdd551f9932b9c452d58aee893e9
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
This commit is contained in:
Al Bailey 2019-04-05 15:19:23 -05:00
parent c38bfbb4ab
commit 76a8955016
2 changed files with 6 additions and 6 deletions

View File

@ -138,7 +138,7 @@ class TestHost(_test_base.Test):
if wipe:
open(filename, 'w').close()
os.system("source /etc/nova/openrc; echo -e '\tALARM-LIST' >> %s; "
os.system("source /etc/platform/openrc; echo -e '\tALARM-LIST' >> %s; "
"fm alarm-list --nowrap | sed 's/^/\t /' >> %s; "
"echo -e '\n' >> %s" % (filename, filename, filename))
@ -149,7 +149,7 @@ class TestHost(_test_base.Test):
if wipe:
open(filename, 'w').close()
os.system("source /etc/nova/openrc; echo -e '\tLOG-LIST' >> %s; "
os.system("source /etc/platform/openrc; echo -e '\tLOG-LIST' >> %s; "
"fm event-list --logs --nowrap --nopaging --limit 100 --query "
"'start=%s;end=%s' | sed 's/^/\t /' >> %s; echo -e '\n' >> %s"
% (filename, self._start_datetime, self._end_datetime,
@ -162,7 +162,7 @@ class TestHost(_test_base.Test):
if wipe:
open(filename, 'w').close()
os.system("source /etc/nova/openrc; echo -e '\tALARM-HISTORY' >> %s; "
os.system("source /etc/platform/openrc; echo -e '\tALARM-HISTORY' >> %s; "
"fm event-list --alarms --nowrap --nopaging --limit 100 "
"--query 'start=%s;end=%s' | sed 's/^/\t /' >> %s; "
"echo -e '\n' >> %s"

View File

@ -136,7 +136,7 @@ class TestInstance(_test_base.Test):
if wipe:
open(filename, 'w').close()
os.system("source /etc/nova/openrc; echo -e '\tALARM-LIST' >> %s; "
os.system("source /etc/platform/openrc; echo -e '\tALARM-LIST' >> %s; "
"fm alarm-list --nowrap | sed 's/^/\t /' >> %s; "
"echo -e '\n' >> %s" % (filename, filename, filename))
@ -147,7 +147,7 @@ class TestInstance(_test_base.Test):
if wipe:
open(filename, 'w').close()
os.system("source /etc/nova/openrc; echo -e '\tLOG-LIST' >> %s; "
os.system("source /etc/platform/openrc; echo -e '\tLOG-LIST' >> %s; "
"fm event-list --logs --nowrap --nopaging --limit 100 --query "
"'start=%s;end=%s' | sed 's/^/\t /' >> %s; echo -e '\n' >> %s"
% (filename, self._start_datetime, self._end_datetime,
@ -160,7 +160,7 @@ class TestInstance(_test_base.Test):
if wipe:
open(filename, 'w').close()
os.system("source /etc/nova/openrc; echo -e '\tALARM-HISTORY' >> %s; "
os.system("source /etc/platform/openrc; echo -e '\tALARM-HISTORY' >> %s; "
"fm event-list --alarms --nowrap --nopaging --limit 100 "
"--query 'start=%s;end=%s' | sed 's/^/\t /' >> %s; "
"echo -e '\n' >> %s"