Commit Graph
206 Commits
Author SHA1 Message Date
AlanCoding d5a3951d52 break up test into 2, isolating context 2016-04-27 15:58:16 -04:00
AlanCoding 4af1e0a9bf remove additional resource creation in test context 2016-04-27 15:30:51 -04:00
AlanCoding a7311a69c9 runtime test fixtures organized better 2016-04-27 14:24:54 -04:00
AlanCoding 271701a968 clean up unused test code 2016-04-27 10:43:03 -04:00
AlanCoding 5dc17cd72f New tests for user launching/relaunching with credential/inventory access 2016-04-27 09:03:38 -04:00
Alan Rominger c1ee5910d1 Merge pull request #1670 from AlanCoding/1642_scan_JT_counts
Include scan jobs in organization's job template count
2016-04-26 11:05:25 -04:00
Akita Noek 40147f28f8 Updated test 2016-04-25 14:29:05 -04:00
AlanCoding 7ac59de75e scan jobs linked by inventory in org JT counts 2016-04-22 16:41:58 -04:00
Akita Noek 280993a15d Dropped stored role name/description and other superflous fields
For name and description, we'll derive these from the role_field and
content type, which is much better for lots of reasons (eg changing text
the future). Also ditched the rest of the fields comming from the
standard common base model, we didn't use them and they cost several
indexes on the table.
2016-04-22 10:16:04 -04:00
Alan Rominger 88f79dc20a Merge pull request #1636 from AlanCoding/job_test_updates
Mock & speed up tests of job runtime variables
2016-04-21 20:38:58 -04:00
Wayne Witzel III 8574a3080f update tests and adjust rbac migration 2016-04-21 16:03:49 -04:00
Wayne Witzel III 0309757439 Add parent ORing for Role field, renamed permissions -> active_roles 2016-04-21 15:54:36 -04:00
AlanCoding 64fc0c8ecb Mock out job start related stuff in runtime tests 2016-04-21 14:07:39 -04:00
Akita Noek 0434712dc9 Complete the removal of cycle support in RBAC
We removed the actual need for this when we broke the org<->team cycle.
This patch removes the code we had to support that, but since it's
costly and unused, it's now nixxed.
2016-04-19 22:14:38 -04:00
Akita Noek f85090110f Fixed up fact tests to work with both sqlite and postgres
Ugly hack for now.. should be cleaned up when we get everything moved
over to postgres
2016-04-19 22:14:38 -04:00
Akita Noek 6864701d8b Revert "Fixed fact cache test difference between sqlite3 and postgres"
This reverts commit 631084b10f4435efe56d3a4fc774dd250f74e2ee.
2016-04-19 22:14:38 -04:00
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 82464fb45b remove extra validation on project.organization, enforced in UI, but allowed in API 2016-04-19 17:59:56 -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
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
AlanCoding 1a97773aa1 remove more save calls 2016-04-18 14:36:18 -04:00
AlanCoding 5abde762ae updates to prompt-for tests and logic for new RBAC updates 2016-04-18 14:29:30 -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
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 527be453a4 fix last cred test 2016-04-15 16:11:44 -04:00
Wayne Witzel III 6229e978e9 fix team tests 2016-04-15 15:26:49 -04:00
Akita Noek d2a81f46e3 Fixed up last test case for host access 2016-04-15 15:16:47 -04:00
Akita Noek 8653b61cc0 accessible_by -> in changes in test_rbac_inventory.py 2016-04-15 15:08:40 -04:00
Wayne Witzel III d9538b200a fix User.accessible_objects 2016-04-15 14:57:01 -04:00
Akita Noek fa10d562c1 Replaced get user permissions with get_roles_on_resource 2016-04-15 14:36:52 -04:00
Wayne Witzel III ff3be050fa test fixes and read_role 2016-04-15 11:56:08 -04:00
Wayne Witzel III d508254742 updater_role -> update_role 2016-04-15 11:01:35 -04:00
Wayne Witzel III 7098ef8da5 usage_role -> use_role 2016-04-15 11:01:08 -04:00
Wayne Witzel III 5bca1283b2 executor_role -> execute_role 2016-04-15 11:00:33 -04:00
Akita Noek 3b2c6747d3 Updated test_rbac_core.py test for RolePermission removal 2016-04-15 10:39:51 -04:00
Akita Noek 6d34ca9d22 Proof of concept hacks for RolePermission elimination 2016-04-15 10:03:50 -04:00
Akita Noek 872ce2f9e8 Merge branch 'ancestor-rebuild-optimization' into 11th-hour 2016-04-14 21:56:43 -04:00
Akita Noek 25f0d65c5f Ancestor rebuild optimization progress 2016-04-14 21:56:10 -04:00
Akita Noek 8887db231b Progress on ripping out RolePermissions 2016-04-14 09:44:20 -04:00
Chris Meyers f0a761e889 Merge pull request #1517 from chrismeyersfsu/fix-scan_job_time
fix scan job timestamp
2016-04-13 15:49:13 -04:00