mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-22 13:05:11 +00:00
lf_check.py: allows for default DB then custom DB applied, test_l3_longevity.py : modified how type of service entered to help automation
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -105,7 +105,7 @@ class L3VariableTime(Realm):
|
|||||||
_proxy_str=_proxy_str,
|
_proxy_str=_proxy_str,
|
||||||
_capture_signal_list=_capture_signal_list)
|
_capture_signal_list=_capture_signal_list)
|
||||||
self.influxdb = influxdb
|
self.influxdb = influxdb
|
||||||
self.tos = tos.split()
|
self.tos = tos.split(",")
|
||||||
self.endp_types = endp_types.split(",")
|
self.endp_types = endp_types.split(",")
|
||||||
self.side_b = side_b
|
self.side_b = side_b
|
||||||
self.ssid_list = ssid_list
|
self.ssid_list = ssid_list
|
||||||
|
|||||||
@@ -278,11 +278,15 @@ class lf_check():
|
|||||||
|
|
||||||
if self.use_factory_default_db == "TRUE":
|
if self.use_factory_default_db == "TRUE":
|
||||||
self.load_factory_default_db()
|
self.load_factory_default_db()
|
||||||
|
sleep(1)
|
||||||
self.logger.info("FACTORY_DFLT loaded between tests with scenario.py --load FACTORY_DFLT")
|
self.logger.info("FACTORY_DFLT loaded between tests with scenario.py --load FACTORY_DFLT")
|
||||||
elif self.use_blank_db == "TRUE":
|
if self.use_blank_db == "TRUE":
|
||||||
self.load_blank_db()
|
self.load_blank_db()
|
||||||
|
sleep(1)
|
||||||
self.logger.info("BLANK loaded between tests with scenario.py --load BLANK")
|
self.logger.info("BLANK loaded between tests with scenario.py --load BLANK")
|
||||||
elif self.use_custom_db == "TRUE":
|
if self.use_custom_db == "TRUE":
|
||||||
|
self.load_factory_default_db()
|
||||||
|
sleep(1)
|
||||||
try:
|
try:
|
||||||
self.load_custom_db(self.custom_db)
|
self.load_custom_db(self.custom_db)
|
||||||
self.logger.info("{} loaded between tests with scenario.py --load {}".format(self.custom_db,self.custom_db))
|
self.logger.info("{} loaded between tests with scenario.py --load {}".format(self.custom_db,self.custom_db))
|
||||||
@@ -291,7 +295,7 @@ class lf_check():
|
|||||||
else:
|
else:
|
||||||
self.logger.info("no db loaded between tests: {}".format(self.use_custom_db))
|
self.logger.info("no db loaded between tests: {}".format(self.use_custom_db))
|
||||||
|
|
||||||
sleep(5) # the sleep is to allow for the database to stablize
|
sleep(1) # the sleep is to allow for the database to stablize
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.chdir(self.scripts_wd)
|
os.chdir(self.scripts_wd)
|
||||||
|
|||||||
Reference in New Issue
Block a user