test_nrpe tests broken on trunk

Bug #1423176 reported by Stuart Bishop on 2015-02-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
Medium
Liam Young

Bug Description

Two tests are failing on trunk.

FAIL: tests.contrib.charmsupport.test_nrpe.NRPETestCase.test_default_servicegroup
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/stub/charms/charm-helpers/bug-1423046-fstab-blank-lines/tests/contrib/charmsupport/test_nrpe.py", line 79, in test_default_servicegroup
    self.assertEqual(checker.nagios_servicegroups, 'juju')
MismatchError: 'testctx' != 'juju'

======================================================================
FAIL: tests.contrib.charmsupport.test_nrpe.NRPETestCase.test_update_nrpe
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/stub/charms/charm-helpers/bug-1423046-fstab-blank-lines/tests/contrib/charmsupport/test_nrpe.py", line 156, in test_update_nrpe
    self.assertEqual(expected, actual)
MismatchError: !=:
reference = ['# check myservice\n',
 'command[check_myservice]=/usr/lib/nagios/plugins/check_http http://localhost\n',
 '\n#---------------------------------------------------\n# This file is Juju managed\n#---------------------------------------------------\ndefine service {\n use active-service\n host_name a-testunit\n service_description a-testunit[myservice] Check MyService\n check_command check_nrpe!check_myservice\n servicegroups a\n}\n']
actual = ['# check myservice\n',
 'command[check_myservice]=/usr/lib/nagios/plugins/check_http http://localhost\n',
 '\n#---------------------------------------------------\n# This file is Juju managed\n#---------------------------------------------------\ndefine service {\n use active-service\n host_name a-testunit\n service_description a-testunit[myservice] Check MyService\n check_command check_nrpe!check_myservice\n servicegroups \n}\n']

Liam Young (gnuoy) on 2015-02-19
Changed in charm-helpers:
importance: Undecided → Medium
assignee: nobody → Liam Young (gnuoy)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers