Skip to content

Commit c9f3135

Browse files
committed
8279385: [test] Adjust sun/security/pkcs12/KeytoolOpensslInteropTest.java after 8278344
Backport-of: 01f93ddf18daea5c0798ac949c6717c37d9cefa0
1 parent 351508c commit c9f3135

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
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
@@ -458,7 +458,7 @@ private static void testWithOpensslCommands(String opensslPath)
458458
"pkcs12", "-in", "ksnormal", "-passin", "pass:changeit",
459459
"-info", "-nokeys", "-nocerts");
460460
output1.shouldHaveExitValue(0)
461-
.shouldContain("MAC:").shouldContain("sha256").shouldContain("Iteration 10000")
461+
.shouldMatch("MAC:.*sha256.*Iteration 10000")
462462
.shouldContain("Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC,"
463463
+ " Iteration 10000, PRF hmacWithSHA256")
464464
.shouldContain("PKCS7 Encrypted data: PBES2, PBKDF2, AES-256-CBC,"
@@ -501,7 +501,7 @@ private static void testWithOpensslCommands(String opensslPath)
501501
"ksnewic", "-passin", "pass:changeit", "-info", "-nokeys",
502502
"-nocerts");
503503
output1.shouldHaveExitValue(0)
504-
.shouldContain("MAC:").shouldContain("sha256").shouldContain("Iteration 5555")
504+
.shouldMatch("MAC:.*sha256.*Iteration 5555")
505505
.shouldContain("Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC,"
506506
+ " Iteration 7777, PRF hmacWithSHA256")
507507
.shouldContain("Shrouded Keybag: pbeWithSHA1And128BitRC4,"

0 commit comments

Comments
 (0)