Commit Graph

1220 Commits

Author SHA1 Message Date
Chris Church
6ebe45b1bd Configure Tower in Tower:
* Add separate Django app for configuration: awx.conf.
* Migrate from existing main.TowerSettings model to conf.Setting.
* Add settings wrapper to allow get/set/del via django.conf.settings.
* Update existing references to tower_settings to use django.conf.settings.
* Add a settings registry to allow for each Django app to register configurable settings.
* Support setting validation and conversion using Django REST Framework fields.
* Add /api/v1/settings/ to display a list of setting categories.
* Add /api/v1/settings/<slug>/ to display all settings in a category as a single object.
* Allow PUT/PATCH to update setting singleton, DELETE to reset to defaults.
* Add "all" category to display all settings across categories.
* Add "changed" category to display only settings configured in the database.
* Support per-user settings via "user" category (/api/v1/settings/user/).
* Support defaults for user settings via "user-defaults" category (/api/v1/settings/user-defaults/).
* Update serializer metadata to support category, category_slug and placeholder on OPTIONS responses.
* Update serializer metadata to handle child fields of a list/dict.
* Hide raw data form in browsable API for OPTIONS and DELETE.
* Combine existing licensing code into single "TaskEnhancer" class.
* Move license helper functions from awx.api.license into awx.conf.license.
* Update /api/v1/config/ to read/verify/update license using TaskEnhancer and settings wrapper.
* Add support for caching settings accessed via settings wrapper.
* Invalidate cached settings when Setting model changes or is deleted.
* Preload all database settings into cache on first access via settings wrapper.
* Add support for read-only settings than can update their value depending on other settings.
* Use setting_changed signal whenever a setting changes.
* Register configurable authentication, jobs, system and ui settings.
* Register configurable LDAP, RADIUS and social auth settings.
* Add custom fields and validators for URL, LDAP, RADIUS and social auth settings.
* Rewrite existing validator for Credential ssh_private_key to support validating private keys, certs or combinations of both.
* Get all unit/functional tests working with above changes.
* Add "migrate_to_database_settings" command to determine settings to be migrated into the database and comment them out when set in Python settings files.
* Add support for migrating license key from file to database.
* Remove database-configuable settings from local_settings.py example files.
* Update setup role to no longer install files for database-configurable settings.

