Commit Graph
2515 Commits
Author SHA1 Message Date
Wayne Witzel III 2fb386b23c allow users to edit their first and last name 2016-08-23 09:55:00 -04:00
Matthew Jones 16fce59512 Revert "Modify job event save behavior" 2016-08-22 13:34:08 -04:00
Aaron Tan 871ae0f5c7 Merge pull request #3307 from jangsutsr/3199_2_change_job_event_save_behavior
Modify job event save behavior
2016-08-19 16:20:13 -04:00
James Laska 08c4c9647b Resolve KeyError by coercing instance_id to a str
Related #3300
2016-08-19 15:37:28 -04:00
James Laska 188f81ef3d Update cloudforms dynamic inventory
Pulling the latest from
https://github.com/ansible/ansible/blob/devel/contrib/inventory/cloudforms.py

Related #3168
2016-08-19 15:37:28 -04:00
jangsutsr 5b00bb14ca Modify job event save behavior 2016-08-18 18:59:33 -04:00
Akita Noek 19fbe4b7fd Merge pull request #3274 from anoek/3081
Prevent private credentials from being to assigned to teams
2016-08-17 15:57:59 -04:00
Matthew Jones 3beef1d988 Workaround a cascade setnull polymorphic issue
See: https://github.com/django-polymorphic/django-polymorphic/issues/229
2016-08-17 12:55:12 -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 9c5c09169e Made it so the credential organization field can't be changed
This makes it so the credential organizaiton field can't be changed
through the API (unless the user is a super user). This brings us into
alignment with the original intent.
2016-08-16 15:32:29 -04:00
Akita Noek fc7d2b6c4e Skip some unit tests
These tests broke because we added some additional checks that utilize
the database within the role assignment code, and because of issue
parsing or forming requets between the unit framework and the django
request code I'd guess (for some reason it looks like the `pk` field
isn't getting parsed out and handed in to the kwargs of a post method..
didn't dig into it though.)
2016-08-16 14:53:53 -04:00
Akita Noek 30451f230b Fixed org auditor visibility of team credentials
And by fix, I mean prevent us from getting into the situation that was
causing the asymetric visiblity by brining us into alignment with the
original intention and spec for how credentials were supposed behave.

 #3081
2016-08-16 14:02:09 -04:00
Alan Rominger e5a1ee8b94 Merge pull request #3215 from AlanCoding/2200_job_survey_pass
Save survey passwords in job as new field
2016-08-12 14:04:29 -04:00
Alan Rominger 95011b1aa0 Merge pull request #3235 from AlanCoding/3234_ev_survey_fix
Fix survey extra_vars processing error
2016-08-12 10:17:40 -04:00
Matthew Jones 8fcc194c82 Attempt to wait for job host summaries
Sometimes the job host summaries can land a little later after the job
has finished so sometimes events are still filtering in when the
notifications are triggered
2016-08-10 11:30:02 -04:00
AlanCoding fab0ff18d8 add unit test for survey vars as strings 2016-08-10 11:02:29 -04:00
AlanCoding a94e97366a fix error processing survey vars 2016-08-10 09:41:04 -04:00
AlanCoding 6559118f40 tests for saving survey passwords to job 2016-08-08 13:06:07 -04:00
AlanCoding 9f3d9fa78a carry over survey passwords from old relaunched job 2016-08-05 15:59:11 -04:00
AlanCoding 17ac2cee42 Put survey passwords in job field 2016-08-05 15:11:28 -04:00
AlanCoding d6c4c12c32 add API test coverage for empty tags and skip_tags 2016-08-02 10:43:51 -04:00
AlanCoding c6ecdbbfc1 remove unrelated field from ask_skip_tags_on_launch migration and update
migration and access.py changes to not conflict with other changes
2016-08-02 10:04:49 -04:00
AlanCoding 0271aa611c add field to JT for asking to skip tags 2016-08-01 16:49:34 -04:00
Akita Noek fc253e2d71 Merge pull request #3174 from anoek/3076
Allow users to post some ignored read only fields to job templates without elevated permissions
2016-08-01 15:45:02 -04:00
Alan Rominger 1352fe822d Merge pull request #3172 from AlanCoding/3118_role_read
Drop in visible_roles to RoleAccess can_read
2016-08-01 15:40:21 -04:00
Matthew Jones 3e1c0111f5 Merge branch 'api_release_3.0.1' into release_3.0.2
* api_release_3.0.1:
  add code to HostAccess can_add so the browsable API will work
  update unit tetsts
  use get_object_or_400 to fetch Role
  refactor to unit tests
  restrict User.admin_role membership changes through RoleUsersList
  fix test
  do not allow membership changes to User.admin_role
  RoleTeam and TeamRole sublist NotFound exception handling and test update
  add system job templates to the unified JT list
  Reorganize activity stream around org admin/auditors
  Allow instant cancel for new jobs
  orphan project protection in job delete access
  pass context into Job and JobList serializer classes
  pass context to unified job template subclasses
  Allow auditors to see same /api/v1/config information as admins
