diff options
Diffstat (limited to 'tests/etc')
-rw-r--r-- | tests/etc/notify.rc | 20 | ||||
-rw-r--r-- | tests/etc/wydawca.rcin | 27 |
2 files changed, 45 insertions, 2 deletions
diff --git a/tests/etc/notify.rc b/tests/etc/notify.rc index 528d8f5..4461ce3 100644 --- a/tests/etc/notify.rc +++ b/tests/etc/notify.rc @@ -174,3 +174,23 @@ Wydawca The Project Submission Robot EOT; } + +notify-event { + event check-failure; + recipient user; + message <<EOT +Subject: ${triplet:dist} rejected + +Your upload of ${triplet:dist} has been rejected by the distribution +verification procedure with the following diagnostics: + +${check:diagn} +Please fix the tarball and resubmit. + +Regards, +Wydawca +The Project Submission Robot +EOT; +} + + diff --git a/tests/etc/wydawca.rcin b/tests/etc/wydawca.rcin index d012554..7e9f4ad 100644 --- a/tests/etc/wydawca.rcin +++ b/tests/etc/wydawca.rcin @@ -26,7 +26,6 @@ dictionary project-owner { params ("/exact", "proj", "proj-owner@localhost", "Project Admin"); } - dictionary project-uploader { type builtin; query "${project}"; @@ -66,9 +65,33 @@ dictionary project-uploader { spool test { url ftp://wydawca.test; - source "@WD_SRC@"; + source "@WD_SRC@/test"; + destination "@WD_DST@"; + archive none; +} + +spool ckfail { + url ftp://wydawca.ckfail; + source "@WD_SRC@/fail"; + destination "@WD_DST@"; + archive none; + check-script <<EOT +echo WYDAWCA_SPOOL=$WYDAWCA_SPOOL +echo WYDAWCA_SOURCE=$WYDAWCA_SOURCE +echo WYDAWCA_DEST=$WYDAWCA_DEST +echo WYDAWCA_URL=$WYDAWCA_URL +echo WYDAWCA_TRIPLET_BASE=$WYDAWCA_TRIPLET_BASE +echo WYDAWCA_DIST_FILE=$WYDAWCA_DIST_FILE +exit 1 +EOT; +} + +spool ckok { + url ftp://wydawca.ckok; + source "@WD_SRC@/ok"; destination "@WD_DST@"; archive none; + check-script "exit 0"; } admin-address "root@localhost"; |