5917 Commits

Author SHA1 Message Date
Matthew Jones
0ee12901fe Fix some notifications issues and write some tests
* Fixes some notifier merging issues
* Fixes some more unicode problems
* Implements unit tests
2016-02-29 12:30:00 -05:00
Matthew Jones
b35d7a3c6b Add notification system documentation 2016-02-24 13:26:43 -05:00
Matthew Jones
41d5393af0 Clean up flake8 related issues 2016-02-23 15:30:07 -05:00
Matthew Jones
4b1493f456 Fixing up some unicode issues 2016-02-23 15:26:29 -05:00
Matthew Jones
75ef0dd395 Implement tower ui view url on models 2016-02-23 14:19:42 -05:00
Matthew Jones
b88892be49 Sanity check and force proper types in admin check 2016-02-23 12:33:30 -05:00
Matthew Jones
050ed8a200 Proper type for in check
Still an __in for when we need to add another trigger obj
2016-02-23 12:18:31 -05:00
Matthew Jones
39c942e98b Adding migration and base notification type 2016-02-23 11:20:08 -05:00
Matthew Jones
4928badd3f Add a periodic administrative notification 2016-02-23 10:59:08 -05:00
Matthew Jones
ab3669efa9 Refactor message generator
* Job object can now control the output and generate K:V output for
  notification types that can support it
* Notifications store the body as json/dict now to encode more
  information
* Notification Type can further compose the message based on what is
  sensible for the notification type
* This will also allow customizing the message template in the future
* All notification types use sane defaults for the level of detail now
2016-02-22 17:09:36 -05:00
Matthew Jones
eb3d663d18 Support notification password field encryption
Modify encrypt_field and decrypt_field to support sub-fields under a
dictionary object.  It still uses the parent key when encrypting.
2016-02-21 23:11:17 -05:00
Matthew Jones
52974648df Notification configuration type checking 2016-02-17 16:01:54 +00:00
Matthew Jones
dde70dafec Refactor NotificationTemplate to Notifier 2016-02-17 15:18:18 +00:00
Matthew Jones
9d6739045a Implement irc notification backend 2016-02-11 15:34:27 -05:00
Matthew Jones
7abcb6e306 Add webhook notification backend 2016-02-10 17:03:57 -05:00
Matthew Jones
34ebe0a848 Pagerduty and Hipchat backends plus some cleanup 2016-02-10 15:17:11 -05:00
Matthew Jones
8db2f60405 Notification serializers, views, and tasks
* Implement concrete Notification model for notification runs
* Implement NotificationTemplate and Notification serializers and views
* Implement ancillary views
* Implement NotificationTemplate trigger m2m fields on all job templates
  via a fields mixin
* Link NotificationTemplates with an org
* Link notifications with the activity stream
* Implement Notification celery tasks
* Extend Backend field parameters to identify sender and receiver as
  parameters needed by the message and not the backend itself
* Updates to backends to better fit the django email backend model as it
  relates to Messages
* Implement success job chain task + notifications
* Implement notifications in error job chain task
2016-02-09 23:12:55 -05:00
Matthew Jones
319deffc18 Implement notification serializer and validations 2016-02-04 15:52:23 -05:00
Matthew Jones
172207cd4b Notification endpoints and url expositions
Also some changes to the footprint of the notification handler classes
2016-02-04 15:52:23 -05:00
Matthew Jones
96b0fb168f Updating makefile migration generator 2016-02-04 15:52:23 -05:00
Matthew Jones
805514990b Changes to celery tasks to support success signals
Linking in a success callback that will be invoked by our UnifiedJobs in
the case they terminate normally.  This is where we'll hook in the
success notification type.
2016-02-04 15:52:23 -05:00
Matthew Jones
7385efef35 Adding some early Notifications stubs
* A basic NotificationTemplate model class with early notification type
  definitions
* Initial implementations of the Email, Slack, and Twilio Notification
  backends using the Django email backend system
