Alan Rominger
8de8f6dce2
Update a few dev requirements ( #15203 )
...
* Update a few dev requirements
* Fix test failures due to upgrade
* Update patterns for mocker usage
2024-05-20 23:37:02 +00:00
Ryan Petrello
c2ef0a6500
move code linting to a stricter pep8-esque auto-formatting tool, black
2021-03-23 09:39:58 -04:00
Jeff Bradberry
210517eeb1
Fix a couple of tests trivially affected by the upgrades
...
- is_anonymous may no longer be called as a method, so no need to mock it
- the message on uniqueness constraint failures has apparently changed
2019-07-12 15:11:22 -04:00
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
Ryan Petrello
28ce9b700e
replace all Job/JT relations with a single M2M credentials relation
...
Includes backwards compatibility for now-deprecated .credential,
.vault_credential, and .extra_credentials
This is a building block for multi-vault implementation and Alan's saved
launch configurations (both coming soon)
see: https://github.com/ansible/awx/issues/352
see: https://github.com/ansible/awx/issues/169
2017-11-14 12:49:12 -05:00
AlanCoding
f03b40aa50
enforce max line length of 160 characters
2017-10-11 12:38:39 -04:00
AlanCoding
41940687f1
Pass existing object references within access methods
...
This avoids re-loading objects from the database in our
chain of permission checking, wherever possible.
access.py is equiped to handle object references instead
of pk ints, and permissions.py is changed to pass those refs.
2017-09-06 16:34:00 -07:00
AlanCoding
4bb9bd5a2b
correct search terms for reverse FK fields
2017-07-21 14:16:14 -04:00
Aaron Tan
bef009659d
Add value type validation to sublist (un)attach
2017-06-15 12:24:15 -04:00
AlanCoding
14b5ab984b
new view to allow associations but no creations
2017-05-11 13:11:11 -04:00
AlanCoding
4e135bb406
add unit test to assure permission is checked
2017-01-04 14:46:23 -05:00
Aaron Tan
9e4655419e
Fix flake8 E302 errors.
2016-11-15 20:59:39 -05:00
Chris Meyers
84e02a5dd2
fix unit tests and make delete last unattach more generic
2016-06-30 14:13:19 -04:00
Chris Meyers
a57dca9786
fix delete last label disassociate
...
* Inherit from mixin first in order to overwrite next inherited class
method, unattach.
* Also, fix up test and add test to ensure correct inheritance
2016-06-29 17:19:08 -04:00
Chris Meyers
1925742da1
delete orphaned labels when jt or j deleted
2016-04-27 09:46:34 -04:00
Chris Meyers
2f18a9f2c1
delete label on last disassociate
2016-04-25 17:20:07 -04:00
Chris Meyers
a01b2913bb
mockity mock mock
2016-04-01 13:34:06 -04:00