Commit Graph

35 Commits

Author SHA1 Message Date
Mike Terzo
7cd8908adb Merge branch 'master' into facts 2017-06-10 03:40:13 -04:00
Mike Terzo
26825aee4f Merge pull request #355 from redref/inventory
Inventory page revamp with paging
2017-06-10 03:37:00 -04:00
Mike Terzo
671d538a8b Add report column settings to docker_settings 2017-06-06 18:39:19 +02:00
redref
c1fd33fb5c Generate fact JSON directly in python 2017-03-23 23:21:28 +01:00
redref
d4d7b6a56a Clean CatalogForm 2017-03-23 23:13:12 +01:00
redref
484727b62c Fix #356 with the new template
Created a custom template_filter as in python3, the groupby filter cannot order Bool vs Str. Needed to push format before the groupby which is not currently possible in jinja.
2017-03-23 22:35:28 +01:00
redref
40511c007a Fact pages and node page tests 2017-03-23 22:35:28 +01:00
redref
f13100664a Facts page fix + performance revamp
Removed facts query to let only fact-names. facts query time grow pretty quickly with number of nodes. Drawback: no filter on environment (which seems acceptable)
Add testing about view and column repartition (broken in jinja2 2.9.X / inner loop variables).
Rework facts page (jinja 2.9 compliant)
2017-03-23 22:35:28 +01:00
Mike Terzo
c59607564a Updating Forms to the new FlaskForm class name 2017-03-20 19:47:21 -04:00
Mike Terzo
cdedf94506 Remove 204-NoContent, Flask, and Werkzeug no longer provide
public apis to add additional error code exception handling.
2017-03-20 19:47:13 -04:00
redref
507df87234 Inventory page testing 2017-02-15 21:43:14 +01:00
redref
f908a1e86c Catalogs tests - better data testing 2017-02-06 16:19:45 +01:00
redref
4190e36278 Add some tests to catalogs 2017-02-03 23:11:08 +01:00
Mike Terzo
55756900c1 Validate dailychart json data 2017-02-03 12:13:46 +01:00
redref
2cdf5fea61 Fix python3 chart (_iter_dates) 2017-02-03 12:13:33 +01:00
Mike Terzo
36c913588a Merge pull request #331 from mterzo/all_envs
Support for PuppetDB 3.x on all environments
2017-02-02 08:04:40 -05:00
Mike Terzo
3e7119f63e Update to latest pypuppetdb. 2017-01-30 16:05:22 -05:00
Mike Terzo
89407d1718 Adding test cases for all environments for
both puppetdb 3.2.0 and 4.2.0
2017-01-27 07:40:08 -05:00
Mike Terzo
8b883b32f8 Adding new table settings to docker_settings 2017-01-26 13:53:29 -05:00
Mike Terzo
4f50811142 Adding first test case for report 2017-01-26 04:35:58 -05:00
Mike Terzo
caadaa0b35 Test index with division by zero
Signed-off-by: Mike Terzo <mike@terzo.org>
2017-01-23 19:54:00 -05:00
Mike Terzo
86488280c9 Test error conditions.
Fix 412 template to use standard styling that the other 400 templates use.
Update forbidden error to return status code 403 instead of 400.

Signed-off-by: Mike Terzo <mike@terzo.org>
2017-01-23 19:53:55 -05:00
Mike Terzo
2e4acc3e3f Adding radiator json testing
Signed-off-by: Mike Terzo <mike@terzo.org>
2017-01-23 19:53:52 -05:00
Mike Terzo
0570372d97 Testing pretty print produces good html
Signed-off-by: Mike Terzo <mike@terzo.org>
2017-01-23 19:53:48 -05:00
Mike Terzo
0d1fbcee88 Adding tests for node list
Signed-off-by: Mike Terzo <mike@terzo.org>
2017-01-23 19:53:45 -05:00
Mike Terzo
7cebe56fc4 Adding testing for all environments
Signed-off-by: Mike Terzo <mike@terzo.org>
2017-01-23 19:53:41 -05:00
Mike Terzo
e2c45648b9 Removing whitespace from classes in radiator view
Signed-off-by: Mike Terzo <mike@terzo.org>
2017-01-23 19:53:33 -05:00
Mike Terzo
fb6b8d2c0e Adding testing for radiator view.
Signed-off-by: Mike Terzo <mike@terzo.org>
2017-01-23 18:14:52 -05:00
Mike Terzo
c729b4d88d Adding testing for Puppetboard app using flask client.
Adding offline / online mode testing for validation.

This is the start of adding a ton of tests with the start
to mocking for pypupppetdb
2017-01-23 18:06:53 -05:00
Mike Terzo
ff409c5f6d Adding coverage for invalid log setting 2017-01-23 18:06:52 -05:00
Mike Terzo
7302dbecec Convert Unit tests to use py.test format 2017-01-23 18:06:49 -05:00
Raphaël Pinson
df91efff33 Use puppetdb as PUPPETDB_HOST on Docker
This allows to plug and play a PuppetDB container (or use extra host)
2017-01-05 12:54:31 +01:00
Mike Terzo
b96e76ff10 Use alpine python and gunicorn
Adding docker_settings.py which reads environment variables
to allows for environment variable to be passed to the
container
2016-12-19 15:54:32 -05:00
Mike Terzo
3fbd182453 Adding unittests (#300)
* Create a custom class to handle aborting 204 properly.  If this isn't
covered the server will send a 500 due to a python exception

* Moved py.test configuration under tool:pytest, this was causing a
warning.  This is new to 3.0.1 which is now the pinned version

* Unittest for puppetboard.utils
2016-09-11 21:01:13 -04:00
Mike Terzo
faac5fa1bc Travis ci integration (#267)
* Initial travis-ci integration

* Format code base to PEP8
2016-07-13 20:59:07 -04:00