Chris Church
9e4fbe88b8
Fix broken tests.
2013-11-26 22:35:32 -05:00
Chris Church
a4bb433392
AC-737 Add tests for job cloud credentials in environment.
2013-11-26 22:11:26 -05:00
Chris Church
112fe089d9
AC-728 Added chain__ filter prefix.
2013-11-26 13:24:45 -05:00
Chris Church
f29809a807
AC-655 Add select_related to reduce number of queries for inventory views.
2013-11-25 15:43:56 -05:00
Chris Church
6ec1160b0f
AC-620 Change to minimize queries when adding a new job event, post process events after job has completed.
2013-11-25 11:17:47 -05:00
Matthew Jones
9038784bb6
Fix issue AC=731, make sure we initialize some of the Activity Stream information in the middleware __init__ since process_request may not be called during the request phase
2013-11-25 09:36:47 -05:00
Matthew Jones
27eb4f48b3
Make sure we cleanup task output files when delete() is called on CommonTask models
2013-11-22 11:51:38 -05:00
Chris Church
5fa228c085
AC-620 Skip deadlock test when not using PostgreSQL.
2013-11-21 19:41:02 -05:00
Chris Church
fc5c97d9ea
AC-620 Continue to update status while a task is running, so that long running tasks don't get inadvertently canceled.
2013-11-21 17:58:36 -05:00
Chris Church
b59d9b766f
AC-620 Updates to tests to create temp job output root, update tasks to write to stdout file directly instead of storing any stdout in memory.
2013-11-21 17:42:37 -05:00
Chris Church
9b49e80dc5
AC-620 Some cleanup of job events to reduce extra queries, test case to reproduce deadlocks.
2013-11-21 17:41:57 -05:00
Matthew Jones
a0fd9c5f18
Make sure we set up the JOBOUTPUT_ROOT directory for running unit tests
2013-11-21 15:47:19 -05:00
Matthew Jones
aafa020c47
Merge branch 'job_stdout_filesystem'
...
* job_stdout_filesystem:
Adding the migration and other smaller fixes so the serializer can read the right stdout property
Switch from using a interstitial serializer to defining a read property on the CommonTask model
Initial task status to file implementation
2013-11-21 14:59:46 -05:00
Matthew Jones
5c077e4370
Adding the migration and other smaller fixes so the serializer can read the right stdout property
2013-11-21 14:59:14 -05:00
Matthew Jones
9444c1185b
Switch from using a interstitial serializer to defining a read property on the CommonTask model
2013-11-21 14:21:00 -05:00
Matthew Jones
bf07c55273
Initial task status to file implementation
2013-11-21 13:53:59 -05:00
Chris Church
b0d423222c
AC-711 Fix broken test after RBAC change.
2013-11-21 11:50:33 -05:00
Chris Church
1556800c18
AC-711 Allow org admins to see all users.
2013-11-21 11:20:56 -05:00
Chris Church
f4e9b9ce64
Update async task timeouts to hopefully fix unit test that occasionally fails.
2013-11-21 11:20:56 -05:00
Chris Church
061f293b6c
AC-620 Better use of update_fields on job-related models, restrict post_save signal on jobs to only operate on inactive jobs.
2013-11-20 22:12:33 -05:00
Matthew Jones
c039fc4a1f
Remove JobHostSummary and JobEvent actions from the activity stream registry
2013-11-20 21:19:26 -05:00
Chris Church
4f46ad63db
AC-688 Fixed error adding team credential, added test.
2013-11-20 16:49:01 -05:00
Chris Church
8bf198f7ed
AC-687 Add ec2/rax region choices to inventory source options response, add validation for source_regions.
2013-11-20 15:20:01 -05:00
Matthew Jones
83950be7ea
Don't try to preserve an instance between pre- and post- middleware processing and fail sanely if we lose the activity stream instance
2013-11-20 14:02:03 -05:00
Chris Church
39ad6b0ad1
AC-686 Fix permissions for inventory source to allow org admins and users with write permissions to update.
2013-11-20 13:54:55 -05:00
Chris Church
503fc8ceb4
AC-696 Removed restriction on reassigning a credential to another user/team.
2013-11-20 10:07:39 -05:00
Matthew Jones
6f652d801a
We need to check for AnonymousUser here sine that's what Django Request Framework will return when no authentication is provided
2013-11-20 01:29:52 -05:00
Matthew Jones
4bc15a4392
More for AC-694, use the new rest framework materialized user
2013-11-20 00:43:27 -05:00
Matthew Jones
d564d73622
Fix for AC-694, we weren't saving the instance if using the cached user
2013-11-20 00:27:05 -05:00
Chris Church
b73e792b23
Example code for capturing current user from rest framework.
2013-11-20 00:25:09 -05:00
Chris Church
e4851c6e18
AC-654 Add API support for token auth using X-Auth-Token header in addition to AUthorization header, fixes issue where API requests from the UI are picking up the basic auth from an API session.
2013-11-19 23:37:19 -05:00
Chris Church
52c0a93293
Fix error views to use base REST framework template instead of admin, since admin is disabled.
2013-11-19 23:37:19 -05:00
Matthew Jones
059047ab77
Fix AC-660, resolve auth token authentication properly. Implement user instance caching so we don't constantly attempt to look up the user for multiple model operations yielding activity stream events
2013-11-19 21:39:10 -05:00
Matthew Jones
1388ad4cc0
Fix issue AC-677, field is referenced incorrectly causing exception
2013-11-19 19:50:11 -05:00
Chris Church
f7081074d0
AC-629 Fix password field used to respond to ansible-playbooks prompts.
2013-11-19 16:21:48 -05:00
Chris Church
e2e8a7e346
Fix broken tests after removing session authentication.
2013-11-19 15:25:47 -05:00
Chris Church
a25a162229
AC-170 Disable REST session auth and Django admin by default.
2013-11-19 14:45:42 -05:00
Matthew Jones
ccbef21c42
Close AC-671... cleanup/purge activity stream tables
2013-11-19 09:37:58 -05:00
Chris Church
d681d0972a
Fix RBAC for project updates.
2013-11-19 13:26:34 -05:00
Chris Church
216ab5cf41
AC-672 Fixed responding to passphrase prompts for project updates, re-added tests removed in earlier update.
2013-11-19 13:18:38 -05:00
Matthew Jones
ee44f1ea76
Fix issue AC-650... hide sensitive fields from change record in activity stream
2013-11-19 08:03:43 -05:00
Matthew Jones
812aafdfef
Implement basic RBAC for the activity stream list, temporarily remove a failing unit test due to sqlite not supporting the distinct query
2013-11-19 10:05:59 -05:00
Chris Church
11d2f76546
AC-537 Add remaining API/field validation for credentials and other objects using credentials.
...
AC-630 Added validation of cloud_credential kind on job template and job, set environment variables based on cloud credential.
AC-610 Require a credential for a cloud inventory source.
AC-457 Do not set password when using hg over ssh.
2013-11-19 02:36:36 -05:00
Chris Church
e092639eb8
Removed leftover print from debugging.
2013-11-18 22:56:53 -05:00
Chris Church
b8edfab481
Fixed unit test error caused by extra definition of ActivityStream model. Rearranged imports of signal handlers.
2013-11-18 22:54:52 -05:00
Chris Church
3d11f604a9
AC-647 Move django.db.models.Model import to (hopefully) prevent traceback.
2013-11-18 17:16:12 -05:00
Chris Church
5e5288e2d4
Fix active field in the admin.
2013-11-18 11:06:19 -05:00
Matthew Jones
adf9f40c2e
Make sure we check the instance list in the activity stream middleware so we aren't causing a storm of update events trying to attach the request user
2013-11-18 11:02:23 -05:00
Matthew Jones
6764b5857a
Move auditlog migration to 0028 for main branch merge
2013-11-18 09:21:40 -05:00
Matthew Jones
ba1a113ec3
Merge remote-tracking branch 'origin/master' into auditlog
...
* origin/master:
AC-637 Credential now requires scm_key_unlock when saving encrypted ssh_key_data.
AC-626 Removed support for prompting for password and ssh_key_unlock for scm/cloud credentials.
AC-613 Change rackspace to rax for inventory source field value.
AC-613 Change rackspace to rax for inventory source field value.
AC-624 Fix options docs for project update view.
AC-632 Fix escaping for ansible-playbook command line when also using ssh-agent.
Update CONTRIBUTING.md
AC-630 Expose cloud_credentials field for job template and job.
AC-641 Added pattern to respond to key unlock prompt for project update.
Updated all vendored third-party packages.
AC-636 Fix existing projects with scm_type=null to always use empty string. Update validation and tests to ensure None gets automatically coerced to an empty string on saving a project.
AC-633 js error fixed.
AC-633 fixed a sort of unrelated js error. The capitalize filter directive attempted to act on a 'null' input error. Added a test to ignore empty/null input.
AC-633 Fixed 'hast' typo.
AC-617 changed callback generation icon to a magic wand, which will hopefully satiate jlaska.
AC-627 Fixed password/ssh_password collision in Credentials.js form. This was also fixed in auditlog branch.
AC-628 applied credential changes made in add controller to edit controller so that credential/cloud_credential lookups display context-aware credential lists.
Moved credentials in tab order. It now follows teams and precedes projects. Based on a suggestion from jlaska.
AC-609 Fixed issue with help button not displaying correctly on 'select' pages where user can pick an existing object (i.e. users, credentials, etc) to add to a parent object.
Conflicts:
awx/api/serializers.py
awx/main/migrations/0025_v14_changes.py
2013-11-18 09:18:37 -05:00