Commit Graph

19 Commits

Author SHA1 Message Date
Konstantina Chremmou
99572da0fb Corrections to the logging of Win32 exceptions. Minor refactoring.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2019-11-13 12:31:44 +00:00
Mihaela Stoica
22d628dc02 CA-284135: Correction 2018-04-20 14:34:31 +01:00
Michael Zhao
7c394db81d CA-284135: Issues with scheduled uploads in the Health Check service.
Signed-off-by: Michael Zhao <michael.zhao@citrix.com>
2018-04-20 17:28:08 +08:00
Gabor Apati-Nagy
7c0bc50b4a CA-176169: Changed copyright statements to include the comma in Citrix Systems,
Inc.

Signed-off-by: Gabor Apati-Nagy<gabor.apati-nagy@citrix.com>
2017-01-16 19:59:50 +00: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
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
Mihaela Stoica
6fee699ee0 CP-12160: Fix some issues found during the integration tests
- Use string.IsNullOrEmpty() instead of string.Length
- Reset NewUploadRequest after a successful upload (if the upload started after the request time)
- When trying to determine if an “on demand” upload is due, avoid parsing exception if the NewUploadRequest if the field is empty.
- Also added more detailed logging.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2015-07-06 17:10:00 +01: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
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
8333bfcb19 CP-12158: Rework review comments
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2015-06-10 17:32:52 +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