Skip to content

Commit 6779e25

Browse files
committed
Create keys before loading dapr
Signed-off-by: Sergio Herrera <627709+seherv@users.noreply.github.com>
1 parent 727902b commit 6779e25

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/integration/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,13 @@ def _binding_data_dir() -> Generator[None, None, None]:
213213
shutil.rmtree(BINDING_DATA_DIR, ignore_errors=True)
214214

215215

216-
@pytest.fixture(scope='session')
216+
@pytest.fixture(scope='session', autouse=True)
217217
def crypto_keys() -> Generator[Path, None, None]:
218-
"""Generate temporary RSA + AES keys for ``cryptostore.yaml``."""
218+
"""Generate temporary RSA + AES keys for ``cryptostore.yaml``.
219+
220+
Note: autouse is necessary because all sidecars load the entire resources/ folder, regardless
221+
of which components they actually test.
222+
"""
219223
write_test_keys(CRYPTO_KEYS_DIR)
220224
try:
221225
yield CRYPTO_KEYS_DIR

0 commit comments

Comments
 (0)