Chris Meyers
0f99dbe1d2
fixes MONGO_HOST not found error
2016-03-18 10:56:00 -04:00
Chris Meyers
2e86c58a65
remove mongo fact tests
2016-03-09 15:25:58 -05:00
Chris Meyers
d56dc25314
do not require mongo to be on
2016-03-04 10:52:12 -05:00
Wayne Witzel III
5d6ea242c0
reorganzing tests folder
...
make tests a module
refacotring to local imports for tests
fixing test import of tasks
fixing test import of tasks
more testing fixups
2016-02-01 18:37:56 -05:00
Chris Meyers
667d8a2667
fix the connection check fix
...
* Multiple exceptions in except should be a tuple. Otherwise, the second
parameter will be the error object. Apposed to the intent, for it to be
another exception in a list of exceptions.
2015-12-07 13:48:19 -05:00
Chris Meyers
78ac2ccb55
more robust check added to mongo db connection
...
Calling mongoengine (or pymongo) connect() after already calling
connect() resulting in getting the first connection (connection
pooling). This is bad if we are relying on connect() to determine if
mongo is up. Added executing a ping/pong command after the connect()
command to ensure mongo is still/really up.
2015-12-04 13:25:57 -05:00
Matthew Jones
b06f7fb883
Remove logging from fact init
2015-10-02 16:56:13 -04:00
Matthew Jones
ac37667649
Clean up fact module imports
2015-10-02 16:08:02 -04:00
Matthew Jones
c65d068d55
Add note about wanting to use register_connection
...
I think this would be the cleaner way to go about things but there are
some unanswered questions about that route.
2015-10-02 16:04:47 -04:00
Matthew Jones
1425718d9e
Improve the efficiency of mongo connections
...
- Remove the connect action in the fact __init__ module
- Monkeypatch mongoengine.Document's _get_db to force a new connection
or raise an error if we don't have the proper settings.
2015-10-02 15:57:50 -04:00
Chris Meyers
f64a48a98f
python 2.6 safe total_seconds
2015-07-30 13:40:31 -04:00
Chris Meyers
9f95fafc33
relax performance unit test requirement strict timeout
2015-07-20 12:16:36 -04:00
Chris Meyers
b654c6dd3e
more flake8
2015-07-20 11:33:28 -04:00
Chris Meyers
7af1d5530d
Merge pull request #312 from chrismeyersfsu/feature-fact_save_performance
...
fact save test performance
2015-07-17 10:25:05 -04:00
Chris Meyers
d784b72adb
fact save test performance
2015-07-14 08:52:27 -04:00
Chris Meyers
b4b8909239
demote mongo db connection failed logging to info
2015-07-02 15:45:09 -04:00
Chris Meyers
6e05a38d9c
Merge pull request #297 from chrismeyersfsu/fix-workload_generator
...
forgot to remove the old fact workload generator
2015-06-25 13:55:30 -04:00
Chris Meyers
c17e654161
forgot to remove the old fact workload generator
2015-06-19 14:13:52 -04:00
Chris Meyers
7e6dbd616d
Allow fact scanning hosts with same name in two different inventories
2015-06-19 10:29:00 -04:00
Chris Meyers
d5b7be3f4f
Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
...
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
John Mitchell
32d1c0e4db
fixed copyright date
2015-06-11 16:10:23 -04:00
Chris Meyers
0c7638bdd7
associate scan runs with a particular inventory host
2015-06-11 15:14:00 -04:00
Matthew Jones
3c2f3f323a
Fix some flake8
2015-06-09 16:07:06 -04:00
Matthew Jones
ab5c4b5f20
Check connection for scan jobs before actually running the job, fail
...
early if the system tracking database isn't available
2015-06-09 15:31:23 -04:00
Chris Meyers
d580969088
Merge pull request #265 from chrismeyersfsu/fix-system_tracking_performance
...
index host relationship to speed up fact_versions api endpoint
2015-06-05 17:11:56 -04:00
James Laska
53b16c09e8
Please don't hate on flake8
2015-06-05 12:46:07 -04:00
Luke Sneeringer
4ad92fd253
Suppress flake8 silliness
2015-06-05 11:24:12 -05:00
Luke Sneeringer
b0b5e3a726
Do not accept enterprise licenses in some cases.
...
This commit makes it so that enterprise licenses are rejected in HA
environments if there is no active MongoDB server.
Additionally, it suppresses trying to connect to MongoDB in cases where
it is not present or meaningful.
2015-06-04 14:42:14 -05:00
Chris Meyers
a0b6d3f099
index host relationship to speed up fact_versions api endpoint
2015-06-04 15:15:56 -04:00
Chris Meyers
ad7ab0735c
scan time should be the same for all hosts
2015-06-03 14:26:35 -04:00
Matthew Jones
31d0342d41
More copyright headers for api side stuff
2015-05-29 12:10:40 -04:00
Matthew Jones
b3da3b34a3
Changing some legal headers for python source files
2015-05-29 12:10:39 -04:00
Chris Meyers
013f59d58a
Merge pull request #221 from chrismeyersfsu/feature-cleanup_module
...
cleanup facts, module granularity
2015-05-18 22:20:16 -04:00
Chris Meyers
11e7d96191
ads epoch scan date specification feature
2015-05-18 10:31:01 -04:00
Chris Meyers
c3c19b77f7
simple fact scan workload generator
2015-05-15 12:35:13 -04:00
Chris Meyers
0dc7072e68
flake8
2015-05-11 09:08:46 -04:00
Chris Meyers
5ff696f708
added fact view tests
...
* Add related link from host to fact_versions
* Add related link from fact_versions to fact_view
2015-05-08 21:34:24 -04:00
Chris Meyers
391a4aa439
fixed single_fact query
...
Foreach host return only the FIRST fact matching the less than timestamp query.
2015-05-06 14:32:50 -04:00
Matthew Jones
e784595119
Initial implementation of fact api endpoints
2015-05-05 14:47:58 -04:00
Chris Meyers
f3739ec283
single fact now behaves like a match query
2015-05-05 12:59:21 -04:00
Chris Meyers
5b2f3dfd8f
fixes Fact serialization/deserialization
2015-05-04 10:35:33 -04:00
Chris Meyers
f8a940f5ac
per @cchurch recomendation, log using the awx.fact namespace
2015-04-14 07:18:52 -04:00
Chris Meyers
5787e4a67f
removed logger call
2015-04-13 19:52:27 -04:00
Chris Church
48bbac7f18
Fix flake8 warnings.
2015-04-09 22:55:53 -04:00
Chris Meyers
fc73f1f87a
added single fact across multiple hosts query + test cases
2015-04-07 17:50:07 -04:00
Chris Meyers
2a039bb31f
moved new fact implementation to fact app
2015-04-07 09:50:35 -04:00