"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "panko/tests/functional/test_bin.py" between
panko-8.0.0.tar.gz and panko-8.1.0.tar.gz

About: OpenStack Panko is an event storage service and REST API for Ceilometer.
The "Ussuri" series (maintained release).

test_bin.py  (panko-8.0.0):test_bin.py  (panko-8.1.0)
skipping to change at line 68 skipping to change at line 68
content = content.encode('utf-8') content = content.encode('utf-8')
self.tempfile = fileutils.write_to_tempfile(content=content, self.tempfile = fileutils.write_to_tempfile(content=content,
prefix='panko', prefix='panko',
suffix='.conf') suffix='.conf')
subp = subprocess.Popen(['panko-expirer', subp = subprocess.Popen(['panko-expirer',
'-d', '-d',
"--config-file=%s" % self.tempfile], "--config-file=%s" % self.tempfile],
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
out, __ = subp.communicate() out, __ = subp.communicate()
self.assertEqual(0, subp.poll()) self.assertEqual(0, subp.poll())
msg = "Dropping %s data with TTL 1" % data_name msg = "Dropping 100 %ss data with TTL 1" % data_name
if six.PY3: if six.PY3:
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self.assertIn(msg, out) self.assertIn(msg, out)
def test_run_expirer_ttl_enabled(self): def test_run_expirer_ttl_enabled(self):
self._test_run_expirer_ttl_enabled('event_time_to_live', 'event') self._test_run_expirer_ttl_enabled('event_time_to_live', 'event')
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)