diff options
author | 2024-01-20 10:10:06 -0800 | |
---|---|---|
committer | 2024-01-20 10:16:59 -0800 | |
commit | e37c23b9fa6014d50122e5bf904aa3206d9faa94 (patch) | |
tree | a4c14c2c3c30eecd490874ad6a02ec74b4112702 | |
parent | test: accept gentoo version tag (diff) | |
download | gitolite-gentoo-e37c23b9fa6014d50122e5bf904aa3206d9faa94.tar.gz gitolite-gentoo-e37c23b9fa6014d50122e5bf904aa3206d9faa94.tar.bz2 gitolite-gentoo-e37c23b9fa6014d50122e5bf904aa3206d9faa94.zip |
test: pin ssh-keygen key type for tests
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | t/mirror-test-setup.sh | 2 | ||||
-rwxr-xr-x | t/ssh-authkeys.t | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/t/mirror-test-setup.sh b/t/mirror-test-setup.sh index 32bc462..71b6dfc 100755 --- a/t/mirror-test-setup.sh +++ b/t/mirror-test-setup.sh @@ -25,7 +25,7 @@ cd /tmp/g3 cd keys for h in $hosts do - ssh-keygen -N '' -q -f server-$h -C $h + ssh-keygen -t rsa -N '' -q -f server-$h -C $h chmod go+r /tmp/g3/keys/server-$h done cp $bd/../t/mirror-test-ssh-config ssh-config diff --git a/t/ssh-authkeys.t b/t/ssh-authkeys.t index 46b9413..43dec2e 100755 --- a/t/ssh-authkeys.t +++ b/t/ssh-authkeys.t @@ -30,11 +30,11 @@ try " /creating/ wc < $ak; ok; /2 *6 *32/ # some gl keys - ssh-keygen -N '' -q -f alice -C alice - ssh-keygen -N '' -q -f bob -C bob - ssh-keygen -N '' -q -f carol -C carol - ssh-keygen -N '' -q -f dave -C dave - ssh-keygen -N '' -q -f eve -C eve + ssh-keygen -t rsa -N '' -q -f alice -C alice + ssh-keygen -t rsa -N '' -q -f bob -C bob + ssh-keygen -t rsa -N '' -q -f carol -C carol + ssh-keygen -t rsa -N '' -q -f dave -C dave + ssh-keygen -t rsa -N '' -q -f eve -C eve rm alice bob carol dave eve ls -a; ok; /alice.pub/; /bob.pub/; /carol.pub/; /dave.pub/; /eve.pub/ $pgm; ok; @@ -63,7 +63,7 @@ try " $pgm; !ok; /fingerprinting failed for \\'keydir/bad.pub\\'/ wc < $ak; ok; /^ *9 .*/; # a good key doesn't get added - ssh-keygen -N '' -q -f good + ssh-keygen -t rsa -N '' -q -f good $pgm; !ok; /fingerprinting failed for \\'keydir/bad.pub\\'/ wc < $ak; ok; /^ *9 .*/; # till the bad key is removed |