2016-08-01 13:23:37 -04:00
Alan Rominger d2c040439e Merge pull request #3166 from AlanCoding/3163_host_box
Allow POST box for host list to show
2016-08-01 10:12:47 -04:00
AlanCoding 5dbbaf4105 add code to HostAccess can_add so the browsable API will work 2016-07-29 12:02:40 -04:00
Wayne Witzel III b862a13d92 update unit tetsts 2016-07-29 11:30:33 -04:00
Wayne Witzel III b127e74ae4 refactor to unit tests 2016-07-29 11:29:43 -04:00
Wayne Witzel III a431ac7854 fix test 2016-07-29 11:29:39 -04:00
Wayne Witzel III 06bb8871d7 do not allow membership changes to User.admin_role 2016-07-29 11:29:36 -04:00
Alan Rominger a078254508 Merge pull request #3157 from AlanCoding/3129
Protect NotFound error in POST to TeamRoles
2016-07-28 20:20:00 -04:00
AlanCoding 1fb173b2e5 RoleTeam and TeamRole sublist NotFound exception handling and test update 2016-07-28 16:01:42 -04:00
AlanCoding 945635eb70 also limit creation of system auditors to superusers
squash
2016-07-27 17:02:08 -04:00
Alan Rominger 0c8946702c Merge pull request #3139 from AlanCoding/3096_show_sys_JT
Show system JTs in the UJT list
2016-07-27 14:21:24 -04:00
AlanCoding 1d951a7eff use same model method to determine read permission as we do in the views 2016-07-27 12:13:38 -04:00
AlanCoding e27ce600c5 add system job templates to the unified JT list 2016-07-27 10:28:53 -04:00
Wayne Witzel III a0c563e831 flake8 fixups 2016-07-26 14:50:48 -04:00
Wayne Witzel III df1464d4bf fixing tests for new team role assignment restrictions 2016-07-26 12:10:19 -04:00
Wayne Witzel III 74b013aad0 driveby cleanup 2016-07-26 12:09:58 -04:00
Wayne Witzel III 9bad20cee3 do not allow assignment of system roles or user.admin_role to teams 2016-07-26 12:09:36 -04:00
James Laska 11d68d1ebe Complete Sat6 integration
Various fixes to get sat-6 integration working.

* inventory_import.py - the inventory script is called foreman.py
* tasks.py - be sure to call `add_section()` before using it
* defaults.py - Add various SATELLITE6_* enablement variables

Relates #3119
2016-07-25 15:13:39 -04:00
Matthew Jones 60e012f75b Force requests to emit application/json
When sending webhook notifications
2016-07-25 12:46:12 -04:00
Akita Noek 94052c2b2b Fixed credential migration issue involving null inventory fields in job templates
Don't attempt to derive credential organization information from a job
template when the inventory field is null for that job template

 #3107
2016-07-22 16:44:00 -04:00
AlanCoding 94c8dfd506 Allow instant cancel for new jobs 2016-07-22 15:49:24 -04:00
Chris Meyers a1b29d8f4b Merge pull request #3087 from chrismeyersfsu/fix-migration_log
log migration to standard tower log dir
2016-07-22 13:10:42 -04:00
Chris Meyers e5b031e533 use existing logging infrastructure 2016-07-22 12:52:25 -04:00
AlanCoding 6fee46fb66 Reorganize activity stream around org admin/auditors 2016-07-22 12:50:14 -04:00