Wayne Witzel III
fbece6bdde
Updating and adding tests for new RBAC roles
2018-02-10 02:52:26 +00:00
Wayne Witzel III
11eb99820d
Initial pass of removing RBAC deprecated fields and Permission
2017-05-02 22:38:34 -04:00
Ryan Petrello
ba259e0ad4
Introduce a new CredentialTemplate model
...
Credentials now have a required CredentialType, which defines inputs
(i.e., username, password) and injectors (i.e., assign the username to
SOME_ENV_VARIABLE at job runtime)
This commit only implements the model changes necessary to support the
new inputs model, and includes code for the credential serializer that
allows backwards-compatible support for /api/v1/credentials/; tasks.py
still needs to be updated to actually respect CredentialType injectors.
This change *will* break the UI for credentials (because it needs to be
updated to use the new v2 endpoint).
see: #5877
see: #5876
see: #5805
2017-04-21 15:42:26 -04:00
Aaron Tan
9e4655419e
Fix flake8 E302 errors.
2016-11-15 20:59:39 -05:00
Wayne Witzel III
18e4a33404
update test to check org_auditor access
2016-08-25 13:45:13 -04:00
AlanCoding
23024c8fad
Make sure org admins can see credential after migration, comment updates on related tests
...
add clause in test to verify automatic setting of org of new team credential
2016-08-24 11:36:07 -04:00
AlanCoding
bb3e370e56
Update team admin credential migration test to current state-of-knowledge
2016-08-23 14:14:48 -04:00
Akita Noek
6464f6e3d6
flake8
2016-08-16 15:54:12 -04:00
Akita Noek
91cd32d304
Fixed old test expectations
2016-08-16 15:36:07 -04:00
Akita Noek
6da6f48521
Updated tests to reflect credential access after migrations
2016-07-14 11:04:06 -04:00
AlanCoding
ddbe54f841
allow null data cases in credential can_change
2016-07-05 15:06:40 -04:00
AlanCoding
c21d560cfd
Credential can_change updates for organization related field
2016-07-05 14:04:52 -04:00
Wayne Witzel III
87ffded774
renaming Credential.owner_role -> Credential.admin_role
2016-06-24 16:55:07 -04:00
Wayne Witzel III
52b16620cd
added multi-team same credential name test
2016-06-21 16:30:06 -04:00
Wayne Witzel III
dab3440275
assert org.auditor can read org credentials
2016-06-21 16:07:47 -04:00
Wayne Witzel III
e243c8319d
fix tests with refreshes
2016-06-10 13:41:22 -04:00
Akita Noek
c7f2568c10
Fixed up some credential migration issues
2016-05-02 14:44:15 -04:00
Akita Noek
527be453a4
fix last cred test
2016-04-15 16:11:44 -04:00
Wayne Witzel III
ff3be050fa
test fixes and read_role
2016-04-15 11:56:08 -04:00
Wayne Witzel III
7098ef8da5
usage_role -> use_role
2016-04-15 11:01:08 -04:00
Akita Noek
18dea2203f
Removed unnecessary rebuild_role_ancestor_list call in a test
2016-04-12 09:55:20 -04:00
Wayne Witzel III
82b72f99ca
add rbac migration logging and reduce memory consumption
2016-03-29 17:16:26 -04:00
Wayne Witzel III
a5deb66878
deprecate Credential.team/user
2016-03-23 15:23:12 -04:00
Wayne Witzel III
6d249f38a7
Fix credential assertions and rename migration helpers
2016-03-17 15:41:46 -04:00
Wayne Witzel III
b59e960b46
Credential migration and initial tests
2016-03-17 11:21:10 -04:00
Wayne Witzel III
1d179574af
Updated Organization and Credential access
2016-03-01 15:01:33 -05:00
Akita Noek
73dc061716
Patch up our credential migration tests to undo some automatic work that needs to be done in the migration
2016-03-01 09:47:26 -05:00
Wayne Witzel III
40ec6a2da2
Fix rbac cred tests
2016-02-16 10:59:53 -05:00
Wayne Witzel III
7260c1cc0e
Added credential access tests
2016-02-15 16:32:42 -05:00
Wayne Witzel III
8cf0ba0da7
convert Credential to django migration
2016-02-08 15:54:11 -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