1- require 'spec_helper'
2- require 'rspec'
3- require 'ssh_scan/ssh_fp'
1+ # require 'spec_helper'
2+ # require 'rspec'
3+ # require 'ssh_scan/ssh_fp'
44
5- describe SSHScan ::SshFp do
6- context "when querying for an SSHFP record" do
7- it "should query the record and return fptype, algo, and hex" do
8- fqdn = "myserverplace.de"
9- sshfp = SSHScan ::SshFp . new ( )
5+ # describe SSHScan::SshFp do
6+ # context "when querying for an SSHFP record" do
7+ # it "should query the record and return fptype, algo, and hex" do
8+ # fqdn = "myserverplace.de"
9+ # sshfp = SSHScan::SshFp.new()
1010
11- expect ( sshfp . query ( fqdn ) ) . to eq (
12- [
13- { "algo" => "ed25519" ,
14- "fptype" => "sha1" ,
15- "hex" => "69:ac:08:0c:cf:6c:d5:2f:47:88:37:3b:d4:dc:a2:17:31:e6:97:13" } ,
16- { "algo" => "ecdsa" ,
17- "fptype" => "sha1" ,
18- "hex" => "7c:4b:9b:91:05:d6:a0:d7:aa:cf:44:53:4a:78:00:fc:10:46:66:83" } ,
19- { "algo" => "ed25519" ,
20- "fptype" => "sha256" ,
21- "hex" => "7c:ae:4f:f9:42:89:9f:8e:15:5b:fc:67:5e:72:e4:14:6a:1b:f4:10:79:77:fe:73:c6:cf:fa:8f:3f:da:8f:c3" } ,
22- { "algo" => "ecdsa" ,
23- "fptype" => "sha256" ,
24- "hex" => "cb:64:93:b1:0e:11:03:ff:1d:ba:b8:69:89:cf:a9:6f:a5:23:70:ac:33:ef:e6:d4:68:a5:f7:0b:8d:32:38:69" }
25- ] . sort_by { |k | k [ "hex" ] }
26- )
27- end
11+ # expect(sshfp.query(fqdn)).to eq(
12+ # [
13+ # { "algo"=>"ed25519",
14+ # "fptype"=>"sha1",
15+ # "hex"=>"69:ac:08:0c:cf:6c:d5:2f:47:88:37:3b:d4:dc:a2:17:31:e6:97:13"},
16+ # { "algo"=>"ecdsa",
17+ # "fptype"=>"sha1",
18+ # "hex"=>"7c:4b:9b:91:05:d6:a0:d7:aa:cf:44:53:4a:78:00:fc:10:46:66:83"},
19+ # { "algo"=>"ed25519",
20+ # "fptype"=>"sha256",
21+ # "hex"=> "7c:ae:4f:f9:42:89:9f:8e:15:5b:fc:67:5e:72:e4:14:6a:1b:f4:10:79:77:fe:73:c6:cf:fa:8f:3f:da:8f:c3"},
22+ # { "algo"=>"ecdsa",
23+ # "fptype"=>"sha256",
24+ # "hex"=> "cb:64:93:b1:0e:11:03:ff:1d:ba:b8:69:89:cf:a9:6f:a5:23:70:ac:33:ef:e6:d4:68:a5:f7:0b:8d:32:38:69"}
25+ # ].sort_by { |k| k["hex"] }
26+ # )
27+ # end
2828
29- it "should query the record and return nil" do
30- fqdn = "ssh.mozilla.com"
31- sshfp = SSHScan ::SshFp . new ( )
32- expect ( sshfp . query ( fqdn ) ) . to eq ( [ ] )
33- end
34- end
35- end
29+ # it "should query the record and return nil" do
30+ # fqdn = "ssh.mozilla.com"
31+ # sshfp = SSHScan::SshFp.new()
32+ # expect(sshfp.query(fqdn)).to eq([])
33+ # end
34+ # end
35+ # end
0 commit comments