diff --git a/tubular/scripts/dd_synthetic_tests.py b/tubular/scripts/dd_synthetic_tests.py index e2b9903c..523ec124 100644 --- a/tubular/scripts/dd_synthetic_tests.py +++ b/tubular/scripts/dd_synthetic_tests.py @@ -12,6 +12,9 @@ """ Command-line script to run Datadog synthetic tests in the production enviornment and then slack notify and/or roll back """ + +logging.basicConfig(stream=sys.stdout, level=logging.INFO) + @click.option( '--enable-automated-rollbacks', is_flag=True, @@ -24,8 +27,6 @@ help='When set and synthetic tests fail, an alert Slack message is sent to this channel' ) -logging.basicConfig(stream=sys.stdout, level=logging.INFO) - def run_synthetic_tests(enable_automated_rollbacks, slack_notification_channel): ''' @@ -35,6 +36,8 @@ def run_synthetic_tests(enable_automated_rollbacks, slack_notification_channel): ''' PUBLIC_TEST_ID = "sad-hqu-h33" + sys.exit(1) # To test that this script is actually being run + if enable_automated_rollbacks: logging.Error("Automated rollbacks are not yet supported") exit()