[cpp-xmltooling] 03/03: CPPXT-136 Describe how each test should behave.
Rod Widdowson
rdw at steadingsoftware.com
Thu Sep 27 08:43:56 EDT 2018
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository cpp-xmltooling.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=566036977bb21c0a6e05cfd72d0379ad973f715c
commit 566036977bb21c0a6e05cfd72d0379ad973f715c
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Sep 27 13:41:44 2018 +0100
CPPXT-136 Describe how each test should behave.
https://issues.shibboleth.net/jira/browse/CPPXT-136
My assumption being that
- Round trip fails,
- XmlTooling returns NO Public key
- Santuario returns a public key,
- verifyBase64Signature throws (xsec)
makes more sense than "true, true, false, true" as parameters.
---
xmltoolingtest/BadKeyInfoTest.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/xmltoolingtest/BadKeyInfoTest.h b/xmltoolingtest/BadKeyInfoTest.h
index 2c48b29..c011a0b 100644
--- a/xmltoolingtest/BadKeyInfoTest.h
+++ b/xmltoolingtest/BadKeyInfoTest.h
@@ -258,41 +258,49 @@ public:
void testRSABadMod()
{
+ // Encryption Throws, but keys are present
RSATest("RSABadMod.xml", true, false);
}
void testRSABadMod64()
{
+ // Encryption Throws, but keys are present
RSATest("RSABadMod64.xml", true, false);
}
void testRSABadExp()
{
+ // Encryption "works", and keys are present
RSATest("RSABadExp.xml", false, false);
}
void testRSABadExp64()
{
+ // Encryption "works", and keys are present
RSATest("RSABadExp64.xml", false, false);
}
void testRSANullMod()
{
+ // Encryption throws, no keys
RSATest("RSANullMod.xml", true, true);
}
void testRSANullExp()
{
+ // Encryption throws, no keys
RSATest("RSANullExp.xml", true, true);
}
void testRSANullBoth()
{
+ // Encryption throws, no keys
RSATest("RSANullBoth.xml", true, true);
}
void testRSAEmpty()
{
+ // Encryption throws, no keys
RSATest("RSAEmpty.xml", true, true);
}
@@ -300,58 +308,70 @@ public:
void testDSAGood()
{
+ // Round trip work, XmlTooling returns a public key, Santuario returns a public key, verifyBase64Signature doesn't throw (both cases)
DSATest("KeyInfoDSA.xml", false, false, false, false);
}
// P: tests
+ // In all these cases the round trip fails.
void testDSABadP()
{
+ // Round trip fails, XmlTooling returns a public key, Santuario returns a public key, verifyBase64Signature doesn't throw (both cases)
DSATest("DSABadP.xml", true, false, false, false);
}
void testDSABadP64()
{
+ // Round trip fails, XmlTooling returns a public key, Santuario returns a public key, verifyBase64Signature doesn't throw (both cases)
DSATest("DSABadP64.xml", true, false, false, false);
}
void testDSANoP()
{
+ // Round trip fails, XmlTooling returns NO public key, Santuario returns a public key, verifyBase64Signature throws (xsec)
DSATest("DSANoP.xml", true, true, false, true);
}
void testDSANullP()
{
+ // Round trip fails, XmlTooling returns NO public key, Santuario returns a public key, verifyBase64Signature throws (xsec)
DSATest("DSANullP.xml", true, true, false, true);
}
// Q: Tests
void testDSABadQ()
{
+ // Round trip fails, XmlTooling returns a public key, Santuario returns a public key, verifyBase64Signature throws (xsec & tooling)
DSATest("DSABadQ.xml", true, false, false, true);
}
void testDSABadQ64()
{
+ // Round trip fails, XmlTooling returns a public key, Santuario returns a public key, verifyBase64Signature throws (xsec & tooling)
DSATest("DSABadQ64.xml", true, false, false, true);
}
void testDSANoQ()
{
+ // Round trip fails, XmlTooling returns NO public key, Santuario returns a public key, verifyBase64Signature throws (xsec)
DSATest("DSANoQ.xml", true, true, false, true);
}
void testDSANoPQ()
{
+ // Round trip fails, XmlTooling returns NO public key, Santuario returns a public key, verifyBase64Signature throws (xsec)
DSATest("DSANoQP.xml", true, false, false, true);
}
void testDSANullQ()
{
+ // Round trip fails, XmlTooling returns NO public key, Santuario returns a public key, verifyBase64Signature throws (xsec)
DSATest("DSANullQ.xml", true, true, false, true);
}
void testDSANullPQ()
{
+ // Round trip fails, XmlTooling returns NO public key, Santuario returns a public key, verifyBase64Signature throws (xsec)
DSATest("DSANullQP.xml", true, true, false, true);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list