Skip to content

Commit

Permalink
tests: don't check the signature data
Browse files Browse the repository at this point in the history
Jcardsim seem to be seeding the PRNG with something and thus the
signature is changing daily. Until it's clear how to consistently
getting the same keys, disable checking the returned signature for now.
Just check that the command was successful.

Signed-off-by: Michael Walle <[email protected]>
  • Loading branch information
mwalle committed Mar 21, 2024
1 parent 01d8c99 commit ca35278
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
12 changes: 1 addition & 11 deletions test/cc/walle/neopgp/GenerateKeyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,7 @@
public class GenerateKeyTest extends JcardsimTestCase {
@Test public void generateSignatureKey() {
admin();
assertResponseData(
"7F4982010981820100EC0D6160DE4DE5BB96BD635A27DD5D6F7D5D38D555DDED" +
"DED3636220775768B85CDB881CB610092DB3954977DF72E7CE881059E67305B6" +
"0EE710D4323A6C53464C723C0D226D523286A1C45A503C52B75BB20CF1DD29B4" +
"5E07C5AE218EEC655B0632F5928EE2D34F108BCBB0A86172CB0E63069181F32F" +
"FFB9F80BFEE23CC038DA28779AA0731FD090DC35A0872A5F5B7D5EFA4F454725" +
"FA70B3B10037D2A177C640EFA8C6D9E4637EAB8D1EE34174D96FB0CF99438632" +
"451FE4194BBFD91EF1C70A883D1AD9217025DDFBF65E2368BF962B7378811AF8" +
"776F951783D9F019D3603A549C6C0D62F8B871C08178F9EC2638BD2FBD2C2C7A" +
"819B47404F905629198203010001",
"00478000000002B6000000");
assertResponseOK("00478000000002B6000000");
}

@Test public void defaultResponseNoKey() {
Expand Down
10 changes: 1 addition & 9 deletions test/cc/walle/neopgp/PSOSignatureTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@ public class PSOSignatureTest extends JcardsimTestCase {
@Test public void generateSignature() {
admin();
assertResponseOK("00478000000002B6000000");
assertResponseData(
"34D65F9C0631A01989C591D27406A0BF7BE397C7D1BE58807525569F1EF5FA12" +
"CBB05396F405A1F81352AA1367923596E77C0D3B63717B51C55DAAF4B209ED6D" +
"061EAD521C217DA8AC3EAC1E9F795CBCFC448BB75D3DF8B1EBCEFA617E81C029" +
"D189874D6C3E031D34177C2B39CC6B7F12588755276B58ACE03A0B2838D486C8" +
"BEEDD6CC6FFCDC8E9EDAE5A2D745084E79D8ABABB568E55934D98516C7FF2D14" +
"DC7DE9F0E72E79E163BDE317D56DBD32F533A02DFB1CC36A2DF6F611B62B8F81" +
"11682FE65587319AB82CEC887BCD6B3E2725812BEAB18F676918B385EEF81110" +
"72184D6D089B44E2A98816CD585B5ACF91339C64E8D5A3F5C30A79BF707438D7",
assertResponseOK(
"002A9E9A533051300D06096086480165030402030500044093BFAC45A3D9EC01" +
"9536A9F60DAA246283EBA5EC892E09AFEA289B37D956A6C46D74F5ECE076A6EF" +
"392C7728045C1403F0C758C3BC01826E29697E8CF78A4B8E00");
Expand Down

0 comments on commit ca35278

Please sign in to comment.