Commit Graph

2540 Commits

Author SHA1 Message Date
AlanCoding
a32dd5b535 introduce summary_fields for users, showing user_capabilities 2016-08-30 14:02:57 -04:00
AlanCoding
0151967e9c selectively show POST in options for inventory sublists 2016-08-30 11:16:49 -04:00
AlanCoding
381e8aacdd more organization of access method preprocessing 2016-08-29 16:57:30 -04:00
AlanCoding
23791cb91e Merge branch 'devel' of https://github.com/ansible/ansible-tower into can_CRUD 2016-08-29 14:01:18 -04:00
AlanCoding
8f1e9bd20d fields generally working as intended now 2016-08-26 17:05:52 -04:00
AlanCoding
38879d339b flake8 fix 2016-08-26 13:57:35 -04:00
AlanCoding
e4504f789a intermediary state, not yet known to be working 2016-08-26 13:16:06 -04:00
Bill Nottingham
cb69416799 Merge pull request #3348 from wenottingham/old-ansible-branch
Remove compatiblity code for pre-1.9 Ansible versions.
2016-08-26 12:14:54 -04:00
Matthew Jones
59aed7b318 Merge pull request #3343 from ansible/ramparts_and_ha
New Development Environment Workflow && Replacing Redis with qpid/memcached
2016-08-26 09:34:19 -04:00
Bill Nottingham
c2f85d5bfb Remove compatiblity code for pre-1.9 Ansible versions. 2016-08-25 15:41:47 -04:00
Matthew Jones
dcb4959443 Initial qpid development work
* Switch base tower devel image from u14.04 to c7
* Switch container image to build python dependencies into itself
  instead of forcing it to be built on startup
* Upgrade venv pip to 8.1.2
* Neuter queue.py which was heavily tied to redis and was basically
  orphaned code
* Alter local_settings to override default cache settings and use
  memcached
* Alter local settings to refer to qpid instead of redis for celery
  broker
* Purge redis python dependencies and add qpid and memcached
* Update docker-compose to purge redis and add qpid and memcached
2016-08-24 16:23:47 -04:00
jangsutsr
8576dcda19 Remove legacy exception handling. 2016-08-24 10:58:53 -04:00
jangsutsr
c3f844cfe0 Add unit test. 2016-08-23 20:00:08 -04:00
jangsutsr
60b7309c08 Resolve extra vars display mix-up with passworded survey questions. 2016-08-22 16:33:03 -04:00
AlanCoding
e461ff0144 Merge branch '2479' of github.com:AlanCoding/ansible-tower into can_CRUD 2016-08-22 15:47:48 -04:00
AlanCoding
eddc1a8ed2 implement two methods for can_edit field for testing 2016-08-22 14:43:04 -04:00
Aaron Tan
0991e213cc Merge pull request #3252 from jangsutsr/2955_update_system_job_start_access
Update system job start access
2016-08-22 12:35:48 -04:00
Matthew Jones
8893f8278a Merge branch 'release_3.0.2' into devel
* release_3.0.2: (126 commits)
  Disable permissions tab in Credential > Edit form if Credential is private (#3288)
  Tweaked the popover text for job and skip tags on JT add/edit
  Workaround a cascade setnull polymorphic issue
  flake8
  Fixed old test expectations
  Made it so the credential organization field can't be changed
  Skip some unit tests
  Fixed org auditor visibility of team credentials
  Fix sosreport
  fix credential kind options for list
  interpret any code below 300 as success
  bail when status code is over 300
  Make CloudForms inventory_script work
  Use no_log when handling passwords
  Prevent ignored task from being displayed as failing.
  making ec2 cred optional on group->edit
  making ec2 credential optional for ec2 inventory
  Revert "Fix to ensure org auditors can see team credentials"
  Fixed team credential list to work with corrected permissions
  Making the username and password fields optional
  ...
2016-08-18 22:52:55 -04:00
Akita Noek
21d3051ec4 Include user edit/start/delete/copy capabilities to summary fields
This patch generically adds a map of capabilities that the current user
has on an object, namely can they start, delete, editor, or copy the
object. The intent is that these flags will be used by the UI to disable
buttons that do those things.

 #2479
2016-08-18 15:14:31 -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
jangsutsr
1365df3d77 Refactor unit test for robustness. 2016-08-16 09:05:17 -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
Aaron Tan
01588af5ac Merge pull request #3219 from jangsutsr/typo_fix
Fix a minor typo in job events model and restructure a bit to fix 500 error.
2016-08-08 14:29:48 -04:00
Aaron Tan
a2093e3e13 Fix a minor typo in job events model and restructure a bit to fix 500 error. 2016-08-08 13:41:59 -04:00
AlanCoding
6559118f40 tests for saving survey passwords to job 2016-08-08 13:06:07 -04:00
Chris Church
3bb14e2f72 Clear cache between tests or when license is updated. 2016-08-08 11:59:55 -04:00
Chris Church
891e06d6ef Add config for using Redis as cache, add memoize function to store results in cache. 2016-08-08 11:58:54 -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
Wayne Witzel III
c5b005fd35 refactor start_event_queryset into model 2016-08-03 15:37:40 -04:00
AlanCoding
d6c4c12c32 add API test coverage for empty tags and skip_tags 2016-08-02 10:43:51 -04:00
Wayne Witzel III
720eb8d6fb adding more credential parsing coverage 2016-08-02 10:39:16 -04:00
Wayne Witzel III
da0b8ad2ff moving from old to unit folder 2016-08-02 10:39:02 -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
Matthew Jones
572f62e22a Merge branch 'stable' into devel
* stable: (30 commits)
  Remove ansible-tower.repo during packer cleanup
  Update package changelogs
  Enable SE boolean httpd_execmem
  Check that venv is activated before loading wsgi app (#3148)
  also limit creation of system auditors to superusers
  Make check for idle session more specific
  Use foreman.id instead
  flake8 fixups
  fixing tests for new team role assignment restrictions
  driveby cleanup
  do not allow assignment of system roles or user.admin_role to teams
  Add copyright back with utf-8 encoding
  Complete Sat6 integration
  Force requests to emit application/json
  fix issue with rbac_migrations logger
  Enable software collections repo on RHEL 6 + RHSM
  Fixed credential migration issue involving null inventory fields in job templates
  Allow instant cancel for new jobs
  Show new jobs in UI Jobs tab
  use existing logging infrastructure
  ...
2016-08-01 11:51:26 -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