git » chasquid » commit b24f02e

test: Test noise in the "certs" directory

author Alberto Bertogli
2018-06-03 22:51:04 UTC
committer Alberto Bertogli
2018-06-03 22:51:04 UTC
parent 029bca7013bf0f3610985c20c6afd6ba03dd0269

test: Test noise in the "certs" directory

This patch adds some border cases to the "certs" directory in one of
the test cases, so we check that chasquid does not get confused with
them.

test/t-01-simple_local/config/certs/noprivkey/fullchain.pem +19 -0
test/t-01-simple_local/config/certs/not_a_dir +2 -0

diff --git a/test/t-01-simple_local/config/certs/noprivkey/fullchain.pem b/test/t-01-simple_local/config/certs/noprivkey/fullchain.pem
new file mode 100644
index 0000000..c43a49c
--- /dev/null
+++ b/test/t-01-simple_local/config/certs/noprivkey/fullchain.pem
@@ -0,0 +1,19 @@
+-----BEGIN CERTIFICATE-----
+MIIC/TCCAeWgAwIBAgIQeSGdISDwzlRobkplbaT4uTANBgkqhkiG9w0BAQsFADAS
+MRAwDgYDVQQKEwdBY21lIENvMB4XDTE4MDYwMzIyNDMwMloXDTE4MDYwMzIzNDMw
+MlowEjEQMA4GA1UEChMHQWNtZSBDbzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
+AQoCggEBAKYuJT9DPp7qwDKoNuyhMPgA1456ApSIE+w55N0XyDvIKBTTq0xvRMU/
+1QgL6RvQCOYBh/lf8OF9lSp9IyINFD/H/VRXOOdxLimPOgvu+pZTgOOG9drgivwW
+7WdMBIKt+XYhbI0sNgeN2mvkeD1x9Hx0qxRO9n7nurXYYr5ZPCIhlE7NTVbtKxCC
+qnvJK+nPx/0gMLkhp+38Ishtbr/yUC+KLOtk1Ykt6S8IhiEGbVFSiqZv8KCquTg7
+S8e40q9YJkwng6MiHaXoZv4g1QRT1jUZE/8h3VSAfvcRYtWbPQ+R8zIFNfbI8WJA
+KwrBu34siI5gtzB3GI416DN8YF0l+ncCAwEAAaNPME0wDgYDVR0PAQH/BAQDAgKk
+MBMGA1UdJQQMMAoGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMBAf8wFQYDVR0RBA4w
+DIIKdGVzdHNlcnZlcjANBgkqhkiG9w0BAQsFAAOCAQEAno2ANy1TPvoqfDebpXJX
+FqrrF/MmY24PLrnt2VU7dkKatjSaddSL90wTUi/m7gEH8RS3iW6EGRavw30dUrmJ
+J3lGfDIdm69hemcqcI1jWU0B8HigmOUhKpw/9SnQGV90IBkpv1hNrkdmqhn3a2I0
+IPqDshoF1qg3ECmsfnhja5Os5G2Iaxshda5gEk0dZE6epJHwFnJynHw7n3FDTtlQ
+1cVvwsamG4mAtey7tPFvG955wZutFgmwoapICvKHKH2ny8dzJCAHkR8RloHLE5ZF
+HXnhAkgIUX07V314nlUEhrxn28Lhyb92hanc8oExBoJ8OVRtxt2X7y93LY29K0po
+uQ==
+-----END CERTIFICATE-----
diff --git a/test/t-01-simple_local/config/certs/not_a_dir b/test/t-01-simple_local/config/certs/not_a_dir
new file mode 100644
index 0000000..1dce0a9
--- /dev/null
+++ b/test/t-01-simple_local/config/certs/not_a_dir
@@ -0,0 +1,2 @@
+A simple file, to make sure chasquid does not get confused with them in the
+"certs" directory.