f 94ff6ee More settings work.
f af4c4e0 Even more db settings stuff.
f 96ea9c0 More settings, attempt at singleton serializer for settings.
f 937c760 More work on singleton/category views in API, add code to comment out settings in Python files, work on command to migrate settings to database.
f 425b0d3 Minor fixes for sprint demo.
f ea402a4 Add support for read-only settings, cleanup license engine, get license support working with DB settings.
f ec289e4 Rename migration, minor fixmes, update setup role.
f 603640b Rewrite key/cert validator, finish adding social auth fields, hook up signals for setting_changed, use None to imply a setting is not set.
f 67d1b5a Get functional/unit tests passing.
f 2919b62 Flake8 fixes.
f e62f421 Add redbaron to requirements, get file to database migration working (except for license).
f c564508 Add support for migrating license file.
f 982f767 Add support for regex in social map fields.
2016-09-26 22:14:47 -04:00
AlanCoding
e6273ce46e Merge branch 'devel' of https://github.com/ansible/ansible-tower into wf_rbac_prompt 2016-09-26 13:19:12 -04:00
AlanCoding
2f24d28638 fix bug where user content_object has no name attribute in access_list 2016-09-26 10:35:29 -04:00
Wayne Witzel III
b1bf7332ed Merge pull request #3565 from wwitzel3/fix-3387
only allow superusers to start a job from a SystemJobTemplate
2016-09-23 10:16:49 -04:00
Wayne Witzel III
a4adda1ae7 only allow superusers to start a job from a SystemJobTemplate 2016-09-23 10:10:39 -04:00
Aaron Tan
a2247b0070 Merge pull request #3557 from jangsutsr/3344_add_extra_vars_type_verification
Refactor and patch extra vars verification.
2016-09-23 09:42:58 -04:00
Aaron Tan
33e3263310 Flake8 fixes. 2016-09-23 09:27:18 -04:00
Wayne Witzel III
1268c8e205 update authentication class in postprocess and add unit test 2016-09-23 08:22:26 -04:00
Aaron Tan
535f979fd7 Unit test added. 2016-09-22 22:34:40 -04:00
Alan Rominger
64944393d3 Merge pull request #3505 from AlanCoding/can_CRUD
Copy/edit rework
2016-09-22 11:30:10 -04:00
AlanCoding
57abd438c8 make user_capabilities validation front-loaded, try to run tests 2016-09-22 10:36:30 -04:00
AlanCoding
9acd50b8f3 inject WF node prompts into new jobs, new workflow RBAC tests 2016-09-21 16:04:43 -04:00
AlanCoding
2ffa7a91ec Workflow RBAC and prompting basic changes 2016-09-20 17:16:26 -04:00
Aaron Tan
89cbceeab8 Functional test added. 2016-09-20 11:39:44 -04:00
Wayne Witzel III
23d7e70204 update network cred ssh agent unit test with post_run_hook mock 2016-09-19 14:24:01 -04:00
Chris Church
b7a6aa01a3 Fixes to get flake8 and unit/functional tests passing. 2016-09-18 19:11:29 -04:00
AlanCoding
766dac9663 flake8 fix and re-delete test_serializers 2016-09-15 17:23:24 -04:00
AlanCoding
7ff5c40564 Merge branch 'devel' of https://github.com/ansible/ansible-tower into can_CRUD 2016-09-15 17:19:38 -04:00
Chris Meyers
7f614a53db flake8 fix 2016-09-15 15:28:55 -04:00
Chris Meyers
77cc7f9d00 functional workflow test for issue #3498 2016-09-15 15:03:08 -04:00
Chris Meyers
c3bb7521de Merge pull request #3474 from chrismeyersfsu/feature-workflows
workflows
2016-09-15 10:12:58 -04:00
Chris Meyers
32461574ae add unit tests 2016-09-13 15:24:20 -04:00
AlanCoding
8075e3876e minor flake8 fixes to rbac_display file 2016-09-13 10:07:02 -04:00
Alan Rominger
43e399df81 Merge pull request #3370 from ansible/AlanCoding-patch-3
test_credential bug fixes
2016-09-13 09:56:43 -04:00
Chris Meyers
4dc5c33442 refactor to be more testable 2016-09-12 12:19:36 -04:00
Chris Meyers
cea5ebadb7 split Node in job and job template node 2016-09-12 11:04:20 -04:00
AlanCoding
0933a91174 Merge branch 'devel' into can_CRUD 2016-09-12 08:56:47 -04:00
AlanCoding
d77dc271d8 copy/edit display test refactor, copy prefetch added 2016-09-09 15:13:48 -04:00
AlanCoding
507ba6a778 add new case in prefetch method for foreign-key roles 2016-09-08 15:03:55 -04:00
Chris Meyers
e4025a7eff flake8 fixes 2016-09-08 14:26:30 -04:00
Chris Meyers
28ec68e91b workflow dependency tests 2016-09-08 13:08:54 -04:00
Chris Meyers
cae48cfb77 instantiate db with sample workflows 2016-09-08 13:04:56 -04:00
AlanCoding
6b0df43f3b add unattach field to user and team roles list 2016-09-08 11:09:17 -04:00
AlanCoding
9da00c2d38 RBAC copy/edit displays test refactor 2016-09-07 17:08:07 -04:00
Chris Meyers
39ac2c047b launch workflows 2016-09-01 14:11:20 -04:00
Jake McDermott
f20185c113 Merge pull request #3389 from jakemcdermott/fix_role_unit_tests
fix skipped role unit tests
2016-09-01 09:44:49 -04:00
Jake McDermott
d2407b549e fix skipped role unit tests 2016-08-31 21:07:36 -04:00
Matthew Jones
f988877bae Merge branch 'stable' into devel
* stable: (24 commits)
  Updating changelogs for 3.0.2 release
  fixing deprecated_team.organization credential migration
  Fix issue when installing bundled ansible on el6
  fixed localed date stuff
  update test to check org_auditor access
  ensure team organizations are assigned to credentials
  temporarily pin the pytest version until the ldap error can be fixed
  fixed locale
  fix date locale angular scheduler
  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
  Update team admin credential migration test to current state-of-knowledge
  fix ng-toast rel, resolves #3197 (#3316)
  allow users to edit their first and last name
  Revert "Prevent ignored task from being displayed as failing."
  Revert "Modify job event save behavior"
  fixing old tests for new user creation permissions
  Clean venv on 'make clean'
  Resolve KeyError by coercing instance_id to a str
  Update cloudforms dynamic inventory
  Update foreman inventory script
  ...
2016-08-31 14:34:52 -04:00
Chris Meyers
4c876b40e4 initial models and endpoints added for workflows 2016-08-30 15:05:28 -04:00
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
Alan Rominger
5e626cfe2e test_credential bug fixes
Credential detail view was looked up with the organization's primary key. Works fine when the database arbitrarily gives them both pk=1 in a isolated test, but not a great thing to depend on.
2016-08-29 15:54:45 -04: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
jangsutsr
c3f844cfe0 Add unit test. 2016-08-23 20:00:08 -04:00
Alan Rominger
75f513e591 Merge pull request #3324 from AlanCoding/3305_test_update
Update team admin credential migration test
2016-08-23 16:40:31 -04:00
Wayne Witzel III
efa8496407 Merge pull request #3301 from wwitzel3/release_3.0.2
remove last_name and first_name from admin_only fields
2016-08-23 15:17:35 -04:00
AlanCoding
bb3e370e56 Update team admin credential migration test to current state-of-knowledge 2016-08-23 14:14:48 -04:00
Wayne Witzel III
2fb386b23c allow users to edit their first and last name 2016-08-23 09:55:00 -04:00