Commit Graph

82 Commits

Author SHA1 Message Date
AlanCoding
b0bbeb2ca8 move credential to prompt-for mechanism 2016-04-12 17:09:25 -04:00
Akita Noek
8afa10466f Fix ad_hoc.py tests again
Credential fix
2016-03-23 12:09:04 -04:00
Chris Church
60b6b6bfea Fix job template callback view to accept URL-encoded form data. 2016-03-04 16:36:02 -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
Chris Church
cd447bed96 Social auth and SSO updates:
* Move auth backends into sso app.
* Add support for mapping social auth users into organizations and teams.
* Return social auth backends in a consistent order in the API.
* Remove custom SAML attribute mapping and use options provided by PSA.
* Add pipeline function to raise an exception if no user has been found or created; added comments on how to disable new user creation.
* Add comments for defining a custom social auth pipeline function.
2015-11-13 11:30:55 -05:00
Matthew Jones
46aa6dfabb Prevent deleting organizations on basic licenses
Plus unit tests
2015-10-12 14:52:03 -04:00
Chris Meyers
35abd0cc07 influence callback receiver single worker 2015-09-30 12:39:00 -04:00
Chris Meyers
eb8219fd9f add Auth-Token-Timeout to http headers 2015-09-23 10:30:19 -04:00
Matthew Jones
5727d722b6 Merge remote-tracking branch 'upstream/release_2.3' into devel
* upstream/release_2.3: (91 commits)
  Include python-{paramiko,ecdsa} dependencies
  Remove extra epel testing stanzas
  Unit test for ec2 credentialless inventory
  Fix issue with ec2 iam sync with no credential.
  Use the htpasswd command instead the ansible module
  Pip is no longer needed
  check local user root or not in ./configure
  Remove unneeded when check for super user addition
  Improve distro detection in setup.sh
  Fix superuser check on upgrade
  Minor improvements to setup.sh
  Remove ansible prerequisite check from configure
  Attempt to install ansible within setup.sh
  Allow munin processes to access postgres
  Move up base package dependency install
  fixes jenkins failures
  Proper flake8 fix
  fixes executing processes with correct PYTHONPATH will pickup .pth files
  Show the repo for bundled package file dump
  Proper flake8 fix
  ...
2015-09-03 15:46:10 -04:00
Matthew Jones
09f4c9fbbe Fixed job redaction for projects and unit tests 2015-08-31 16:24:38 -04:00
Chris Meyers
b0f55c832d invoke redis in a way that works on centos and ubuntu 2015-07-30 08:37:21 -04:00
Chris Meyers
456f460ed9 add path needed for unittest to find redis on centos 6.5 2015-07-29 16:16:00 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Matthew Jones
5b3b4b48c0 Fix an issue when creating scan job templates where we weren't obeying
the license flag, so folks could still create scan jobs even if they
weren't enabled by the license.  Plus Unit Tests
2015-05-28 15:59:49 -04:00
Chris Meyers
d35259c807 create enterprise license in tests 2015-05-22 15:39:40 -04:00
Chris Church
1b1d43dc59 Prevent launching ad hoc commands when license has expired. 2015-05-21 14:13:37 -04:00
Chris Meyers
dfc3ee0487 mock run_pexpect for adhoc 2015-05-18 07:30:50 -04:00
Chris Meyers
e6b7f75ad7 mock commonly slow but rarely used paths 2015-05-17 16:53:17 -04:00
Chris Meyers
11eb4d325b Merge pull request #196 from chrismeyersfsu/master
system tracking api merge conflicts resolved
2015-05-11 10:45:08 -04:00
Chris Meyers
f350f7b28e Merge branch 'system_tracking_api'
Conflicts:
	awx/fact/tests/models/fact/fact_transform.py
	awx/fact/tests/models/fact/fact_transform_pymongo.py
	awx/main/tests/commands/run_fact_cache_receiver.py
