aboutsummaryrefslogtreecommitdiff
path: root/tests/rep-auth.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rep-auth.testscript')
-rw-r--r--tests/rep-auth.testscript27
1 files changed, 13 insertions, 14 deletions
diff --git a/tests/rep-auth.testscript b/tests/rep-auth.testscript
index 6477102..5d51857 100644
--- a/tests/rep-auth.testscript
+++ b/tests/rep-auth.testscript
@@ -1,5 +1,4 @@
# file : tests/rep-auth.testscript
-# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
.include common.testscript auth.testscript config.testscript remote.testscript
@@ -24,8 +23,8 @@
# Prepare repositories used by tests if running in the local mode.
#
-+if ($remote != true)
- rc = $rep_create 2>!
++if! $remote
+ rc = [cmdline] $rep_create 2>!
# Create the 'unsigned1' repository.
#
@@ -51,7 +50,7 @@
#
cp -r $src/unsigned $out/self-match
- echo 'certificate: \' >+$out/self-match/repositories.manifest
+ echo 'certificate:\' >+$out/self-match/repositories.manifest
cat <<<$src_base/auth/self-cert.pem >+$out/self-match/repositories.manifest
echo '\' >+$out/self-match/repositories.manifest
@@ -63,7 +62,7 @@
#
cp -r $src/unsigned $out/self-any-match
- echo 'certificate: \' >+$out/self-any-match/repositories.manifest
+ echo 'certificate:\' >+$out/self-any-match/repositories.manifest
cat <<<$src_base/auth/self-any-cert.pem >+$out/self-any-match/repositories.manifest
echo '\' >+$out/self-any-match/repositories.manifest
@@ -76,7 +75,7 @@
#
cp -r $src/unsigned $out/subdomain-match
- echo 'certificate: \' >+$out/subdomain-match/repositories.manifest
+ echo 'certificate:\' >+$out/subdomain-match/repositories.manifest
cat <<<$src_base/auth/subdomain-cert.pem >+$out/subdomain-match/repositories.manifest
echo '\' >+$out/subdomain-match/repositories.manifest
@@ -88,7 +87,7 @@
#
cp -r $src/unsigned $out/name-mismatch
- echo 'certificate: \' >+$out/name-mismatch/repositories.manifest
+ echo 'certificate:\' >+$out/name-mismatch/repositories.manifest
cat <<<$src_base/auth/mismatch-cert.pem >+$out/name-mismatch/repositories.manifest
echo '\' >+$out/name-mismatch/repositories.manifest
@@ -129,8 +128,8 @@ rep_fetch += -d cfg
# Check if rep-fetch command was successfull or not.
#
-fetched = $pkg_status foo >'foo available 1'
-not_fetched = $pkg_status foo >'foo unknown'
+fetched = [cmdline] $pkg_status foo >'foo available 1'
+not_fetched = [cmdline] $pkg_status foo >'foo unknown'
sc = " " # Space character to append to here-document line when required.
@@ -338,7 +337,7 @@ sc = " " # Space character to append to here-document line when required.
: subdomain
:
- if ($remote != true)
+ if! $remote
{
: first-level
:
@@ -374,7 +373,7 @@ sc = " " # Space character to append to here-document line when required.
: subdomain
:
- if ($remote != true)
+ if! $remote
{
: first-level
:
@@ -410,7 +409,7 @@ sc = " " # Space character to append to here-document line when required.
: subdomain
:
- if ($remote != true)
+ if! $remote
{
: first-level
:
@@ -606,7 +605,7 @@ sc = " " # Space character to append to here-document line when required.
{
cp -r $src/unsigned rep;
- echo 'certificate: \' >+rep/repositories.manifest;
+ echo 'certificate:\' >+rep/repositories.manifest;
cat <<<$src_base/auth/noemail-cert.pem >+rep/repositories.manifest;
echo '\' >+rep/repositories.manifest;
@@ -621,7 +620,7 @@ sc = " " # Space character to append to here-document line when required.
{
cp -r $src/unsigned rep;
- echo 'certificate: \' >+rep/repositories.manifest;
+ echo 'certificate:\' >+rep/repositories.manifest;
cat <<<$src_base/auth/expired-cert.pem >+rep/repositories.manifest;
echo '\' >+rep/repositories.manifest;