Matthew Jones
0a89581868
Fix up flake8 errors
2016-05-05 14:23:41 -04:00
Matthew Jones
5895b3a343
Refactor Notification's naming
...
Notifier -> NotificationTemplate
notifier -> notification_template
2016-05-05 13:53:46 -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
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
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
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
Chris Meyers
d69b9fad8f
fix rbac label assignment across orgs
...
* Org admins should not be able to attach labels to orgs for which they
are not also org admins for.
2016-04-05 16:03:46 -04:00
Chris Meyers
2f4e8cd163
Merge pull request #1396 from chrismeyersfsu/labels-rbac
...
Labels rbac
2016-04-05 08:53:49 -04:00
Chris Meyers
fa6f5329cf
labels + rbac + tests
2016-04-04 17:20:58 -04:00
Akita Noek
23aca083eb
Added and updated several credential creation and listing API endpoints
...
Should addres #1379
2016-04-01 16:57:08 -04:00
Chris Meyers
ff5935ccfd
Merge branch 'test-labels' into devel
2016-04-01 13:36:41 -04:00
Chris Meyers
a01b2913bb
mockity mock mock
2016-04-01 13:34:06 -04:00
Akita Noek
3b233f828e
Merge branch 'devel' of github.com:ansible/ansible-tower into rbac
2016-03-28 09:23:53 -04:00
Chris Meyers
d2de21ee50
job template labels init implementation
2016-03-24 15:26:14 -04:00
Akita Noek
eccb50a253
Fixed projects creation api endpoints to take organization
2016-03-24 10:22:25 -04:00
Akita Noek
9dbe9fb7ad
Moved a couple of test cases from old/projects.py tests to new test_projects.py tests
2016-03-23 14:47:01 -04:00
Akita Noek
ba6752fb23
Eliminate multiple-organization projects
...
Projects are duplicated with this migration to provide a nearly
equivalent functionality.
Satisifies #1164
2016-03-14 14:57:24 -04:00
Akita Noek
3db13bc33c
Updated fact tests to use the divergent group fixture
...
A group fixture was created in different ways, one on devel and one on
rbac, this patch just normalizes to the one usage
2016-03-01 15:34:26 -05:00
Akita Noek
ea2cabe4d4
Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel
2016-03-01 15:09:58 -05:00
Chris Meyers
356b9c99b3
Merge branch 'mongoectomy_implementation' into devel
2016-03-01 08:22:40 -05:00
Matthew Jones
0ee12901fe
Fix some notifications issues and write some tests
...
* Fixes some notifier merging issues
* Fixes some more unicode problems
* Implements unit tests
2016-02-29 12:30:00 -05:00
Chris Meyers
7ffe46fc74
add postgres Fact model, update views, tests
...
* awx.main.models Fact added
* view host fact and timeline updated to use new Postgres Fact model instead of Mongo
* Removed license set start Mongo logic
* added View tests
* added Model tests
* Removed mongo fact unit tests
* point at modified jsonbfield that supports sqlite storage driver
* postgresify fact cache receiver
* test OPTIONS endpoint
* Note: single fact view not implemented yet.
2016-02-24 14:38:54 -05:00
Akita Noek
b08809f7cc
Initial RBAC API implementation
2016-02-22 16:21:56 -05:00
Akita Noek
161f4f22cf
Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel
2016-02-22 09:37:14 -05:00
Akita Noek
0051464525
Added put,head,options,delete, & patch test fixtures for api related tests
2016-02-18 11:23:31 -05:00
Akita Noek
6aeaec2b76
Switch to resolve in api test fixtures to automatically resolve View's and their arguments
...
Also changed the signature of the post/get methods to better align with
libraries like `requests`
2016-02-18 11:19:27 -05:00
Wayne Witzel III
30f88b6e30
Added redis in-memory fixture for functional tests
2016-02-18 09:51:32 -05:00
Akita Noek
d5c41d02ea
Merge branch 'devel' into merge-devel
2016-02-15 13:38:01 -05:00
Akita Noek
243b78ee25
Job template migration and migration tests
2016-02-15 11:48:17 -05:00
Akita Noek
e0371f3745
Switched back to multiple-organizations for Projects
2016-02-15 10:43:50 -05:00
Wayne Witzel III
6877a7a566
added Group.parents rebuilding
2016-02-10 15:13:24 -05:00
Akita Noek
34067d9c0e
Project migration and tests
2016-02-08 22:54:19 -05:00
Wayne Witzel III
9ddabeff83
flake8 fixups
2016-02-08 10:32:55 -05:00
Wayne Witzel III
0ab11e53dd
refactoring activity_stream functional tests
2016-02-05 21:38:48 -05:00
Akita Noek
d5740408e9
Addd inventory fixture
2016-02-05 16:59:22 -05:00
Wayne Witzel III
7b3f3675f8
flake8 fixes
2016-02-05 09:18:52 -05:00
Wayne Witzel III
58a603bac1
added Credential.migrate_to_rbac and tests
2016-02-05 08:47:15 -05:00
Wayne Witzel III
b903726ddb
updated organization rbac tests
2016-02-04 16:53:06 -05:00
Wayne Witzel III
896ecab031
Added rbac tests and migrations for Organization
2016-02-04 15:12:25 -05:00