Akita Noek
c0e056d6d0
Fixed fact cache test difference between sqlite3 and postgres
...
I guess the sqlite adaptation of the JSONField was resulting in a json
encoded blob, where as the postgres version returned something that got
parsed out normally with the rest of the query result?
2016-04-19 22:14:38 -04:00
Akita Noek
6349cc0f85
Skip test_fact.py migrations if MONGO_DB is not confingured
2016-04-19 22:14:38 -04:00
Akita Noek
7ee2c89ab5
test_notifications.py id fix
...
Ass-ummed an id of 1
2016-04-19 22:14:38 -04:00
Akita Noek
85a1b30af5
Skip activity stream tests if activity stream is disabled
2016-04-19 22:14:38 -04:00
Akita Noek
450e6f2885
Removed git configuration from org count projects
...
Avoids unnecessary cloning of said git repo, runs in 4 seconds now
instead of 50 seconds
2016-04-19 22:14:38 -04:00
Akita Noek
2a0b445488
Remove git project configuration from project test fixtures
...
Having this in here causes us to go out and pull down the repo whenever
we run a test, adds around 9 seconds per test on a good connection.. if
we need real data in here, we should figure out how to get it locally
2016-04-19 22:14:38 -04:00
Akita Noek
f0aebd00eb
Removed transaction=True from pytests
...
This was overkill and cost 3s per instance, all we needed to do is wrap
things that expectedly fail transactions with transaction.atomic()
2016-04-19 22:14:38 -04:00
Wayne Witzel III
320d6377d0
add Red Hat for CloudForms and Satellite 6
2016-04-19 18:03:58 -04:00
Wayne Witzel III
82464fb45b
remove extra validation on project.organization, enforced in UI, but allowed in API
2016-04-19 17:59:56 -04:00
Akita Noek
ad423e976b
Bump splunk time limit up to pass tests, will fix in #1584
2016-04-18 17:58:18 -04:00
Akita Noek
043c71728c
Bump our monolithic test time back up.. will try and reduce it post-merge
2016-04-18 17:06:47 -04:00
Akita Noek
41553c39bf
Moved dummy data generator out to tools directory
2016-04-18 16:56:29 -04:00
Akita Noek
97f70cdbbc
Merge branch 'devel' of github.com:ansible/ansible-tower into 11th-hour
2016-04-18 16:30:55 -04:00
Akita Noek
c3144dc4d3
benign 0008 migration change to make makemigrations happy
2016-04-18 16:26:11 -04:00
Akita Noek
07eccbe3e4
Migration for dropping implicit host inventory,name ordering
2016-04-18 16:22:14 -04:00
Matthew Jones
d87213705b
Adjust job launch blocking logic
...
Previously a job template would always block another job template launch
regardless of the details of the job template. We now restrict that
blocking logic to only block in the case that the job template was
launched with the same inventory. We keep the exclusion where if the
launch type is 'callback' and the limits differ then they won't be blocked
2016-04-18 15:57:31 -04:00
Akita Noek
96aa3e2555
Attempt 2 at making jenkins' sqlite happy
2016-04-18 15:26:09 -04:00
Akita Noek
fa98b59b6c
Merge pull request #9 from AlanCoding/11th-hour
...
Merge devel, update job launch behavior to newest permissions stuff
2016-04-18 15:03:58 -04:00
AlanCoding
1a97773aa1
remove more save calls
2016-04-18 14:36:18 -04:00
Akita Noek
0349737538
Attempt at a workaround for our larger sqlite tests
...
These tests are only failing on jenkins, not on our local dev
environments.
2016-04-18 14:32:21 -04:00
Akita Noek
0cf096e5b0
Updated users.py test expectations to match our current behavior
2016-04-18 14:31:42 -04:00
AlanCoding
5abde762ae
updates to prompt-for tests and logic for new RBAC updates
2016-04-18 14:29:30 -04:00
Matthew Jones
226cb9acdf
Protect job template and project template notifiers in the case where
...
the project or org may not be available.
2016-04-18 14:24:53 -04:00
AlanCoding
9c75ced9f8
Merge branch 'devel' of https://github.com/ansible/ansible-tower into 11th-hour
2016-04-18 14:12:13 -04:00
Alan Rominger
33500f5816
Merge pull request #1431 from AlanCoding/1136_prompt_for_all_things3
...
Allow prompting for several new runtime variables
2016-04-18 14:04:11 -04:00
Akita Noek
6c47aed852
Merge pull request #8 from AlanCoding/11th-hour-org-counts
...
Thorough organization counts testing, un-skip
2016-04-18 11:41:51 -04:00
Akita Noek
878455187f
Optimized viewable user list, fixed up some project readability bugs
2016-04-18 11:28:46 -04:00
Matthew Jones
ba7f48abf1
Updating tests around data preload
2016-04-18 11:27:39 -04:00
Akita Noek
8b67f1d1c6
Removed team<->org role cycle
2016-04-18 11:27:22 -04:00
AlanCoding
fb013ed7f1
org counts: un-skip tests, more thorough counting
2016-04-18 11:15:05 -04:00
Akita Noek
6d8bab97df
Only rebuild ancestor list on post_* events
2016-04-18 08:53:40 -04:00
Akita Noek
2a676d80ce
Handle vacuous role rebuilding condition instead of exploding
2016-04-18 08:45:44 -04:00
Akita Noek
85843cc6ad
Fixed up some RBAC indexing
2016-04-17 10:20:38 -04:00
Akita Noek
a9f2507e91
flake8
2016-04-16 18:54:45 -04:00
Akita Noek
74caa18cb5
Ditch some expensive prefetching for Hosts
...
This prefetching gets really expensive when we have a large number of
hosts, it's far less expensive to just go out and do subsequent queries
to pull this data in. (dropped aggregate query time down from ~2400ms to
~180ms)
2016-04-16 18:32:54 -04:00
Akita Noek
a7f9eedb21
Be more explicit with our user_admin_role selection to avoid potential future bugs
2016-04-16 18:32:34 -04:00
Akita Noek
849a9c08b0
Drop our implicit order by inventory for Host models
...
Sorting by inventory (which is really by inventory.name) which is
untenable for a large number of hosts
2016-04-16 18:30:30 -04:00
Akita Noek
5d0c6cc044
Switch to custom ancestry table for some optimized queries
...
Now we can stuff some more data in this table so we can take advantage
of some multi-column indexing and avoid another to join for our
accessible objects and permissions queries.
2016-04-16 18:27:57 -04:00
Akita Noek
25303cf4ec
Reverted user owner_role back to admin_role
2016-04-16 18:24:26 -04:00
Akita Noek
6c50d0793d
More test fixes
2016-04-16 10:22:03 -04:00
Akita Noek
2c45f79298
Migration updates for RolePermission removal
2016-04-16 08:47:51 -04:00
Akita Noek
7659da6162
Fixes for old/ad_hoc.py tests
2016-04-16 08:36:36 -04:00
Akita Noek
7bfc8cd43b
flake8
2016-04-15 17:22:48 -04:00
Akita Noek
d5bc455677
admins can use credentials too
2016-04-15 16:27:24 -04:00
Akita Noek
1fa70106d8
Added read_role to credential
2016-04-15 16:26:59 -04:00
Akita Noek
527be453a4
fix last cred test
2016-04-15 16:11:44 -04:00
Akita Noek
c440aefd85
fix jt tests
2016-04-15 16:08:14 -04:00
Akita Noek
926d58b8b7
Merge branch '11th-hour' of github.com:anoek/ansible-tower into 11th-hour
2016-04-15 15:56:10 -04:00
Akita Noek
2979f6e6d3
jobtemplate execute_role is now child of admin_role
2016-04-15 15:55:59 -04:00
Wayne Witzel III
c3923da37a
fixing credential access
2016-04-15 15:31:31 -04:00