Chris Church
7f1c97b167
Include pk in inventory source name to keep it unique even with group renames. Fixes https://trello.com/c/PnmDWCai
2015-05-20 14:00:33 -04:00
Chris Meyers
6e42a69ce3
tests added
2015-05-20 09:49:38 -04:00
Chris Church
529b7a1117
Remove changes to only count unique hostnames. Fixes https://trello.com/c/HN7S4KF3 again.
2015-05-14 15:48:09 -04:00
Chris Church
d730859575
Count only unique hostnames for total/failed values on dashboard. Fixes https://trello.com/c/HN7S4KF3
2015-05-11 19:54:18 -04:00
Chris Meyers
f6541059a3
mark license expired inventory update + tests
2015-05-04 12:51:46 -04:00
Matthew Jones
f45d75c06c
Some small changes to tower openstack work
...
1) Favor private addresses in the openstack inventory sync
2) Force refresh
3) use hostId and promote it to the top level vars object so we can
track individual host changes
2015-04-20 15:11:06 -04:00
Matthew Jones
6a18a50d99
Fixing flake8 errors, this should be almost all of them!
2015-02-11 16:42:55 -05:00
Chris Church
c903e64ad5
Remove tags, add group for templates to VMware inventory script.
2015-02-11 03:24:17 -05:00
Chris Church
2d6986bb53
Update EC2 inventory to include changes from ansible/devel, add tag_none to tags group, update vpc group naming to match ansible/devel.
2015-02-11 01:46:22 -05:00
Chris Church
bfff155d61
Fix dashboard inventory graph to only count unique hostnames and reflect when licensed hosts count drops; API response is slower than before. Fixes https://trello.com/c/Kfw7QlRE
2015-02-10 16:17:53 -05:00
Matthew Jones
9e97783b13
Fixing up more pep8 issues
2015-02-04 16:32:14 -05:00
Chris Meyers
e822689ca1
test for non-existance of tag changed to be more strict to the tags form i.e. check for tag_*_* form rather than tag_*
...
tag_none grouping is more like ec2 global groups. Thus, removed the children filter test.
2015-01-16 14:16:23 -05:00
Chris Church
844e1b7343
Update validation for instance filters to allow 'tag:key=value'. Fixes https://trello.com/c/VH9Vnd8z .
2014-12-17 02:31:33 -05:00
Chris Church
ee97e83b2c
Allow EC2 inventory sources to omit a credential in order to use IAM roles. Implements https://trello.com/c/aBMF95eF
2014-12-17 01:50:25 -05:00
Matthew Jones
76a7d25131
Force custom inventory script organization to match the organization of
...
an inventory source's inventory when creating/updating the inventory source
2014-12-16 13:01:11 -05:00
Matthew Jones
cc7edc770e
Small fix for inventory source unit tests if the source is custom during check_inventory_source
2014-12-15 15:13:27 -05:00
Matthew Jones
7df9ca8ae1
Force custom inventory scripts to start with a hashbang
2014-12-10 10:59:20 -05:00
Chris Church
6b91f46082
Log warning and continue on invalid port specification. Fixes traceback from https://trello.com/c/0OgJ3uRb
2014-12-03 19:27:52 -05:00
Chris Church
109988da13
Fix typo, modify can_update to prevent inventory update from even starting when source script is missing.
2014-12-03 18:35:33 -05:00
Matthew Jones
706b770814
Fix up unit test referencing the custom inventory script
2014-12-03 15:35:08 -05:00
Chris Church
ba652b5dd3
Updated blacklist/rules for environment variables that can be set by source_vars for a custom inventory script. Fixes https://trello.com/c/CWbeHJ0L
2014-12-03 00:45:46 -05:00
Chris Church
02f9f68536
Added API validation of instance filter names. Fixes https://trello.com/c/VH9Vnd8z
2014-12-03 00:26:25 -05:00
Chris Church
2f3d9e9f36
Handle/ignore poorly formatted EC2 instance filters. Fixes https://trello.com/c/YMtWTaW9 , https://trello.com/c/laUovaOm and https://trello.com/c/Hu11HhC4
2014-12-02 23:56:35 -05:00
Chris Church
1e56d3d2fd
Add tests for inventory_filters and group_by, fix to convert None to empty string.
2014-11-26 13:34:10 -05:00
Chris Church
35c392ab17
Add instance filters and group by options for EC2 inventory sources. Implements https://trello.com/c/QOVhP0mH
2014-11-26 03:20:45 -05:00
Matthew Jones
c48dde9753
More unit test fixups for system uuid
2014-11-17 14:50:57 -05:00
Matthew Jones
eae8c48faa
Fix up unit tests for tracking system_uuid in the settings and database
2014-11-17 14:14:07 -05:00
Luke Sneeringer
3d51b25762
Unit tests now start their own Redis.
2014-11-14 11:57:34 -06:00
Luke Sneeringer
ed34d5f469
Fix all but one unit test.
2014-11-07 14:26:31 -06:00
Chris Church
f5a174f991
Fixes https://trello.com/c/8KGzMa75 - Updates to VMware inventory script to include additional host variables, groups and ansible_ssh_host.
2014-10-30 13:47:49 -04:00
Matthew Jones
b37925149b
Fix the custom script update to use the normal mechanism for trigger an
...
inventory update
2014-10-02 12:53:24 -04:00
Matthew Jones
52fc81244d
Revert "Use the normal built-ins for testing inventory sources when testing for"
...
This reverts commit d989b3e438022f565fb17ae7e4ec02b10239d577.
2014-10-02 12:53:23 -04:00
Matthew Jones
27458667ab
Use the normal built-ins for testing inventory sources when testing for
...
custom scripts
2014-10-02 11:33:27 -04:00
Matthew Jones
bd0d4463ef
Make sure we setup a license file when running the custom script
...
inventory update test
2014-10-01 16:26:09 -04:00
Matthew Jones
90bf8966b9
Refetch the group in an attempt to re-materialize the host additions
2014-10-01 15:17:17 -04:00
Matthew Jones
56f5c0f402
Use assertEqual in the inventory test
2014-09-30 16:21:39 -04:00
Matthew Jones
06c75aeecf
Implement API side for custom inventory script support with endpoints
...
and unit tests
2014-09-30 11:50:50 -04:00
Chris Church
ee030a89b7
Fixes https://trello.com/c/rHOgeb2W - Remove temp cache dir created for EC2 inventory sync.
2014-09-08 14:28:31 -04:00
Matthew Jones
11799ff25f
Implement new license validation logic per spec "30 Day Trial
...
Engineering Spec" + Unit Tests
2014-08-04 13:55:51 -04:00
Luke Sneeringer
627c6f029e
Adding sensible ordering to common models.
...
https://trello.com/c/tTwRM2VV/102-tower-api-teams-endpoint-does-not-sort-consistently
2014-07-24 15:01:16 -05:00
Chris Church
48afe188b2
Fix to return hosts without a group in the 'all' group from inventory script view.
2014-07-18 13:28:23 -04:00
Chris Church
0622dd101c
Support caching for ec2 inventory sync to avoid unit test failures.
2014-06-28 18:16:37 -04:00
Chris Church
fcf41d74cf
Add test license for ec2 import to make jerkins happy.
2014-06-26 18:02:08 -04:00
Chris Church
7229f9cc8f
AC-1302 Update EC2 inventory script to create hierarchical groups.
...
Conflicts:
awx/main/tests/inventory.py
2014-06-26 14:54:51 -04:00
Chris Church
3b9fe8b954
Fix failing rax unit test, nly check that enabled flag is set on hosts that were previously enabled insead of all hosts.
2014-06-25 12:35:50 -04:00
Matthew Jones
718e9916f0
Fix a bug in the mainline inventory test
2014-06-06 15:52:28 -04:00
Matthew Jones
6773fd19d7
Implement passive copying as a new host to a group
...
requires that the variables isn't special on the new host
implements AC-1265
2014-06-06 15:22:56 -04:00
Chris Church
3a5db149e9
Generate large test license for cloud inventory import unit tests.
2014-06-05 16:20:17 -04:00
Matthew Jones
12ecc46398
Fix a bug where we allowed adding a group as a child of a
...
deleted/inactive group
2014-05-23 14:27:08 -04:00
Matthew Jones
3d90c6db76
Deref deleted group immediately and then pass off the children and hosts
...
to be processed in the background.
Get rid of the child relative delete mechanism and merge the old concept
of delete on the /group/n endpoint with our new concept
2014-05-21 16:12:42 -04:00