diff options
author | Colin Watson <cjwatson@debian.org> | 2020-01-09 11:40:42 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-01-09 11:41:10 +0000 |
commit | 0ca4e20a45c69f424bfc4d99fb90b24fcf4b40b5 (patch) | |
tree | 99b2670cea103c1bd65caee40d7fb0392650ed1d | |
parent | 7c1c5c532e31ab72f5f9bba44b858d4db0a68ad7 (diff) | |
parent | df3ad29af495185aa9b051028ae94b965a4b1659 (diff) |
Stop using 2020 as a future date in regress tests
-rw-r--r-- | debian/.git-dpm | 4 | ||||
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/patches/regress-2020.patch | 44 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | regress/cert-hostkey.sh | 2 | ||||
-rw-r--r-- | regress/cert-userkey.sh | 2 |
6 files changed, 56 insertions, 4 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm index 261adc808..ae884c895 100644 --- a/debian/.git-dpm +++ b/debian/.git-dpm | |||
@@ -1,6 +1,6 @@ | |||
1 | # see git-dpm(1) from git-dpm package | 1 | # see git-dpm(1) from git-dpm package |
2 | cfa01c635debb10e05f5ac34d269809c77c582dc | 2 | df3ad29af495185aa9b051028ae94b965a4b1659 |
3 | cfa01c635debb10e05f5ac34d269809c77c582dc | 3 | df3ad29af495185aa9b051028ae94b965a4b1659 |
4 | 4213eec74e74de6310c27a40c3e9759a08a73996 | 4 | 4213eec74e74de6310c27a40c3e9759a08a73996 |
5 | 4213eec74e74de6310c27a40c3e9759a08a73996 | 5 | 4213eec74e74de6310c27a40c3e9759a08a73996 |
6 | openssh_8.1p1.orig.tar.gz | 6 | openssh_8.1p1.orig.tar.gz |
diff --git a/debian/changelog b/debian/changelog index cf9fe8a24..73a037710 100644 --- a/debian/changelog +++ b/debian/changelog | |||
@@ -1,3 +1,10 @@ | |||
1 | openssh (1:8.1p1-4) UNRELEASED; urgency=medium | ||
2 | |||
3 | * Apply upstream patch to stop using 2020 as a future date in regress | ||
4 | tests. | ||
5 | |||
6 | -- Colin Watson <cjwatson@debian.org> Thu, 09 Jan 2020 11:40:46 +0000 | ||
7 | |||
1 | openssh (1:8.1p1-3) unstable; urgency=medium | 8 | openssh (1:8.1p1-3) unstable; urgency=medium |
2 | 9 | ||
3 | [ Colin Watson ] | 10 | [ Colin Watson ] |
diff --git a/debian/patches/regress-2020.patch b/debian/patches/regress-2020.patch new file mode 100644 index 000000000..b46e0df31 --- /dev/null +++ b/debian/patches/regress-2020.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From df3ad29af495185aa9b051028ae94b965a4b1659 Mon Sep 17 00:00:00 2001 | ||
2 | From: "djm@openbsd.org" <djm@openbsd.org> | ||
3 | Date: Fri, 3 Jan 2020 03:02:26 +0000 | ||
4 | Subject: upstream: what bozo decided to use 2020 as a future date in a regress | ||
5 | |||
6 | test? | ||
7 | |||
8 | OpenBSD-Regress-ID: 3b953df5a7e14081ff6cf495d4e8d40e153cbc3a | ||
9 | |||
10 | Origin: upstream, https://anongit.mindrot.org/openssh.git/commit/?id=ff31f15773ee173502eec4d7861ec56f26bba381 | ||
11 | Last-Update: 2020-01-09 | ||
12 | |||
13 | Patch-Name: regress-2020.patch | ||
14 | --- | ||
15 | regress/cert-hostkey.sh | 2 +- | ||
16 | regress/cert-userkey.sh | 2 +- | ||
17 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/regress/cert-hostkey.sh b/regress/cert-hostkey.sh | ||
20 | index 86ea62504..844adabcc 100644 | ||
21 | --- a/regress/cert-hostkey.sh | ||
22 | +++ b/regress/cert-hostkey.sh | ||
23 | @@ -252,7 +252,7 @@ test_one() { | ||
24 | test_one "user-certificate" failure "-n $HOSTS" | ||
25 | test_one "empty principals" success "-h" | ||
26 | test_one "wrong principals" failure "-h -n foo" | ||
27 | -test_one "cert not yet valid" failure "-h -V20200101:20300101" | ||
28 | +test_one "cert not yet valid" failure "-h -V20300101:20320101" | ||
29 | test_one "cert expired" failure "-h -V19800101:19900101" | ||
30 | test_one "cert valid interval" success "-h -V-1w:+2w" | ||
31 | test_one "cert has constraints" failure "-h -Oforce-command=false" | ||
32 | diff --git a/regress/cert-userkey.sh b/regress/cert-userkey.sh | ||
33 | index 38c14a698..5cd02fc3f 100644 | ||
34 | --- a/regress/cert-userkey.sh | ||
35 | +++ b/regress/cert-userkey.sh | ||
36 | @@ -338,7 +338,7 @@ test_one() { | ||
37 | test_one "correct principal" success "-n ${USER}" | ||
38 | test_one "host-certificate" failure "-n ${USER} -h" | ||
39 | test_one "wrong principals" failure "-n foo" | ||
40 | -test_one "cert not yet valid" failure "-n ${USER} -V20200101:20300101" | ||
41 | +test_one "cert not yet valid" failure "-n ${USER} -V20300101:20320101" | ||
42 | test_one "cert expired" failure "-n ${USER} -V19800101:19900101" | ||
43 | test_one "cert valid interval" success "-n ${USER} -V-1w:+2w" | ||
44 | test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8" | ||
diff --git a/debian/patches/series b/debian/patches/series index 8c1046a74..19a6569b8 100644 --- a/debian/patches/series +++ b/debian/patches/series | |||
@@ -23,3 +23,4 @@ debian-config.patch | |||
23 | restore-authorized_keys2.patch | 23 | restore-authorized_keys2.patch |
24 | conch-old-privkey-format.patch | 24 | conch-old-privkey-format.patch |
25 | revert-ipqos-defaults.patch | 25 | revert-ipqos-defaults.patch |
26 | regress-2020.patch | ||
diff --git a/regress/cert-hostkey.sh b/regress/cert-hostkey.sh index 86ea62504..844adabcc 100644 --- a/regress/cert-hostkey.sh +++ b/regress/cert-hostkey.sh | |||
@@ -252,7 +252,7 @@ test_one() { | |||
252 | test_one "user-certificate" failure "-n $HOSTS" | 252 | test_one "user-certificate" failure "-n $HOSTS" |
253 | test_one "empty principals" success "-h" | 253 | test_one "empty principals" success "-h" |
254 | test_one "wrong principals" failure "-h -n foo" | 254 | test_one "wrong principals" failure "-h -n foo" |
255 | test_one "cert not yet valid" failure "-h -V20200101:20300101" | 255 | test_one "cert not yet valid" failure "-h -V20300101:20320101" |
256 | test_one "cert expired" failure "-h -V19800101:19900101" | 256 | test_one "cert expired" failure "-h -V19800101:19900101" |
257 | test_one "cert valid interval" success "-h -V-1w:+2w" | 257 | test_one "cert valid interval" success "-h -V-1w:+2w" |
258 | test_one "cert has constraints" failure "-h -Oforce-command=false" | 258 | test_one "cert has constraints" failure "-h -Oforce-command=false" |
diff --git a/regress/cert-userkey.sh b/regress/cert-userkey.sh index 38c14a698..5cd02fc3f 100644 --- a/regress/cert-userkey.sh +++ b/regress/cert-userkey.sh | |||
@@ -338,7 +338,7 @@ test_one() { | |||
338 | test_one "correct principal" success "-n ${USER}" | 338 | test_one "correct principal" success "-n ${USER}" |
339 | test_one "host-certificate" failure "-n ${USER} -h" | 339 | test_one "host-certificate" failure "-n ${USER} -h" |
340 | test_one "wrong principals" failure "-n foo" | 340 | test_one "wrong principals" failure "-n foo" |
341 | test_one "cert not yet valid" failure "-n ${USER} -V20200101:20300101" | 341 | test_one "cert not yet valid" failure "-n ${USER} -V20300101:20320101" |
342 | test_one "cert expired" failure "-n ${USER} -V19800101:19900101" | 342 | test_one "cert expired" failure "-n ${USER} -V19800101:19900101" |
343 | test_one "cert valid interval" success "-n ${USER} -V-1w:+2w" | 343 | test_one "cert valid interval" success "-n ${USER} -V-1w:+2w" |
344 | test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8" | 344 | test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8" |