Skip to content

Commit 7d80ca4

Browse files
committed
Add timestamp to bundle and validate
Signed-off-by: Aaron Lew <64337293+aaronlew02@users.noreply.github.com>
1 parent cde288c commit 7d80ca4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sigstore-java/src/test/java/dev/sigstore/timestamp/client/TimestampVerifierTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import static org.junit.jupiter.api.Assertions.assertTrue;
2323

2424
import com.google.common.io.Resources;
25-
import com.google.protobuf.util.JsonFormat;
2625
import dev.sigstore.json.ProtoJson;
2726
import dev.sigstore.proto.trustroot.v1.TrustedRoot;
2827
import dev.sigstore.trustroot.SigstoreTrustedRoot;
@@ -46,7 +45,6 @@ public class TimestampVerifierTest {
4645

4746
@BeforeAll
4847
public static void loadResources() throws Exception {
49-
5048
artifact = "test\n".getBytes(StandardCharsets.UTF_8);
5149

5250
try (var is =
@@ -107,8 +105,9 @@ public static void initTrustRoot() throws Exception {
107105
Resources.getResource("dev/sigstore/trustroot/staging_trusted_root_with_one_tsa.json"),
108106
StandardCharsets.UTF_8);
109107
builder = TrustedRoot.newBuilder();
110-
JsonFormat.parser().merge(json, builder);
108+
ProtoJson.parser().merge(json, builder);
111109

110+
trustedRootWithOneTsa = SigstoreTrustedRoot.from(builder.build());
112111
trustedRootWithOneTsa = SigstoreTrustedRoot.from(builder.build());
113112

114113
json =
@@ -120,6 +119,7 @@ public static void initTrustRoot() throws Exception {
120119
ProtoJson.parser().merge(json, builder);
121120

122121
trustedRootWithOutdatedTsa = SigstoreTrustedRoot.from(builder.build());
122+
trustedRootWithOutdatedTsa = SigstoreTrustedRoot.from(builder.build());
123123
}
124124

125125
@Test

0 commit comments

Comments
 (0)