diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-02-22 00:58:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-03-15 19:15:55 +0300 |
commit | a791b1ce0fa2bc9859474fb6f7a9c0ff8cbd1d4a (patch) | |
tree | 3c9823a54e6e28a8c8f9fb281d82ad2a67c117ba /tests/auth.test | |
parent | 755a99a7ebf24e00675e2f2e0f5184825ad74c4a (diff) |
Port test.sh to testscript
Diffstat (limited to 'tests/auth.test')
-rw-r--r-- | tests/auth.test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auth.test b/tests/auth.test new file mode 100644 index 0000000..3669894 --- /dev/null +++ b/tests/auth.test @@ -0,0 +1,23 @@ +# file : tests/auth.test +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +# OpenSSL passwordless private key. +# +key = $src_base/auth/key.pem + +# Repository certificate generated with the above private key. +# +cert = $src_base/auth/default-cert.pem + +# Repository certificate fingerprint. +# ++set cert_fp <<<$src_base/auth/default-cert-fp + +# Manifest certificate name/value. Can be appended to the repositories file to +# sign the repository. +# +cert_manifest = $~/cert-manifest ++echo 'certificate: \' >=$cert_manifest ++cat <<<$cert >+$cert_manifest ++echo '\' >+$cert_manifest |