Last active
August 29, 2015 14:08
-
-
Save jasperla/0af79e173b70553638ad to your computer and use it in GitHub Desktop.
known_hosts lens with aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Module: Test_Known_Hosts | |
Provides unit tests and examples for the <Known_Hosts> lens. | |
*) | |
module Test_Known_Hosts = | |
(* Test: Known_Hosts.lns | |
Simple get test *) | |
test Known_Hosts.lns get "# A comment | |
foo.example.com,foo ecdsa-sha2-nistp256 AAABBBDKDFX= | |
bar.example.com,bar ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN9NJSjDZh4+K6WBS16iX7ZndnwbGsaEbLwHlCEhZmef | |
|1|FhUqf1kMlRWNfK6InQSAmXiNiSY=|jwbKFwD4ipl6D0k6OoshmW7xOao= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIvNOU8OedkWalFmoFcJWP3nasnCLx6M78F9y0rzTQtplggNd0dvR0A4SQOBfHInmk5dH6YGGcpT3PM3cJBR7rI=\n" = | |
{ "#comment" = "A comment" } | |
{ "1" = "foo.example.com" | |
{ "type" = "ecdsa-sha2-nistp256" } | |
{ "key" = "AAABBBDKDFX=" } } | |
{ "2" = "bar.example.com,bar" | |
{ "type" = "ssh-ed25519" } | |
{ "key" = "AAAAC3NzaC1lZDI1NTE5AAAAIN9NJSjDZh4+K6WBS16iX7ZndnwbGsaEbLwHlCEhZmef" } } | |
{ "3" = "|1|FhUqf1kMlRWNfK6InQSAmXiNiSY=|jwbKFwD4ipl6D0k6OoshmW7xOao=" | |
{ "type" = "ecdsa-sha2-nistp256" } | |
{ "key" = "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIvNOU8OedkWalFmoFcJWP3nasnCLx6M78F9y0rzTQtplggNd0dvR0A4SQOBfHInmk5dH6YGGcpT3PM3cJBR7rI=" } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment