diff --git a/requirements.txt b/requirements.txt index fcb33b1..899eb3b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,5 @@ MarkupSafe==0.19 WTForms==2.1 Werkzeug==0.11.10 itsdangerous==0.23 -pypuppetdb==0.3.1 +pypuppetdb==0.3.2 requests==2.6.0 diff --git a/test/test_app.py b/test/test_app.py index d7e957d..966839b 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -45,37 +45,37 @@ def mock_puppetdb_default_nodes(mocker): latest_report_hash='1234567', catalog_timestamp='2013-08-01T09:57:00.000Z', facts_timestamp='2013-08-01T09:57:00.000Z', - status='unreported'), + status_report='unreported'), Node('_', 'node-changed', report_timestamp='2013-08-01T09:57:00.000Z', latest_report_hash='1234567', catalog_timestamp='2013-08-01T09:57:00.000Z', facts_timestamp='2013-08-01T09:57:00.000Z', - status='changed'), + status_report='changed'), Node('_', 'node-failed', report_timestamp='2013-08-01T09:57:00.000Z', latest_report_hash='1234567', catalog_timestamp='2013-08-01T09:57:00.000Z', facts_timestamp='2013-08-01T09:57:00.000Z', - status='failed'), + status_report='failed'), Node('_', 'node-noop', report_timestamp='2013-08-01T09:57:00.000Z', latest_report_hash='1234567', catalog_timestamp='2013-08-01T09:57:00.000Z', facts_timestamp='2013-08-01T09:57:00.000Z', - status='noop'), + status_report='noop'), Node('_', 'node-unchanged', report_timestamp='2013-08-01T09:57:00.000Z', latest_report_hash='1234567', catalog_timestamp='2013-08-01T09:57:00.000Z', facts_timestamp='2013-08-01T09:57:00.000Z', - status='unchanged'), + status_report='unchanged'), Node('_', 'node-skipped', report_timestamp='2013-08-01T09:57:00.000Z', latest_report_hash='1234567', catalog_timestamp='2013-08-01T09:57:00.000Z', facts_timestamp='2013-08-01T09:57:00.000Z', - status='skipped') + status_report='skipped') ] return mocker.patch.object(app.puppetdb, 'nodes',