|
19 | 19 | from sigstore import dsse
|
20 | 20 | from sigstore._internal.rekor.client_v2 import (
|
21 | 21 | LogEntry,
|
22 |
| - RekorV2Client, |
23 | 22 | )
|
24 | 23 | from sigstore.models import rekor_v1
|
25 | 24 |
|
26 |
| -ALPHA_REKOR_V2_URL = "https://log2025-alpha1.rekor.sigstage.dev" |
27 |
| - |
28 | 25 |
|
29 | 26 | @pytest.mark.staging
|
30 | 27 | @pytest.mark.ambient_oidc
|
31 |
| -def test_rekor_v2_create_entry_dsse(staging): |
| 28 | +def test_rekor_v2_create_entry_dsse(staging_with_rekorv2): |
32 | 29 | # This is not a real unit test: it requires not only staging rekor but also TUF
|
33 | 30 | # 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 |
35 | 32 |
|
36 | 33 | # Hack to run Signer.sign() with staging rekor v2
|
37 | 34 | sign_ctx = sign_ctx_cls()
|
38 |
| - sign_ctx._rekor = RekorV2Client(ALPHA_REKOR_V2_URL) |
39 | 35 |
|
40 | 36 | stmt = (
|
41 | 37 | dsse.StatementBuilder()
|
@@ -64,14 +60,13 @@ def test_rekor_v2_create_entry_dsse(staging):
|
64 | 60 |
|
65 | 61 | @pytest.mark.staging
|
66 | 62 | @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): |
68 | 64 | # This is not a real unit test: it requires not only staging rekor but also TUF
|
69 | 65 | # 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 |
71 | 67 |
|
72 | 68 | # Hack to run Signer.sign() with staging rekor v2
|
73 | 69 | sign_ctx = sign_ctx_cls()
|
74 |
| - sign_ctx._rekor = RekorV2Client(ALPHA_REKOR_V2_URL) |
75 | 70 |
|
76 | 71 | with sign_ctx.signer(identity) as signer:
|
77 | 72 | bundle = signer.sign_artifact(b"")
|
|
0 commit comments