changeset 42:6e7ef7e95031

Some more tests and some more test data
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Mar 2014 09:48:56 +0000
parents 7055a79abe02
children 5910bf9016cd
files ui/tests/certlistparsertest.cpp ui/tests/certlistparsertest.h ui/tests/data/NOTES ui/tests/data/empty_file ui/tests/data/list-valid-other-signature.txt ui/tests/data/list-valid-sha1-signature.txt ui/tests/data/list-with-null.txt ui/tests/data/testkey-other.pem
diffstat 7 files changed, 85 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/ui/tests/certlistparsertest.cpp	Fri Mar 14 09:48:02 2014 +0000
+++ b/ui/tests/certlistparsertest.cpp	Fri Mar 14 09:48:56 2014 +0000
@@ -7,7 +7,6 @@
 {
     const char *fname = "list-valid-signed.txt";
     CertificateList *certList = testWithFile(fname);
-    printf("Status :%i\n ",certList->getStatus());
     QCOMPARE (certList->getStatus(), Valid);
     QVERIFY (certList->isValid());
     delete certList;
@@ -15,10 +14,15 @@
 
 void CertListTest::testInvalidSig()
 {
-    const char *fname = "list-invalid-signed.txt";
-    CertificateList *certList = testWithFile(fname);
-    QCOMPARE (certList->getStatus(), InvalidSignature);
-    delete certList;
+    const char *fnames[] = {"list-invalid-signed.txt",
+        "list-valid-other-signature.txt",
+        "list-valid-sha1-signature.txt",
+        NULL};
+    for (int i=0; fnames[i] != NULL; i++) {
+        CertificateList *certList = testWithFile(fnames[i]);
+        QCOMPARE (certList->getStatus(), InvalidSignature);
+        delete certList;
+    }
 }
 
 void verifyInvalidFile(const char *fName) {
@@ -36,12 +40,25 @@
     verifyInvalidFile("💩 ");
 }
 
+void CertListTest::testEmptyFile()
+{
+    const char *fname = "empty_file";
+    CertificateList *certList = testWithFile(fname);
+    printf("Status :%i\n ",certList->getStatus());
+    QCOMPARE (certList->getStatus(), UnknownError);
+    delete certList;
+}
+
 void CertListTest::testGarbage()
 {
-    const char *fname = "random_500KB";
-    CertificateList *certList = testWithFile(fname);
-    QCOMPARE (certList->getStatus(), InvalidFormat);
-    delete certList;
+    const char *fnames[] = {"random_500KB",
+        "list-with-null.txt",
+        NULL};
+    for (int i=0; fnames[i] != NULL; i++) {
+        CertificateList *certList = testWithFile(fnames[i]);
+        QCOMPARE (certList->getStatus(), InvalidFormat);
+        delete certList;
+    }
 }
 
 void CertListTest::testTooLarge()
--- a/ui/tests/certlistparsertest.h	Fri Mar 14 09:48:02 2014 +0000
+++ b/ui/tests/certlistparsertest.h	Fri Mar 14 09:48:56 2014 +0000
@@ -18,6 +18,7 @@
     void testInvalidFileNames();
     void testGarbage();
     void testTooLarge();
+    void testEmptyFile();
     void benchmarkValid();
 };
 #endif
--- a/ui/tests/data/NOTES	Fri Mar 14 09:48:02 2014 +0000
+++ b/ui/tests/data/NOTES	Fri Mar 14 09:48:56 2014 +0000
@@ -8,13 +8,19 @@
     Intevation-Email-CA-2013
     Intevation-Server-CA-2010
 
-Signature created with:
+Test files created with:
 
     echo -e S:$(openssl dgst -sha256 -sign testkey-priv.pem < list-valid.txt | base64 -w0)\\r > list-valid-signed.txt
     cat list-valid.txt >> list-valid-signed.txt
+    echo -e S:$(openssl dgst -sha256 -sign testkey-other.pem < list-valid.txt | base64 -w0)\\r > list-valid-other-signature.txt
+    cat list-valid.txt >> list-valid-other-signature.txt
+    echo -e S:$(openssl dgst -sha1 -sign testkey-other.pem < list-valid.txt | base64 -w0)\\r > list-valid-sha1-signature.txt
+    cat list-valid.txt >> list-valid-sha1-signature.txt
     cp list-valid-signed.txt list-invalid-signed.txt
     tail -1 list-valid.txt >> list-invalid-signed.txt
 
