Sha256: 94f36ea41e6adb3c49f7e9380106753bfaaf138a1161b44b9b1aa9e1a55d162a
Contents?: true
Size: 706 Bytes
Versions: 16
Compression:
Stored size: 706 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Awsborn::KnownHostsUpdater do describe "#get_console_fingerprint" do it "sets @console_finger_print" do Awsborn.stub!(:wait_for).and_yield ec2 = mock("ec2") fingerprint =<<-EOS -----BEGIN SSH HOST KEY FINGERPRINTS----- 2048 ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff /etc/ssh/ssh_host_rsa_key.pub (RSA) EOS ec2.stub!(:get_console_output).and_return(fingerprint) updater = Awsborn::KnownHostsUpdater.new ec2, "localhost" updater.get_console_fingerprint updater.console_fingerprint.should == "ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff" end end end
Version data entries
16 entries across 16 versions & 1 rubygems