2015-05-11 10:17:52 -04:00
Chris Meyers
5ff696f708 added fact view tests
* Add related link from host to fact_versions
* Add related link from fact_versions to fact_view
2015-05-08 21:34:24 -04:00
Chris Meyers
b5ef1cd72d speedup each test case by .03 seconds 2015-05-08 21:17:38 -04:00
Chris Meyers
f6541059a3 mark license expired inventory update + tests 2015-05-04 12:51:46 -04:00
Chris Meyers
4a4b14ba98 split out job test a little bit more 2015-04-14 09:06:20 -04:00
Chris Meyers
a769af0e83 flake8 fixes 2015-04-07 09:50:35 -04:00
Chris Meyers
35e1c19fc2 do not run tests if mongodb connect fails 2015-04-07 09:50:35 -04:00
Chris Meyers
c03cef022d Implemented fact scan storage logic.
* added mongo connection logic
* added mongo dbtransform logic to allow keys with . and $
* altered tower fact scanner CacheModule to emit a message for each fact module facts (including ansible facts). Previously, seperate facts module facts were getting concatenated to each subsequent emi
* tower fact scanner CacheModule timeout set as to not hang for forever
* broke apart commands.py test
* added unit test for run_fact_cache_receiver, facts, and dbtransform
2015-04-07 09:50:35 -04:00
Matthew Jones
5ff7558cd3 Updates and fixes for unit tests on supporting ansible "become" 2015-04-02 13:38:38 -04:00
Chris Meyers
4f907c6645 make flake8 happy 2015-02-18 15:30:51 -05:00
Chris Meyers
1e871f8d7c redact survey password type values w/ tests 2015-02-18 11:37:50 -05:00
Matthew Jones
6a18a50d99 Fixing flake8 errors, this should be almost all of them! 2015-02-11 16:42:55 -05:00
Matthew Jones
9e97783b13 Fixing up more pep8 issues 2015-02-04 16:32:14 -05:00
Chris Meyers
76746e6c13 add support to get ip address from HTTP_X_FORWARDED_FOR header 2015-02-03 08:32:36 -05:00
Chris Meyers
d326aa181e added uri redaction to stdout 2015-01-30 10:18:53 -05:00
Matthew Jones
8f4cd58a5e Bulk make_projects seems to have path concat issues when forcing unicode 2014-12-15 16:22:41 -05:00
Matthew Jones
d03fe93927 Try to clean up how we invoke make_project in the unit tests 2014-12-15 15:24:45 -05:00
Matthew Jones
9e962d4d5b Fix up unicode project directory issue, with unit tests 2014-12-15 14:17:21 -05:00
Chris Church
526e4f2a2c Use unicode project path when searching for playbooks. Fixes https://trello.com/c/yJGDluu1 2014-12-03 19:10:49 -05:00
Luke Sneeringer
9dfa26fa58 Do not use ip_address on instances anymore. 2014-12-02 13:17:38 -06:00
Matthew Jones
eae8c48faa Fix up unit tests for tracking system_uuid in the settings and database 2014-11-17 14:14:07 -05:00
Luke Sneeringer
3d51b25762 Unit tests now start their own Redis. 2014-11-14 11:57:34 -06:00
Luke Sneeringer
3279f59986 Newline 2014-11-13 14:50:10 -06:00
Luke Sneeringer
8d2a011ca8 Don't commit things with NameError! 2014-11-12 12:17:38 -06:00
Luke Sneeringer
9cec5d0144 Set SYSTEM_UUID in tests. 2014-11-12 12:13:29 -06:00
Luke Sneeringer
ed34d5f469 Fix all but one unit test. 2014-11-07 14:26:31 -06:00
Matthew Jones
58b71ca9f9 Implement /launch endpoint on job template
Partial implementation of:

https://trello.com/c/7uXHs7ze/14-require-admin-to-be-able-to-run-a-job-without-a-job-template
2014-09-04 13:26:00 -04:00
Chris Church
20d76bfc91 Fix UnicodeDecodeError from pexpect when ansible-playbook output contains unicode. 2014-07-23 20:03:55 -04:00
Matthew Jones
41e1d809b5 Refactor job event collection to build and manage an internal cache of
potential parent values to reduce the number of queries to the database
2014-06-24 10:37:06 -04:00
Chris Church
3a5db149e9 Generate large test license for cloud inventory import unit tests. 2014-06-05 16:20:17 -04:00