Exemple #1
0
 def test_should_return_warning_if_no_webhook_url(self, *_):
     check_webhook.CheckWebhookAction().run(config=MOCK_COMPLETE_CONFIG)
     results.Warning.assert_called()
Exemple #2
0
    def test_should_return_problem_if_connection_error(self, *_):

        check_webhook.CheckWebhookAction().run(config=MOCK_COMPLETE_CONFIG)
        results.Problem.assert_called()
Exemple #3
0
 def test_should_return_problem_if_warning_if_webhook_response_slow(
         self, *_):
     check_webhook.CheckWebhookAction().run(config=MOCK_COMPLETE_CONFIG)
     results.Warning.assert_called()