45 строки
1.9 KiB
Diff
45 строки
1.9 KiB
Diff
From d62a8caee3324abc5e921269d975db986585c7d3 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Crain <thcrain@microsoft.com>
|
|
Date: Tue, 5 Jan 2021 11:13:12 -0800
|
|
Subject: [PATCH] Patch regression tests with future dates
|
|
|
|
The future is now, at least according to the regression tests. Tests expecting
|
|
2020-01-01 to be in the future are invalid now, so we give those tests new
|
|
future dates.
|
|
|
|
Patch adapted from https://github.com/openssh/openssh-portable/commit/ff31f15773ee173502eec4d7861ec56f26bba381
|
|
---
|
|
regress/cert-hostkey.sh | 2 +-
|
|
regress/cert-userkey.sh | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/regress/cert-hostkey.sh b/regress/cert-hostkey.sh
|
|
index 3ce77796..74d5a530 100644
|
|
--- a/regress/cert-hostkey.sh
|
|
+++ b/regress/cert-hostkey.sh
|
|
@@ -248,7 +248,7 @@ test_one() {
|
|
test_one "user-certificate" failure "-n $HOSTS"
|
|
test_one "empty principals" success "-h"
|
|
test_one "wrong principals" failure "-h -n foo"
|
|
-test_one "cert not yet valid" failure "-h -V20200101:20300101"
|
|
+test_one "cert not yet valid" failure "-h -V20970101:20990101"
|
|
test_one "cert expired" failure "-h -V19800101:19900101"
|
|
test_one "cert valid interval" success "-h -V-1w:+2w"
|
|
test_one "cert has constraints" failure "-h -Oforce-command=false"
|
|
diff --git a/regress/cert-userkey.sh b/regress/cert-userkey.sh
|
|
index 6849e992..de455b86 100644
|
|
--- a/regress/cert-userkey.sh
|
|
+++ b/regress/cert-userkey.sh
|
|
@@ -327,7 +327,7 @@ test_one() {
|
|
test_one "correct principal" success "-n ${USER}"
|
|
test_one "host-certificate" failure "-n ${USER} -h"
|
|
test_one "wrong principals" failure "-n foo"
|
|
-test_one "cert not yet valid" failure "-n ${USER} -V20200101:20300101"
|
|
+test_one "cert not yet valid" failure "-n ${USER} -V20970101:20990101"
|
|
test_one "cert expired" failure "-n ${USER} -V19800101:19900101"
|
|
test_one "cert valid interval" success "-n ${USER} -V-1w:+2w"
|
|
test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8"
|
|
--
|
|
2.25.1
|
|
|