Skip to content

Commit

Permalink
retry the user files
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo committed Jan 26, 2025
1 parent 610e65e commit 5fa47ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pytest-asyncio>=0.23,<1.0.0
libpvarki @ git+https://github.com/pvarki/[email protected]
bump2version>=1.0.1,<2.0.0
pendulum>=3.0.0,<4.0.0
flaky>=3.8.1,<4.0.0
4 changes: 4 additions & 0 deletions tests/testscenarios/test_cert_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import aiohttp
import pytest
import pytest_asyncio
from flaky import flaky # type: ignore
from cryptography.hazmat.primitives.serialization import pkcs12
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import serialization
Expand Down Expand Up @@ -336,11 +337,14 @@ def parse_file_payload(fpl: Dict[str, str]) -> None:
assert dec


@flaky(max_runs=3, min_passes=2) # type: ignore
@pytest.mark.asyncio
async def test_10_check_enduser_files(
session_with_testcas: aiohttp.ClientSession,
) -> None:
"""Check that we can get files from product integration apis"""
# Wait a moment so we have less of race issues
await asyncio.sleep(2.0)
client = session_with_testcas
client.headers.update({"Authorization": f"Bearer {ValueStorage.call_sign_jwt}"})
url = f"{API}/{VER}/instructions/user"
Expand Down

0 comments on commit 5fa47ca

Please sign in to comment.