Permalink
Browse files

Fix test_sensor_policy to use new schema in TS

  • Loading branch information...
1 parent 3b8dab7 commit 1733423d0491cbc88371890e7526e4b403c21e65 @oldpatricka oldpatricka committed Dec 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ion/agents/cei/test/test_haagent.py
@@ -507,7 +507,7 @@ def test_sensor_policy(self):
upids = self._get_managed_upids()
response = ""
for upid in upids:
- response += "%s,ml=5\n" % md5.new(upid).hexdigest()
+ response += "pid=%s&ml=5\n" % upid
self._set_response(response)
self.waiter.await_state_event(state=ProcessStateEnum.RUNNING)
@@ -518,7 +518,7 @@ def test_sensor_policy(self):
upids = self._get_managed_upids()
response = ""
for upid in upids:
- response += "%s,ml=1.5\n" % md5.new(upid).hexdigest()
+ response += "pid=%s&ml=1.5\n" % upid
self._set_response(response)
self.assertEqual(len(self.get_running_procs()), 2)
@@ -537,7 +537,7 @@ def test_sensor_policy(self):
upids = self._get_managed_upids()
response = ""
for upid in upids:
- response += "%s,ml=0.5\n" % md5.new(upid).hexdigest()
+ response += "pid=%s&ml=0.5\n" % upid
self._set_response(response)
self.waiter.await_state_event(state=ProcessStateEnum.TERMINATED)

0 comments on commit 1733423

Please sign in to comment.