* Some dependencies thereof
2016-02-04 15:52:23 -05:00
Wayne Witzel III
6d71fe49f2 Update README.md
Added build tag to README.md
2016-02-04 14:32:40 -05:00
Wayne Witzel III
d4232eaca0 Merge pull request #534 from cchurch/django18
Django 1.8 and DRF 3.3 Support
2016-02-04 14:28:44 -05:00
John Mitchell
068b32b1b4 updates to scheduler
- form and perspective next scheduler runs are in single list form view for projects and job templates
- submit/cancel/x at top of form project panel work
2016-02-04 13:14:34 -05:00
John Mitchell
1b357d5a3e css fixes to list headers
-tags (like admin on users) are now correctly centered
-buttons on certain forms do not create header centering issues
-added lockup css for use with panel header titles
2016-02-04 13:13:28 -05:00
Wayne Witzel III
5a6dd266da Merge pull request #784 from wwitzel3/issue/616
fixing inventory bug for GCE introduced fixing #616
2016-02-03 16:04:11 -05:00
Wayne Witzel III
b82bd9404f fixing inventory bug for GCE introduced fixing #616 2016-02-03 13:25:17 -05:00
Chris Church
ab8e37eeaa Minor fixes based on comments. 2016-02-03 13:18:49 -05:00
Michael Abashian
c9ce546e4b Merge pull request #782 from mabashian/configurable-title-badge
Make title badge a configurable option in the list view
2016-02-03 11:31:23 -05:00
Michael Abashian
e9d99592cf Added the ability to pass the listTitleBadge parameter to the list generator. Passing a false flag will hide the badge in the title. This is desired on the Activity Stream. 2016-02-03 11:10:22 -05:00
Alan Rominger
1e7d734b50 Merge pull request #760 from AlanCoding/parse_fix_ubuntu
Fix scan_services parsing error with Ubuntu14.04
2016-02-03 08:35:16 -05:00
Chris Church
b08a2d1d88 Update default error pages. 2016-02-02 23:00:07 -05:00
Chris Church
4f3dea92fe Remove dev dependency on django-devserver. 2016-02-02 22:55:58 -05:00
Chris Church
60224cdbe4 Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling. 2016-02-02 17:48:04 -05:00
AlanCoding
44295c06b1 fix parsing error with Ubuntu14.04 2016-02-02 16:14:50 -05:00
Michael Abashian
6242df1a07 Merge pull request #766 from mabashian/activity-stream
Added activity stream route and view
2016-02-02 16:12:31 -05:00
Michael Abashian
f70cf7d2f6 Changed activitystream in the url to activity_stream to match up with the api 2016-02-02 16:01:52 -05:00
Matthew Jones
7ab839c17f Fix up another statsd formatting error 2016-02-02 14:26:17 -05:00
Alan Rominger
fb4cad9838 Merge pull request #756 from AlanCoding/624_fix2_exit_codes
Change case of partial failure to warning
2016-02-02 13:42:00 -05:00
Wayne Witzel III
cd13083ea2 Merge pull request #720 from wwitzel3/issue/616
Set GCE_ZONE source_regions
2016-02-02 10:21:37 -05:00
Matthew Jones
5d21ad5ae6 Fix up statsd work to support python 2.6
Format specifiers must include field specifier
2016-02-02 09:58:19 -05:00
Wayne Witzel III
58499175d6 Set the GCE_ZONE env variable to source_regions.
Fix when an empty key is provided and add tests for validate_ssh_private_key
2016-02-02 09:49:04 -05:00
Wayne Witzel III
3982f34392 Merge pull request #764 from wwitzel3/docker-refresh
add a docker-refresh make target
2016-02-02 09:39:56 -05:00
Wayne Witzel III
4149fda081 Merge pull request #747 from wwitzel3/tests-squash
Use py.test for collecting and running tests.
2016-02-02 09:39:04 -05:00
Wayne Witzel III
f12ab22591 functional -> old 2016-02-02 09:17:45 -05:00
Wayne Witzel III
a44318f0cd fixed check_license to work with py.test 2016-02-01 18:37:56 -05:00
Wayne Witzel III
320a5b7776 fixing tests that use inventory data 2016-02-01 18:37:56 -05:00
Wayne Witzel III
71a1547c3a fixing ad_hoc imports
flake8 fixes

Fix and add awx/api/tests

added fact tests

added proper xml reports for jenkins

added jenkins requirements and adjusted Makefile target
2016-02-01 18:37:56 -05:00
Wayne Witzel III
6eae492d28 updating commands tests
updating test imports, again

relocate base and make tests a module

added pytest config for awx/lib/site-packages

restrucuting more test imports

more test refactoring

refactoring commands tests
2016-02-01 18:37:56 -05:00