Commit Graph
191 Commits
Author SHA1 Message Date
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
AlanCoding 914918b5ae update permission logic, update job runtime tests 2016-04-13 13:30:06 -04:00
Wayne Witzel III 4950db8ac9 remove tests that are no longer valid 2016-04-13 11:41:15 -04:00
Chris Meyers c8010fc0ce use new timestamp logic in tests 2016-04-13 09:41:28 -04:00
AlanCoding b0bbeb2ca8 move credential to prompt-for mechanism 2016-04-12 17:09:25 -04:00
AlanCoding 52d8993aa8 update tests to conform to new credential behavior and launch response 2016-04-12 17:09:24 -04:00
AlanCoding bea15021b3 ask_for_inventory permissions and runtime tests finished
cleanup prompt-for additions

update migration after rebase
2016-04-12 17:09:24 -04:00
AlanCoding cc84ed51d6 Add ability to prompt for several variable types on launch 2016-04-12 17:09:24 -04:00
Matthew Jones 28ffa57258 Implement rbac and related unit tests for notifications 2016-04-12 17:00:38 -04:00
Akita Noek 40731f6fc8 Merge pull request #1513 from anoek/1499
Fix erronous singleton role created for users
2016-04-12 16:54:19 -04:00
Akita Noek ea3a7ef227 Merge branch 'devel' of github.com:ansible/ansible-tower into migration 2016-04-12 16:30:09 -04:00
Wayne Witzel III 6bc765d1b5 Merge pull request #1507 from wwitzel3/rbac-bug-1422
RBAC Job Fixes
2016-04-12 16:22:47 -04:00
Akita Noek c984b33f1e Fix erronous singleton role created for users
Needed to be just a normal role, ie with `name` assigned instead of
`singleton_name`

 Addresses #1499
2016-04-12 15:43:27 -04:00
Akita Noek 29c7ecf6a8 Merge branch 'devel' into migration 2016-04-12 15:12:43 -04:00
Akita Noek 8c917de24d Fix faulty activitystream test
Test assumed that the only entry in activitystream would be related to
the creation of the organization, which in this case was not true, the
most recent being something related to the user object being created or
modified.
2016-04-12 15:03:24 -04:00
Wayne Witzel III 7cd4fb7b7a Merge pull request #1502 from wwitzel3/rbac-feature-1324
Update docs, driveby test fix.
2016-04-12 13:32:56 -04:00