-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7837 FIX citrix_controller: Fixed several problems if some values are…
… missing Change-Id: Ic0431102803243394f6a0ef715e26b4147a2c731
- Loading branch information
Showing
4 changed files
with
106 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Title: citrix_controller: Fixed several problems if some values are missing | ||
Level: 1 | ||
Component: checks | ||
Class: fix | ||
Compatible: compat | ||
Edition: cre | ||
State: unknown | ||
Version: 1.5.0p19 | ||
Date: 1560851775 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tests/unit/checks/generictests/datasets/citrix_controller_5b27b322d5fa1_regression.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# -*- encoding: utf-8 | ||
# yapf: disable | ||
|
||
|
||
checkname = u'citrix_controller' | ||
|
||
|
||
info = [[u'ControllerState'], | ||
[u'ControllerVersion'], | ||
[u'DesktopsRegistered'], | ||
[u'LicensingServerState'], | ||
[u'LicensingGraceState'], | ||
[u'ActiveSiteServices'], | ||
[u'TotalFarmActiveSessions', u'0'], | ||
[u'TotalFarmInactiveSessions', u'0']] | ||
|
||
|
||
discovery = {'': [(None, None)], | ||
'licensing': [(None, None)], | ||
'registered': [(None, None)], | ||
'services': [(None, None)], | ||
'sessions': [(None, {})]} | ||
|
||
|
||
checks = {'': [(None, {}, [(3, 'unknown', [])])], | ||
'licensing': [(None, {}, [])], | ||
'registered': [(None, {}, [(3, 'No desktops registered', [])])], | ||
'services': [(None, {}, [(0, '', [])])], | ||
'sessions': [(None, | ||
{}, | ||
[(0, | ||
'total: 0, active: 0, inactive: 0', | ||
[('total_sessions', 0, None, None, None, None), | ||
('active_sessions', 0, None, None, None, None), | ||
('inactive_sessions', 0, None, None, None, None)])])]} |
42 changes: 42 additions & 0 deletions
42
tests/unit/checks/generictests/datasets/citrix_controller_regression.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -*- encoding: utf-8 | ||
# yapf: disable | ||
|
||
|
||
checkname = u'citrix_controller' | ||
|
||
|
||
info = [[u'ControllerState', u'Active'], | ||
[u'ControllerVersion', u'7.6.0.5024'], | ||
[u'DesktopsRegistered', u'29'], | ||
[u'LicensingServerState', u'OK'], | ||
[u'LicensingGraceState', u'NotActive'], | ||
[u'ActiveSiteServices', u'XenPool01', u'-', u'Cisco', u'UCS', u'VMware'], | ||
[u'TotalFarmActiveSessions', u'262'], | ||
[u'TotalFarmInactiveSessions', u'14']] | ||
|
||
|
||
discovery = {'': [(None, None)], | ||
'licensing': [(None, None)], | ||
'registered': [(None, None)], | ||
'services': [(None, None)], | ||
'sessions': [(None, {})]} | ||
|
||
|
||
checks = {'': [(None, {}, [(0, u'Active', [])])], | ||
'licensing': [(None, | ||
{}, | ||
[(0, 'Licensing Server State: OK', []), | ||
(0, 'Licensing Grace State: not active', [])])], | ||
'registered': [(None, | ||
{}, | ||
[(0, | ||
'29', | ||
[('registered_desktops', 29, None, None, None, None)])])], | ||
'services': [(None, {}, [(0, u'XenPool01 - Cisco UCS VMware', [])])], | ||
'sessions': [(None, | ||
{}, | ||
[(0, | ||
'total: 276, active: 262, inactive: 14', | ||
[('total_sessions', 276, None, None, None, None), | ||
('active_sessions', 262, None, None, None, None), | ||
('inactive_sessions', 14, None, None, None, None)])])]} |