This is an archive of the discontinued Mercurial Phabricator instance.

tests: add low-level SSH protocol tests for listkeys
AbandonedPublic

Authored by indygreg on Feb 23 2018, 2:01 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

We previously lacked test coverage of the low-level output of the
"listkeys" wire protocol command.

We add basic testing for the "namespaces," "bookmarks," and
"phases" pushkey namespaces.

We introduce a helper shell function for running tests with version
1 and 2 of the SSH protocol as separate invocations. We could have
used #testcases. However, as the protocols diverge, managing differences
with inline (sshv1 !) syntax will quickly become unwieldy. The output
is much easier to reason about and manage when each protocol version
is self-contained within a continuous block.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Feb 23 2018, 2:01 PM
indygreg abandoned this revision.Mar 1 2018, 11:19 AM

This got superseded by D2466.