xenadmin/XenServerHealthCheckTests/Program.cs
Cheng Zhang 934b0cf381 CP-12770: use server connection details received from XenCenter
1. Create named pipe: “HealthCheckServicePipe”
2. Receive credential send from XenServer and decrypt it
3. Update credential setting and save encrypted credential using current user scope system user.
4. Create work thread to handle the pipe communication.
5. If HealthCheckServicePipe already existed before service start, stop service and output service error log
6. If sign off information is received for a host (XenserverName or IP without username and password) then the existing saved credentials will be deleted
7. If the HealthCheckService connects to a host that is no longer enrolled, then it will delete the existing saved credentials

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-01 09:54:11 +08:00

19 lines
519 B
C#
Executable File

using System;
using XenServerHealthCheck;
namespace XenServerHealthCheckTests
{
class Program
{
static void Main(string[] args)
{
CredentialTests.CredentialReceiverTests();
RequestUploadTaskTests requestUploadTaskTests = new RequestUploadTaskTests();
requestUploadTaskTests.CheckUnenrolledHostShouldRemoved();
requestUploadTaskTests.checkUploadLock();
requestUploadTaskTests.checkDemandLock();
}
}
}