FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 94bdc3bc authored by L. Bower's avatar L. Bower
Browse files

trying to get full-fat advisory running on server

parent e35c2f70
No related branches found
No related tags found
No related merge requests found
......@@ -54,14 +54,16 @@ class FullTestAdvisory(BaseAdvisoryTestSuite.AdvisoryTestSuite):
@staticmethod
def run_dependent_pipelines():
# IntegrationTestUtils.run_external_pipeline("Deposition",
# BaseAdvisoryTestSuite.AdvisoryTestSuite.TEST_START_DATE,
# IntegrationTestUtils.EMAIL_CRED_PATH)
# IntegrationTestUtils.run_external_pipeline("Environment",
# BaseAdvisoryTestSuite.AdvisoryTestSuite.TEST_START_DATE,
# IntegrationTestUtils.EMAIL_CRED_PATH)
IntegrationTestUtils.run_external_pipeline("Deposition",
BaseAdvisoryTestSuite.AdvisoryTestSuite.TEST_START_DATE,
IntegrationTestUtils.EMAIL_CRED_PATH)
IntegrationTestUtils.run_external_pipeline("Environment",
BaseAdvisoryTestSuite.AdvisoryTestSuite.TEST_START_DATE,
IntegrationTestUtils.EMAIL_CRED_PATH)
previous_day_string: str = IntegrationTestUtils.get_day_before_as_string(BaseAdvisoryTestSuite.AdvisoryTestSuite.TEST_START_DATE)
IntegrationTestUtils.run_external_pipeline("Survey",
"20230125",
previous_day_string,
IntegrationTestUtils.EMAIL_CRED_PATH)
pass
......
......@@ -149,6 +149,15 @@ class IntegrationTestUtils:
pass
@staticmethod
def get_day_before_as_string(input_date_string: str) -> str:
date_format = "%Y%m%d"
input_date: datetime = datetime.datetime.strptime(input_date_string, date_format)
yesterday_date = input_date - datetime.timedelta(days = 1)
yesterday_string = yesterday_date.strftime(date_format)
return yesterday_string
@staticmethod
def generate_run_date(run_date_type: str,
custom_run_date: str) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment