Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
/ jdk18 Public archive

Commit 01f93dd

Browse files
committed
8279385: [test] Adjust sun/security/pkcs12/KeytoolOpensslInteropTest.java after 8278344
Reviewed-by: mullan, xuelei Backport-of: 9bdf6eb7b2412ecff523015f1430dfb6a0e4dd09
1 parent 2531c33 commit 01f93dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/jdk/sun/security/pkcs12/KeytoolOpensslInteropTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -462,7 +462,7 @@ private static void testWithOpensslCommands(String opensslPath)
462462
"pkcs12", "-in", "ksnormal", "-passin", "pass:changeit",
463463
"-info", "-nokeys", "-nocerts");
464464
output1.shouldHaveExitValue(0)
465-
.shouldContain("MAC:").shouldContain("sha256").shouldContain("Iteration 10000")
465+
.shouldMatch("MAC:.*sha256.*Iteration 10000")
466466
.shouldContain("Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC,"
467467
+ " Iteration 10000, PRF hmacWithSHA256")
468468
.shouldContain("PKCS7 Encrypted data: PBES2, PBKDF2, AES-256-CBC,"
@@ -505,7 +505,7 @@ private static void testWithOpensslCommands(String opensslPath)
505505
"ksnewic", "-passin", "pass:changeit", "-info", "-nokeys",
506506
"-nocerts");
507507
output1.shouldHaveExitValue(0)
508-
.shouldContain("MAC:").shouldContain("sha256").shouldContain("Iteration 5555")
508+
.shouldMatch("MAC:.*sha256.*Iteration 5555")
509509
.shouldContain("Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC,"
510510
+ " Iteration 7777, PRF hmacWithSHA256")
511511
.shouldContain("Shrouded Keybag: pbeWithSHA1And128BitRC4,"

0 commit comments

Comments
 (0)