From 8883795da4b1d0758c610191a848f933ec49cc4a Mon Sep 17 00:00:00 2001 From: Ivo Mattus Date: Mon, 9 Dec 2024 20:41:41 +0200 Subject: [PATCH] SIVA-719 Add a new test file for timestamp token test --- ...ampTokenValidationServiceTestProfileTest.java | 5 ++--- .../resources/test-files/testtimestamp.asics | Bin 0 -> 3299 bytes 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 validation-services-parent/timestamptoken-validation-service/src/test/resources/test-files/testtimestamp.asics diff --git a/validation-services-parent/timestamptoken-validation-service/src/test/java/ee/openeid/validation/service/timestamptoken/TimeStampTokenValidationServiceTestProfileTest.java b/validation-services-parent/timestamptoken-validation-service/src/test/java/ee/openeid/validation/service/timestamptoken/TimeStampTokenValidationServiceTestProfileTest.java index eb79a4a5d..991fe0a79 100644 --- a/validation-services-parent/timestamptoken-validation-service/src/test/java/ee/openeid/validation/service/timestamptoken/TimeStampTokenValidationServiceTestProfileTest.java +++ b/validation-services-parent/timestamptoken-validation-service/src/test/java/ee/openeid/validation/service/timestamptoken/TimeStampTokenValidationServiceTestProfileTest.java @@ -75,13 +75,12 @@ class TimeStampTokenValidationServiceTestProfileTest extends BaseTimeStampTokenValidationServiceTest { @Test - @Disabled("SIVA-719") void validTimeStampToken() { - SimpleReport simpleReport = validationService.validateDocument(buildValidationDocument("timestamptoken-ddoc.asics")).getSimpleReport(); + SimpleReport simpleReport = validationService.validateDocument(buildValidationDocument("testtimestamp.asics")).getSimpleReport(); assertEquals(1, simpleReport.getValidationConclusion().getTimeStampTokens().size()); TimeStampTokenValidationData validationData = simpleReport.getValidationConclusion().getTimeStampTokens().get(0); assertEquals(TimeStampTokenValidationData.Indication.TOTAL_PASSED, validationData.getIndication()); - assertEquals("SK TIMESTAMPING AUTHORITY", validationData.getSignedBy()); + assertEquals("DEMO of SK TSA 2014", validationData.getSignedBy()); assertNull(validationData.getError()); } diff --git a/validation-services-parent/timestamptoken-validation-service/src/test/resources/test-files/testtimestamp.asics b/validation-services-parent/timestamptoken-validation-service/src/test/resources/test-files/testtimestamp.asics new file mode 100644 index 0000000000000000000000000000000000000000..e1c3c46d5f777613c3f227fd90ff42f0aba26a54 GIT binary patch literal 3299 zcmds(c{J2tAIHCzY^h9)l7?@gY%^oajQLr@j6#@3yAtVSA8(|ew;O^)r;!mv8rc<2Qwk#c z;yFpg00993;07lNC+>TLa^B2vR{C&bb0Z{$=uLJf(ddW(idQ0DU#L+wwdgYb>C1^}PKIRR@BO_bFot5QswgfF^;zb-T$z6{JP{VZuG4x=>c>lb2IC{TdWTx(jpK^$XP8h)%`(MA*WE7A1C|h&Rf&1lPJ?8_xN@tVbM3v>e)rcO z)%(?7T3H;LUm5CK*PY+Nh|PmC&6(Y9$M=iN^3(;03LnT&21Si?ndTx%IVuN@fG#W( zslnJEDb#!S2`CZ;9)!s4j|l_A;Mzbe1RodSTvk_;``mIOY|YL(5_f1oJk5Lh?O@gW z#OP%4l`1u5qD>4GtzHs^WaM+t1`FT)cbFD5Ba=^Xb;_mTSSpwFEm2T~w~6|nRP`>* zqbGXomm?$r0_8gCSBKfH%5tIhRfZ4 zsyNU+tc`W4b&zl5!<~ig_;_IMN|eC*vDItJ`gZA&Y!Phb0BNeCw4jI!3Qb4kn(cl2P@)s40)`o6X6U?yIh)e$d_F^fFUo(mz`i*{|R# zKg04HAkx1OT8mexa=~YJD{KfwE2KUV$`zDj1hrJfudDI&Y!~(CXDfu@;Yu0lb@R!` z&zMyAxrw(-Ja@t86)U}w zaCkblFG;6$(m%_yh+UV^lU-@rhACCfSsNz=v!g?ygh88gq~|A#ZIy6Fit5b?Mom!d zZSZW2gv9cx(&Ub-SKlMjGf1*|_D&OihenOtmD^br?a#T5KyIt{BCZ-mQ0DVV2l30g zx$@kigORq1&D95$sb?Cm3B<<6%IrSsV3n?Kjh74kEP&{E_UQSt(xT66m}*RY8_cn}6-fJtW z-2Xa&DXDV0M5o*7HXJXVH*@mEsasKICxS1$**5~O?eSeCvN|RtHN4hu9MCG6q}`Mb zvrhg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