public void testAlias_PreferredAuthentications() { Config("Host orcz\n" + "\tPreferredAuthentications publickey\n"); OpenSshConfig.Host h = _osc.lookup("orcz"); Assert.IsNotNull(h); Assert.AreEqual("publickey", h.getPreferredAuthentications()); }
public void testAlias_InheritPreferredAuthentications() { Config("Host orcz\n" + "\tHostName repo.or.cz\n" + "\n" + "Host *\n" + "\tPreferredAuthentications publickey, hostbased\n"); OpenSshConfig.Host h = _osc.lookup("orcz"); Assert.IsNotNull(h); Assert.AreEqual("publickey,hostbased", h.getPreferredAuthentications()); }
public void testAlias_PreferredAuthenticationsDefault() { OpenSshConfig.Host h = _osc.lookup("orcz"); Assert.IsNotNull(h); Assert.IsNull(h.getPreferredAuthentications()); }