From 57eb1fd94d7d8ba164efbde678fffa971356619c Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Thu, 4 Jul 2019 13:18:38 +0300 Subject: [PATCH] Move test certificate files to their appropriate location --- apps/epp_proxy/{priv => test/certs}/epp-proxy-test.crt.pem | 0 apps/epp_proxy/{priv => test/certs}/epp-proxy-test.key.pem | 0 apps/epp_proxy/test/epp_certs_tests.erl | 4 ---- 3 files changed, 4 deletions(-) rename apps/epp_proxy/{priv => test/certs}/epp-proxy-test.crt.pem (100%) rename apps/epp_proxy/{priv => test/certs}/epp-proxy-test.key.pem (100%) diff --git a/apps/epp_proxy/priv/epp-proxy-test.crt.pem b/apps/epp_proxy/test/certs/epp-proxy-test.crt.pem similarity index 100% rename from apps/epp_proxy/priv/epp-proxy-test.crt.pem rename to apps/epp_proxy/test/certs/epp-proxy-test.crt.pem diff --git a/apps/epp_proxy/priv/epp-proxy-test.key.pem b/apps/epp_proxy/test/certs/epp-proxy-test.key.pem similarity index 100% rename from apps/epp_proxy/priv/epp-proxy-test.key.pem rename to apps/epp_proxy/test/certs/epp-proxy-test.key.pem diff --git a/apps/epp_proxy/test/epp_certs_tests.erl b/apps/epp_proxy/test/epp_certs_tests.erl index b02e75f..3a5e100 100644 --- a/apps/epp_proxy/test/epp_certs_tests.erl +++ b/apps/epp_proxy/test/epp_certs_tests.erl @@ -3,9 +3,6 @@ -include_lib("eunit/include/eunit.hrl"). -include_lib("public_key/include/public_key.hrl"). --define(exampleCertFile, lists:flatten([code:lib_dir(epp_proxy, priv), - "epp-proxy-test.crt.pem"])). - der_certificate_test() -> PemEntries = public_key:pem_decode(certificate_pem()), {value, CertEntry} = lists:keysearch('Certificate', 1, PemEntries), @@ -31,7 +28,6 @@ test_certificate() -> Decoded = public_key:pkix_decode_cert(DerCert, otp), Decoded. -%% Contents from fixtures/epp-proxy-test.crt.pem file certificate_pem() -> <<"-----BEGIN CERTIFICATE----- MIIGWzCCBEOgAwIBAgICEAEwDQYJKoZIhvcNAQELBQAwgaoxCzAJBgNVBAYTAkVF