Password handling for the SSH client
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using LeafWeb.Core.Entities;
|
||||
using System.Configuration;
|
||||
using LeafWeb.Core.Entities;
|
||||
using LeafWeb.Core.Utility;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace LeafWeb.Core.Tests.Remote
|
||||
@@ -9,8 +11,9 @@ namespace LeafWeb.Core.Tests.Remote
|
||||
[Test]
|
||||
public void Client()
|
||||
{
|
||||
var leafInputFile = new LeafInputFile {Filename = "blah", Id = 1};
|
||||
var client = new PiscalSshClient();
|
||||
var leafInputFile = new LeafInputFile {Filename = "blah", Id = 1, Contents = "test".GetBytes()};
|
||||
var piscalConnectionString = ConfigurationManager.ConnectionStrings["PiscalServer"];
|
||||
var client = new PiscalSshClient(piscalConnectionString.ConnectionString);
|
||||
client.SubmitLeafInputFile(leafInputFile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user