Bug 2455 - Regression tests tweaks: keyscan and hostkey_rotation
Summary: Regression tests tweaks: keyscan and hostkey_rotation
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Regression tests (show other bugs)
Version: 7.1p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_7_2
  Show dependency treegraph
 
Reported: 2015-09-02 00:03 AEST by Jakub Jelen
Modified: 2016-08-02 10:42 AEST (History)
1 user (show)

See Also:


Attachments
fix regress/hostkey_rotate.s (4.19 KB, patch)
2015-09-02 00:03 AEST, Jakub Jelen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelen 2015-09-02 00:03:41 AEST
Created attachment 2691 [details]
fix regress/hostkey_rotate.s

During the walk through the regression test suite I hit few issues that should be fixed. Namely:

 1) hostkey_rotation.sh contains some "mess" in the end of file, probably created as a skeleton for the test that was not used in the end (see patch)

 2) keyscan.sh doesn't scan for ecdsa keys (nor for ed25519). All the other tests are now updated to reflect result of `ssh -Q key-plain`, or use the list imported from test-exec.sh, except this one. But sufficient would be to use just the list that is mentioned in manual page (“dsa”, “ecdsa”, “ed25519”, “rsa”).
Comment 1 Damien Miller 2015-09-04 14:24:37 AEST
The attached patch looks like it was made from the wrong files - it's for an Include option and doesn't contain any keyscan.sh bits. 

I've committed the hostkey-rotate.sh parts, thanks.
Comment 2 Jakub Jelen 2015-09-04 17:15:28 AEST
Yay. Sorry for mistake. I am working on more things at once again.

But the first part in regress/hostkey-rotate.sh was understood well, the second part was not included in the patch, because I am not sure what is correct solution:

Current version:
> KEYTYPES="rsa dsa"
> if ssh_version 1; then
>     KEYTYPES="${KEYTYPES} rsa1"
> fi


Documentation notes this list should work:
> (“dsa”, “ecdsa”, “ed25519”, “rsa”)

But it works well also for all the results from `ssh -Q key-plain`, as can be found in other test cases:
> KEYTYPES=`ssh -Q key-plain`

Anyway, the key-plain argument is missing in manual page for ssh so it would be great to add it.
Comment 3 Damien Miller 2015-09-11 13:44:47 AEST
Fixed (used ssh -Q key-plain and tweaked the manual) - thanks.
Comment 4 Damien Miller 2016-08-02 10:42:16 AEST
Close all resolved bugs after 7.3p1 release