Commit Graph

19 Commits

Author SHA1 Message Date
Konstantina Chremmou
d7b519a53c Updated copyright notice on files.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-01-30 16:24:16 +00:00
Gabor Apati-Nagy
c8116a46ab CA-176169: Further copyright statement changes
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2017-01-18 17:07:59 +00:00
Cheng Zhang
491e6318ee CP-13080: Run Health Check Tests as part of xenadmin build
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-10-09 12:17:12 +08:00
Cheng Zhang
f94190db4b CA-182881: Use local time zone to do the schedule check
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-09-14 09:48:14 +08:00
Cheng Zhang
0f2eb2fcb9 CA-182881: Fix issue in schedule check in HealthCheckService
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-09-10 15:32:23 +08:00
Mihaela Stoica
4b073c0bc3 Renamed and merged some constants in HealthCheckSettings class
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-08-21 15:21:47 +01:00
Mihaela Stoica
ff64416407 Move HealthCheckSettings class to a separate file
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-08-21 15:19:24 +01:00
Stephen Turner
09c495552f CP-13389: Convert all projects to .NET 4.5. (All changes autogenerated except for one case of broken XML in XenOvfApi/app.config). 2015-07-30 12:40:59 +01:00
Mihaela Stoica
a9be9846ff CP-13073: Rename Call Home to Health Check in code
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-29 08:44:41 +01:00
Hui Zhang
ef1faf7776 CP-13057: Add config provider for XenServerHealthCheckService.
Introduce XenServerHealthCheckConfigProvider to implement IXenAdminConfigProvider.

Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
2015-07-17 14:51:27 +08:00
Cheng Zhang
c0585f0681 CP-12769: Using uniform format of time to string and string to time
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-02 17:54:00 +08:00
Cheng Zhang
903931e63d CP-12769: Fix issue when integration test with CIS
1.	Using en-us to transfer upload request time
2.	Check the pipe is closed before close it.
3.	On demand upload will not have 24 hour due problem since it only check once in half an hour
4.	Avoid get upload token by empty session.

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-02 13:53:44 +08:00
Cheng Zhang
825aa3abd5 CP-12769: Include task information in ServerList
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-01 16:02:14 +08:00
Cheng Zhang
324c249285 CP-12769: Send server connection details to the Health Check Service
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-07-01 11:53:56 +08:00
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
Cheng Zhang
9c7865b270 CP-12627: Use new xapi field health_check_config for Call Home
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-18 15:32:56 +08:00
Cheng Zhang
038b8792e3 CP-12624: Upload a CallHome report to CIS on demand
1. Add Upload a CallHome report to CIS on demand logic
2. Add test cases to check the function

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-10 19:02:29 +08:00
Cheng Zhang
5ff8911688 Use DbProxy and server databases to do the UT test
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-09 16:06:17 +08:00
Cheng Zhang
e220e489c9 CP-12158: Read the Call Home upload schedule and determine if an upload can start
1.Add logic to firm an upload can start.
2.Lock will be added if upload can start
3.Add unit test

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-08 16:32:54 +08:00