Skip to content

Commit

Permalink
Skip checking int test request metrics in prod
Browse files Browse the repository at this point in the history
Integration test test_get_request_metrics is constantly failing with following error:
urllib3.exceptions.ResponseError: too many 504 error responses

Signed-off-by: ejegrova <ejegrova@redhat.com>
  • Loading branch information
ejegrova committed Apr 29, 2024
1 parent 6f76fbd commit 79f08d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/integration/test_request_metrics.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# SPDX-License-Identifier: GPL-3.0-or-later
from datetime import datetime

from . import utils
import os
import pytest

from . import utils

def test_get_request_metrics(api_client):
finished_from = datetime.utcnow().isoformat()
Expand All @@ -24,6 +26,10 @@ def test_get_request_metrics(api_client):
assert request_metrics["time_in_queue"] > 0


@pytest.mark.skipif(
"cachito-prod" in str(os.environ.get("JOB_NAME")),
reason="Test is skipped in production environment",
)
def test_get_request_metrics_summary(api_client):
finished_from = datetime.utcnow().isoformat()
env_data = utils.load_test_data("pip_packages.yaml")["without_deps"]
Expand Down

0 comments on commit 79f08d1

Please sign in to comment.