+# List with 0 created manually by placing a \0 in the signature
+
 Random Data generated with:
     openssl rand -out random_2MB 2000000
     openssl rand -out random_500k 500000
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/data/list-valid-other-signature.txt	Fri Mar 14 09:48:56 2014 +0000
@@ -0,0 +1,6 @@
+S:ADh8SEoNJ/Np8RExHapM+usJuOhtWy6KNZEkLpNRxx0eW41SKD7ACBDM1yF8Gq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7yVblfwqprHshlMyvrQXez2rxWXQhAica4TGkP+DbamTh/bCOJo66j1MuR3jLDOnyXl3XtuMahnM+iNlIF4Jhx2tN8pew5jzejD911guw==
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/data/list-valid-sha1-signature.txt	Fri Mar 14 09:48:56 2014 +0000
@@ -0,0 +1,6 @@
+S:NnyceZNMLyLfxguUNGf2lk/sTb7H1SMriFxRPKxejChkAvzrtfK0hvg1tZaqrp+GgsOu+4UNkCLzprBSeQIJqDIhjEdo+Bqm6dOXTCU4ly0xJ8HsTsWc6MUNPT8TMM3paYJC33JSoGph8wPVeKHcU55DTFO68e3rB57GXv76EwJyEBclAE+/aRsO02vY5eeOctJdpv3VcwPoss93AVe5Mgy8DGamNuHRhvD62Ju5HtSEwAoVWj7fGKB4qTd2FiwVf6uF6ZkMo78eWns3HYn9gqUPo+ewbu2rN6yUp+VkvXH6yapWVh5qSgLHvsaaSWPUbVEeJz1NNyuel3GQyDxRSm9f3pP0yGEirdevMTBW5iQ6x6ZOFIkci0xdJNzT1zBJIUh3pdy9DVrZmbOtvLINF4YQ+aE/fAAYKcMsIPqr24fvIxxKh2rKn0LzZwHDJokVjR+A0F8mX9nyd0iwVoH1Hfp10c+anLQndVaeBDBzu8BKxSafS804Il6A7cNMZwvW
+F:1
+D:1390230582
+I:MIIGvzCCBKegAwIBAgIBBDANBgkqhkiG9w0BAQUFADA+MQswCQYDVQQGEwJERTEYMBYGA1UECgwPSW50ZXZhdGlvbiBHbWJIMRUwEwYDVQQDDAxSb290IENBIDIwMTAwHhcNMTMwMjA4MTcyNDI2WhcNMTgwMjA4MTcyNDI2WjA/MQswCQYDVQQGEwJERTEYMBYGA1UECgwPSW50ZXZhdGlvbiBHbWJIMRYwFAYDVQQDDA1FbWFpbCBDQSAyMDEzMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA1X+LdiE45L4dNi83sh0y9U0nXYOq7SpDvHLTXkssDqouQqVz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5xfqyL1LchDUKi4e4/F2guLeTPerG3kT35zHypExvwCXDxDyeo9Uqq6e9k9NUN8NFaxptGF0VKcYLKKCLu3gwegoRl3Yi39OnUIUUGaoNmn8ebn60MbthhsOAFALgMgr2wIROdjpVuad0go/hLyW0Iz8HxKl3AQOOQt0e7wkNE8Ms/cEJlLdNa9ylnCBD4RKIT8PHD3xrgbwLsLV1RAqGVr64gNvDQ/PRS51wsbSGfFdtjerzz4+3Kr1SBLi+wchWCEbH/vYF7yVblfwqprHshlMyvrQXez2rxWXQhAica4TGkP+DbamTh/bCOJo66j1MuR3jLDOnyXl3XtuMahnM+iNlIF4Jhx2tN8pew5jzejD911guw==
Binary file ui/tests/data/list-with-null.txt has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/data/testkey-other.pem	Fri Mar 14 09:48:56 2014 +0000
@@ -0,0 +1,39 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIG4gIBAAKCAYEAx3ERYseyEV6sW5Tk0ngwcWrz30BBLeX7T6tpMSv5yjkumqdr
+Ji+HYhxxUmYHYg4A4zylixNw4XFBw/P/mxif45AwFh+QchGF6AfnQGJG5twXTrOT
++LmS7K1aRzHn3Gn1EKgMsL14pjMFkHVymCPiAAwTaTCBLsugVkmdq7OyuHpi1jI+
+178CePtWF8HmL6J2HiqS88S4HB2nrqkNBJQe1Y0RNwi1Xn8i3o7I/iblecg3EhjP
+K/pqwzcOSchS96HkkZAQZsTCeT7Jd69sDu4Byw6moaomzK7r36cUX8Wbr2+dYqqd
+hMU6y/Nc78btKayPeo7+jQq5meu5Yv2ZAzOcDmYPN3tJcx569lLtAx7B7T4MoOz3
+fCgJSQ4/ZAB/bjC+Hkj6PCXlQ0e0vR4s0kuMuzLDnmWVpN0YV7WUhCa67xw4QqT3
+lemlrXx3QLkOwyEZdMHsIs29d9EUp8nTvVQ1dCxl68MDSHoDiriVwDu2J1e5Vm/K
+rl7uG6NeD1pi75qZAgMBAAECggGAf/ghwrM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