From 0f9714c6d0e19d3eb837f43661bc09db94287322 Mon Sep 17 00:00:00 2001 From: Roeland Date: Sun, 18 Apr 2021 22:08:34 +0200 Subject: [PATCH] fixed existing tests --- decrypt_test.go | 2 +- encrypt_realworld_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/decrypt_test.go b/decrypt_test.go index 8a40128..d595587 100644 --- a/decrypt_test.go +++ b/decrypt_test.go @@ -177,7 +177,7 @@ func (testSuite *DecryptTest) TestInvalid(c *C) { `) _, err = Decrypt(testSuite.Key, docStr) - c.Assert(err, ErrorMatches, "func=xmlSecBase64CtxDecodeByte:file=base64.c:line=441:obj=:subj=:error=12:inByte=0x3f; func=xmlSecBase64CtxDecode:file=base64.c:line=612:obj=:subj=xmlSecBase64CtxDecodeByte:error=1:status=4; func=xmlSecBase64CtxUpdate:file=base64.c:line=268:obj=:subj=xmlSecBase64CtxDecode:error=1: ; func=xmlSecBase64Decode:file=base64.c:line=754:obj=:subj=xmlSecBase64CtxUpdate:error=1: ; func=xmlSecOpenSSLX509CertBase64DerRead:file=x509.c:line=\\d+:obj=:subj=xmlSecBase64Decode:error=1: ; func=xmlSecOpenSSLX509CertificateNodeRead:file=x509.c:line=\\d+:obj=x509:subj=xmlSecOpenSSLX509CertBase64DerRead:error=1: ; func=xmlSecOpenSSLX509DataNodeRead:file=x509.c:line=\\d+:obj=x509:subj=X509Certificate:error=1:read node failed; func=xmlSecOpenSSLKeyDataX509XmlRead:file=x509.c:line=\\d+:obj=x509:subj=xmlSecOpenSSLX509DataNodeRead:error=1: ; func=xmlSecKeyInfoNodeRead:file=keyinfo.c:line=114:obj=x509:subj=xmlSecKeyDataXmlRead:error=1:node=X509Data; func=xmlSecKeysMngrGetKey:file=keys.c:line=1349:obj=:subj=xmlSecKeyInfoNodeRead:error=1:node=KeyInfo; func=xmlSecEncCtxEncDataNodeRead:file=xmlenc.c:line=957:obj=:subj=:error=45: ; func=xmlSecEncCtxDecryptToBuffer:file=xmlenc.c:line=715:obj=:subj=xmlSecEncCtxEncDataNodeRead:error=1: ; func=xmlSecKeysMngrGetKey:file=keys.c:line=1370:obj=:subj=xmlSecKeysMngrFindKey:error=1: ; func=xmlSecEncCtxEncDataNodeRead:file=xmlenc.c:line=957:obj=:subj=:error=45: ; func=xmlSecEncCtxDecryptToBuffer:file=xmlenc.c:line=715:obj=:subj=xmlSecEncCtxEncDataNodeRead:error=1: ; func=xmlSecEncCtxDecrypt:file=xmlenc.c:line=623:obj=:subj=xmlSecEncCtxDecryptToBuffer:error=1: ") + c.Assert(err, ErrorMatches, "func=xmlSecBase64CtxDecodeByte:file=base64.*") docStr = []byte(` diff --git a/encrypt_realworld_test.go b/encrypt_realworld_test.go index 33bbbbe..e5679ad 100644 --- a/encrypt_realworld_test.go +++ b/encrypt_realworld_test.go @@ -189,5 +189,5 @@ func (testSuite *XmlencRealWorldTest) TestInvalid(c *C) { `) _, err = Decrypt(testSuite.Key, docStr) - c.Assert(err, ErrorMatches, ".*name=EncryptionMethod.*") + c.Assert(err, ErrorMatches, ".*obj=EncryptionMethod.*") }