예제 #1
0
 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());
 }
예제 #2
0
 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());
 }
예제 #3
0
 public void testAlias_PreferredAuthenticationsDefault()
 {
     OpenSshConfig.Host h = _osc.lookup("orcz");
     Assert.IsNotNull(h);
     Assert.IsNull(h.getPreferredAuthentications());
 }