From 6c18848a903eb3ee06dccd915859ce64195c257c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 18:24:27 +0200 Subject: Adding upstream version 1:2.11. Signed-off-by: Daniel Baumann --- test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 | 1 + test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 | 1 + test/fixtures/_known_hosts_real/.ssh/config_question_mark | 1 + test/fixtures/_known_hosts_real/.ssh/config_relative_path | 1 + test/fixtures/_known_hosts_real/config | 7 +++++++ test/fixtures/_known_hosts_real/config_full_path | 1 + test/fixtures/_known_hosts_real/config_include | 7 +++++++ test/fixtures/_known_hosts_real/config_include_recursion | 1 + test/fixtures/_known_hosts_real/config_tilde | 4 ++++ test/fixtures/_known_hosts_real/gee-filename-canary | 0 test/fixtures/_known_hosts_real/known_hosts | 14 ++++++++++++++ test/fixtures/_known_hosts_real/known_hosts2 | 1 + test/fixtures/_known_hosts_real/known_hosts3 | 1 + test/fixtures/_known_hosts_real/known_hosts4 | 1 + test/fixtures/_known_hosts_real/localhost_config | 1 + test/fixtures/_known_hosts_real/localhost_hosts | 3 +++ test/fixtures/_known_hosts_real/spaced conf | 8 ++++++++ test/fixtures/_known_hosts_real/spaced known_hosts | 4 ++++ 18 files changed, 57 insertions(+) create mode 100644 test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 create mode 100644 test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 create mode 100644 test/fixtures/_known_hosts_real/.ssh/config_question_mark create mode 100644 test/fixtures/_known_hosts_real/.ssh/config_relative_path create mode 100644 test/fixtures/_known_hosts_real/config create mode 100644 test/fixtures/_known_hosts_real/config_full_path create mode 100644 test/fixtures/_known_hosts_real/config_include create mode 100644 test/fixtures/_known_hosts_real/config_include_recursion create mode 100644 test/fixtures/_known_hosts_real/config_tilde create mode 100644 test/fixtures/_known_hosts_real/gee-filename-canary create mode 100644 test/fixtures/_known_hosts_real/known_hosts create mode 100644 test/fixtures/_known_hosts_real/known_hosts2 create mode 100644 test/fixtures/_known_hosts_real/known_hosts3 create mode 100644 test/fixtures/_known_hosts_real/known_hosts4 create mode 100644 test/fixtures/_known_hosts_real/localhost_config create mode 100644 test/fixtures/_known_hosts_real/localhost_hosts create mode 100644 test/fixtures/_known_hosts_real/spaced conf create mode 100644 test/fixtures/_known_hosts_real/spaced known_hosts (limited to 'test/fixtures/_known_hosts_real') diff --git a/test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 b/test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 new file mode 100644 index 0000000..fc09eb0 --- /dev/null +++ b/test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 @@ -0,0 +1 @@ +Host asterisk_1 diff --git a/test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 b/test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 new file mode 100644 index 0000000..42243ad --- /dev/null +++ b/test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 @@ -0,0 +1 @@ +Host asterisk_2 diff --git a/test/fixtures/_known_hosts_real/.ssh/config_question_mark b/test/fixtures/_known_hosts_real/.ssh/config_question_mark new file mode 100644 index 0000000..08e1201 --- /dev/null +++ b/test/fixtures/_known_hosts_real/.ssh/config_question_mark @@ -0,0 +1 @@ +Host question_mark diff --git a/test/fixtures/_known_hosts_real/.ssh/config_relative_path b/test/fixtures/_known_hosts_real/.ssh/config_relative_path new file mode 100644 index 0000000..a7ad4d1 --- /dev/null +++ b/test/fixtures/_known_hosts_real/.ssh/config_relative_path @@ -0,0 +1 @@ +Host relative_path diff --git a/test/fixtures/_known_hosts_real/config b/test/fixtures/_known_hosts_real/config new file mode 100644 index 0000000..fe3fb54 --- /dev/null +++ b/test/fixtures/_known_hosts_real/config @@ -0,0 +1,7 @@ + UserKnownHostsFile _known_hosts_real/known_hosts + + # Unindented +Host gee* jar?this-part-we-do-not-complete-at-least-yet + HostName %h.example.com + # Indented + Host hus%%eth0 !negated #not-a-comment diff --git a/test/fixtures/_known_hosts_real/config_full_path b/test/fixtures/_known_hosts_real/config_full_path new file mode 100644 index 0000000..a91649b --- /dev/null +++ b/test/fixtures/_known_hosts_real/config_full_path @@ -0,0 +1 @@ +Include ~/config_include_recursion diff --git a/test/fixtures/_known_hosts_real/config_include b/test/fixtures/_known_hosts_real/config_include new file mode 100644 index 0000000..a1ae763 --- /dev/null +++ b/test/fixtures/_known_hosts_real/config_include @@ -0,0 +1,7 @@ +#$HOME set to fixtures/_known_hosts_real in unit test +# Include with full path (recursive one) +Include ~/config_full_path +# Include with relative path +Include config_relative_path +# Include with wildcards, and more than one on same row +Include config_asterisk* config_?uestion_mark diff --git a/test/fixtures/_known_hosts_real/config_include_recursion b/test/fixtures/_known_hosts_real/config_include_recursion new file mode 100644 index 0000000..2777069 --- /dev/null +++ b/test/fixtures/_known_hosts_real/config_include_recursion @@ -0,0 +1 @@ +Host recursion diff --git a/test/fixtures/_known_hosts_real/config_tilde b/test/fixtures/_known_hosts_real/config_tilde new file mode 100644 index 0000000..4181aaf --- /dev/null +++ b/test/fixtures/_known_hosts_real/config_tilde @@ -0,0 +1,4 @@ +# With quotes and tilde +UserKnownHostsFile "~/_known_hosts_real/known_hosts2" +# Without quotes, with tilde, and another on the same line +UserKnownHostsFile ~/_known_hosts_real/known_hosts3 _known_hosts_real/known_hosts4 diff --git a/test/fixtures/_known_hosts_real/gee-filename-canary b/test/fixtures/_known_hosts_real/gee-filename-canary new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_known_hosts_real/known_hosts b/test/fixtures/_known_hosts_real/known_hosts new file mode 100644 index 0000000..646b5b6 --- /dev/null +++ b/test/fixtures/_known_hosts_real/known_hosts @@ -0,0 +1,14 @@ +|1|abc +|1|def +doo +# this is a comment +ike ssh-rsa qwerty1234/Qwerty+1234== +jub,10.0.0.1 +@cert-authority kyl,100.0.0.2 xxxfoo +[10.10.0.3]:10022 +[blah]:1234 +fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:5555 +fe80::123:0xff:dead:beef%eth0 +1111:2222:3333:4444:5555:6666:xxxx:abab +11xx:2222:3333:4444:5555:6666:xxxx:abab +::42 diff --git a/test/fixtures/_known_hosts_real/known_hosts2 b/test/fixtures/_known_hosts_real/known_hosts2 new file mode 100644 index 0000000..2eb4d4f --- /dev/null +++ b/test/fixtures/_known_hosts_real/known_hosts2 @@ -0,0 +1 @@ +two,two2,two3,two*,t?o,two4 diff --git a/test/fixtures/_known_hosts_real/known_hosts3 b/test/fixtures/_known_hosts_real/known_hosts3 new file mode 100644 index 0000000..2bdf67a --- /dev/null +++ b/test/fixtures/_known_hosts_real/known_hosts3 @@ -0,0 +1 @@ +three diff --git a/test/fixtures/_known_hosts_real/known_hosts4 b/test/fixtures/_known_hosts_real/known_hosts4 new file mode 100644 index 0000000..8510665 --- /dev/null +++ b/test/fixtures/_known_hosts_real/known_hosts4 @@ -0,0 +1 @@ +four diff --git a/test/fixtures/_known_hosts_real/localhost_config b/test/fixtures/_known_hosts_real/localhost_config new file mode 100644 index 0000000..30b6623 --- /dev/null +++ b/test/fixtures/_known_hosts_real/localhost_config @@ -0,0 +1 @@ +UserKnownHostsFile _known_hosts_real/localhost_hosts diff --git a/test/fixtures/_known_hosts_real/localhost_hosts b/test/fixtures/_known_hosts_real/localhost_hosts new file mode 100644 index 0000000..ff752c2 --- /dev/null +++ b/test/fixtures/_known_hosts_real/localhost_hosts @@ -0,0 +1,3 @@ +localhost +127.0.0.1 +::1 diff --git a/test/fixtures/_known_hosts_real/spaced conf b/test/fixtures/_known_hosts_real/spaced conf new file mode 100644 index 0000000..566b92c --- /dev/null +++ b/test/fixtures/_known_hosts_real/spaced conf @@ -0,0 +1,8 @@ + + # Unindented +Host gee + UserKnownHostsFile "_known_hosts_real/spaced known_hosts" + + # Indented + Host hus #not-a-comment + UserKnownHostsFile "_known_hosts_real/known_hosts2" diff --git a/test/fixtures/_known_hosts_real/spaced known_hosts b/test/fixtures/_known_hosts_real/spaced known_hosts new file mode 100644 index 0000000..d54a04d --- /dev/null +++ b/test/fixtures/_known_hosts_real/spaced known_hosts @@ -0,0 +1,4 @@ +|1|abc +|1|def +doo +ike ssh-rsa qwerty1234/Qwerty+1234== -- cgit v1.2.3