Commit eeb80cff authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Use single title on tickets for check computer

    If we use multiple titles, once cache is expired on memcached it creates multiples titles overtime.
parent 24520688
......@@ -32,7 +32,6 @@ try:
else:
should_notify = False
except KeyError:
ticket_title = "[MONITORING] No information about %s" % reference
description = "The Computer %s (%s) has not contacted the server (No Contact Information)" % (
computer_title, reference)
......
......@@ -1325,7 +1325,7 @@ class TestSlapOSComputer_CheckState(TestCRMSkinsMixin):
computer.Computer_checkState()
self.tic()
ticket_title = "[MONITORING] No information about %s" % computer.getReference()
ticket_title = "[MONITORING] Lost contact with computer %s" % computer.getReference()
ticket = self._getGeneratedSupportRequest(computer.getUid(), ticket_title)
self.assertNotEqual(ticket, None)
self.assertEqual('Visited by SupportRequest_trySendNotificationMessage ' \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment