public void TestSFtpsSpaces() { FtpsOptions options = new FtpsOptions(); options.Host = host; options.User = user; options.Password = password; options.Port = port; options.ForceEncryption = forceEncryption; options.ConnectionMode = connectionMode; options.EncryptionMode = encryptionMode; options.Protocol = protocol; FtpsClient client = TestConnection(options); TestPut(client); TestGet(client); client.Disconnect(); }
public void TestWhiteList() { FtpsOptions options = new FtpsOptions(); options.Host = host; options.User = user; options.Password = password; options.Port = port; options.ForceEncryption = forceEncryption; options.ConnectionMode = connectionMode; options.EncryptionMode = encryptionMode; options.Protocol = protocol; options.WhiteList = whiteList; FtpsClient client = TestConnection(options); bool put = client.Put(imagePath, remoteDir); Assert.IsFalse(put); Assert.IsTrue(client.HasError()); client.Disconnect(); }
public void TestWithCert() { FtpsOptions options = new FtpsOptions(); options.Host = host; options.User = user; options.Password = password; options.Port = port; options.ForceEncryption = forceEncryption; options.ConnectionMode = connectionMode; options.EncryptionMode = encryptionMode; options.Protocol = protocol; options.WhiteList = whiteList; options.TrustStorePath = trustStorePath; options.TrustStorePassword = trustStorePassword; FtpsClient client = TestConnection(options); TestPut(client); TestGet(client); client.Disconnect(); }