lf_check.py : information in NA for lf_qa.py links

lf_qa.py : initial work reporting broken links

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-12-10 07:37:16 -07:00
parent 22525435ba
commit a8b76143d5
2 changed files with 8 additions and 3 deletions

View File

@@ -435,11 +435,16 @@ Database: {db}
http://{hostname}/{report}""".format(hostname=self.hostname, suite=self.test_suite, db=self.database_sqlite, report=report_url)
# Put in report information current two methods supported,
if "NA" not in self.qa_report_html:
message_txt += """
QA Report Dashboard:
http://{ip_qa}/{qa_url}
NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url)
else:
message_txt += """
QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
if (self.email_title_txt != ""):
mail_subject = "{email} [{hostname}] {suite} {date}".format(email=self.email_title_txt, hostname=self.hostname,
suite=self.test_suite, db=self.database_sqlite, date=datetime.datetime.now())

View File

@@ -747,8 +747,8 @@ Usage: lf_qa.py --store --png --path <path to directories to traverse> --databas
report.set_table_title("QA Test Results")
report.build_table_title()
# report.set_text("lanforge-scripts git sha: {}".format(git_sha))
# report.build_text()
# report.set_text("QA broken links, check if server correct: {server} example --server 'http:/192.168.0.101/".format(server=__server))
report.build_text()
html_results = csv_dash.get_html_results()
report.set_custom_html(html_results)
report.build_custom()