aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/submit/buildfile2
-rw-r--r--tests/submit/submit-dir.test6
-rw-r--r--tests/submit/submit-git.test34
3 files changed, 29 insertions, 13 deletions
diff --git a/tests/submit/buildfile b/tests/submit/buildfile
index 6606153..46e38ad 100644
--- a/tests/submit/buildfile
+++ b/tests/submit/buildfile
@@ -5,7 +5,7 @@
define common: file
common{*}: extension = test
-dir = ../../brep/submit/
+dir = ../../brep/handler/submit/
commons = data
diff --git a/tests/submit/submit-dir.test b/tests/submit/submit-dir.test
index 97f7edd..7fa7341 100644
--- a/tests/submit/submit-dir.test
+++ b/tests/submit/submit-dir.test
@@ -67,10 +67,11 @@
echo "junk" >=$checksum/libhello-0.1.0.tar.gz;
- $* >>EOO
+ $* >>"EOO"
: 1
status: 400
- message: archive is not a valid package (run bpkg pkg-verify for details)
+ message: archive is not a valid package \(run bpkg pkg-verify for details\)
+ reference: $checksum
EOO
}
@@ -85,6 +86,7 @@
: 1
status: 400
message: unrecognized simulation outcome 'fly'
+ reference: $checksum
EOO
}
}
diff --git a/tests/submit/submit-git.test b/tests/submit/submit-git.test
index a64e9a1..5bfa4d4 100644
--- a/tests/submit/submit-git.test
+++ b/tests/submit/submit-git.test
@@ -466,6 +466,7 @@ pkg_ctl="$prj_ctl/hello.git"
: 1
status: 400
message: author-name manifest value expected
+ reference: $checksum
EOO
}
@@ -482,6 +483,7 @@ pkg_ctl="$prj_ctl/hello.git"
: 1
status: 400
message: author-email manifest value expected
+ reference: $checksum
EOO
}
@@ -498,6 +500,7 @@ pkg_ctl="$prj_ctl/hello.git"
: 1
status: 400
message: author-name manifest value expected
+ reference: $checksum
EOO
}
@@ -519,10 +522,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C ref commit -m 'Add libhello-0.1.0.tar.gz';
$g -C ref push;
- $* "$root_tgt_url" $~/ref $data_dir >>EOO
+ $* "$root_tgt_url" $~/ref $data_dir >>"EOO"
: 1
status: 422
message: duplicate submission
+ reference: $checksum
EOO
}
@@ -559,10 +563,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C ref commit -m 'Add ownership info';
$g -C ref push;
- $* "$root_tgt_url" $~/ref $data_dir >>EOO
+ $* "$root_tgt_url" $~/ref $data_dir >>"EOO"
: 1
status: 401
message: package owner authentication failed
+ reference: $checksum
EOO
}
@@ -590,10 +595,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C ref commit -m 'Add project ownership info';
$g -C ref push;
- $* "$root_tgt_url" $~/ref $data_dir >>EOO
+ $* "$root_tgt_url" $~/ref $data_dir >>"EOO"
: 1
status: 401
message: project owner authentication failed
+ reference: $checksum
EOO
}
@@ -630,10 +636,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C ref commit -m 'Add ownership info';
$g -C ref push;
- $* "$root_tgt_url" $~/ref $data_dir >>EOO
+ $* "$root_tgt_url" $~/ref $data_dir >>"EOO"
: 1
status: 401
message: package owner authentication failed
+ reference: $checksum
EOO
}
@@ -655,10 +662,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C tgt commit -m 'Add libhello-0.1.0.tar.gz';
$g -C tgt push;
- $* "file:///$~/tgt.git" $data_dir >>EOO
+ $* "file:///$~/tgt.git" $data_dir >>"EOO"
: 1
status: 422
message: duplicate submission
+ reference: $checksum
EOO
}
@@ -694,10 +702,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C tgt commit -m 'Add ownership info';
$g -C tgt push;
- $* "file:///$~/tgt.git" $data_dir >>EOO
+ $* "file:///$~/tgt.git" $data_dir >>"EOO"
: 1
status: 401
message: package owner authentication failed
+ reference: $checksum
EOO
}
@@ -724,10 +733,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C tgt commit -am 'Disable ownership';
$g -C tgt push;
- $* "file:///$~/tgt.git" $root_ref_dir $data_dir >>EOO
+ $* "file:///$~/tgt.git" $root_ref_dir $data_dir >>"EOO"
: 1
status: 401
message: project owner authentication failed
+ reference: $checksum
EOO
}
@@ -771,10 +781,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C tgt commit -am 'Disable ownership';
$g -C tgt push;
- $* "file:///$~/tgt.git" ref $data_dir >>EOO
+ $* "file:///$~/tgt.git" ref $data_dir >>"EOO"
: 1
status: 401
message: package owner authentication failed
+ reference: $checksum
EOO
}
@@ -811,10 +822,11 @@ pkg_ctl="$prj_ctl/hello.git"
$g -C tgt commit -m 'Add ownership info';
$g -C tgt push;
- $* "file:///$~/tgt.git" $data_dir >>EOO
+ $* "file:///$~/tgt.git" $data_dir >>"EOO"
: 1
status: 401
message: package owner authentication failed
+ reference: $checksum
EOO
}
@@ -832,10 +844,11 @@ pkg_ctl="$prj_ctl/hello.git"
$clone_root_tgt;
$g clone tgt.git &tgt/***;
- $* "file:///$~/tgt.git" $data_dir >>EOO
+ $* "file:///$~/tgt.git" $data_dir >>"EOO"
: 1
status: 401
message: package publishing authorization failed
+ reference: $checksum
EOO
}
@@ -851,6 +864,7 @@ pkg_ctl="$prj_ctl/hello.git"
: 1
status: 400
message: unrecognized section 'delta'
+ reference: $checksum
EOO
}
}