Skip to content

Commit 81cce07

Browse files
use staging_with_rekorv2 fixture
Signed-off-by: Ramon Petgrave <[email protected]>
1 parent 9f0d8d7 commit 81cce07

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

test/unit/internal/rekor/test_client_v2.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,19 @@
1919
from sigstore import dsse
2020
from sigstore._internal.rekor.client_v2 import (
2121
LogEntry,
22-
RekorV2Client,
2322
)
2423
from sigstore.models import rekor_v1
2524

26-
ALPHA_REKOR_V2_URL = "https://log2025-alpha1.rekor.sigstage.dev"
27-
2825

2926
@pytest.mark.staging
3027
@pytest.mark.ambient_oidc
31-
def test_rekor_v2_create_entry_dsse(staging):
28+
def test_rekor_v2_create_entry_dsse(staging_with_rekorv2):
3229
# This is not a real unit test: it requires not only staging rekor but also TUF
3330
# fulcio and oidc -- maybe useful only until we have real integration tests in place
34-
sign_ctx_cls, _, identity = staging
31+
sign_ctx_cls, _, identity = staging_with_rekorv2
3532

3633
# Hack to run Signer.sign() with staging rekor v2
3734
sign_ctx = sign_ctx_cls()
38-
sign_ctx._rekor = RekorV2Client(ALPHA_REKOR_V2_URL)
3935

4036
stmt = (
4137
dsse.StatementBuilder()
@@ -64,14 +60,13 @@ def test_rekor_v2_create_entry_dsse(staging):
6460

6561
@pytest.mark.staging
6662
@pytest.mark.ambient_oidc
67-
def test_rekor_v2_create_entry_hashed_rekord(staging):
63+
def test_rekor_v2_create_entry_hashed_rekord(staging_with_rekorv2):
6864
# This is not a real unit test: it requires not only staging rekor but also TUF
6965
# fulcio and oidc -- maybe useful only until we have real integration tests in place
70-
sign_ctx_cls, _, identity = staging
66+
sign_ctx_cls, _, identity = staging_with_rekorv2
7167

7268
# Hack to run Signer.sign() with staging rekor v2
7369
sign_ctx = sign_ctx_cls()
74-
sign_ctx._rekor = RekorV2Client(ALPHA_REKOR_V2_URL)
7570

7671
with sign_ctx.signer(identity) as signer:
7772
bundle = signer.sign_artifact(b"")

0 commit comments

Comments
 (0)