DamianZaremba has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/55436


Change subject: Fixing tests
......................................................................

Fixing tests

Change-Id: I780dacc96b8bd76cf90c91e1764ba5d5d4a25927
---
M labsnagiosbuilder/tests/TestLdap.py
1 file changed, 27 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/nagios-builder 
refs/changes/36/55436/1

diff --git a/labsnagiosbuilder/tests/TestLdap.py 
b/labsnagiosbuilder/tests/TestLdap.py
index c18cb41..6bf332b 100644
--- a/labsnagiosbuilder/tests/TestLdap.py
+++ b/labsnagiosbuilder/tests/TestLdap.py
@@ -4,6 +4,33 @@
 
 class HostInfo(unittest.TestCase):
     def setUp(self):
+        self.groups = {
+            # Group name
+            'ssh': {
+                # Group Description
+                'description': 'SSH servers',
+                # Hosts in group - we fill this in
+                'hosts': [],
+                # Puppet classes that cause hosts to be added to this group ;)
+                'puppet': ['base'],
+            },
+            'http': {
+                'description': 'HTTP servers',
+                'hosts': [],
+                'puppet': ['webserver::apache2'],
+            },
+            'mysql': {
+                'description': 'MySQL servers',
+                'hosts': [],
+                'puppet': ['role::labs-mysql-server'],
+            },
+            'lucene-frontend': {
+                'description': 'Lucene frontend servers',
+                'hosts': [],
+                'puppet': ['role::lucene::front-end', 
'role::lucene::front_end::poolbeta']
+            },
+        }
+
         self.instance1 = {
             'puppetVar': [
                 'realm=labs',

-- 
To view, visit https://gerrit.wikimedia.org/r/55436
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I780dacc96b8bd76cf90c91e1764ba5d5d4a25927
Gerrit-PatchSet: 1
Gerrit-Project: labs/nagios-builder
Gerrit-Branch: master
Gerrit-Owner: DamianZaremba <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to