Commit Graph
699 Commits
Author SHA1 Message Date
Chris Meyers 000d26d7e3 session limit enforcement
* upon creating a new session, invalidate oldest sessions
2015-09-28 14:17:28 -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 7774b17960 Unit test for ec2 credentialless inventory 2015-09-03 14:05:17 -04:00
Matthew Jones f0a23b7ed3 Proper flake8 fix 2015-09-01 16:15:39 -04:00
Matthew Jones 4a5111308f Fix flake8 warning from tests 2015-09-01 15:23:35 -04:00
Matthew Jones 09f4c9fbbe Fixed job redaction for projects and unit tests 2015-08-31 16:24:38 -04:00
Matthew Jones 2f39393cf3 Implement fact receiver thread worker
Optionally allow processing of fact receiver messages in a worker
thread.  This works around an issue where data could take a while to
page into Mongo and cross the zmq socket timeout.
2015-08-28 10:59:52 -04:00
Chris Church 6128ab3ff4 Add an error message when running a job and trying to use an OpenSSH formatted key on an older version of OpenSSH. 2015-08-11 16:54:54 -04:00
Chris Church 2cd8e00bcf Add an error message when running a job and trying to use an OpenSSH formatted key on an older version of OpenSSH. 2015-08-11 16:30:27 -04:00
Chris Meyers dfff6b218a correctly inherit extra_vars
* inherit extra_vars from job_template
* overwrite with extra vars survey default vars
* overwrite with job extra_vars
* bypass extra_vars inherit logic for job relaunch
* with tests
2015-08-10 11:24:26 -04:00
Chris Church 001127f8bd Limit max depth when building mapping of group depths to avoid hitting recursion limit. Fixes https://trello.com/c/2zc0odvX 2015-08-06 21:31:42 -04:00
Matthew Jones 1e95ac1c54 Merge pull request #361 from cchurch/recursive_inventory
Fix inventory issues when a group is its own parent
2015-08-06 21:30:45 -04:00
Chris Church 3560e5a2eb Limit max depth when building mapping of group depths to avoid hitting recursion limit. Fixes https://trello.com/c/2zc0odvX 2015-08-06 14:59:04 -04:00
Chris Church f0010cc574 Add support for detecting encrypted openssh format private keys. Fixes https://trello.com/c/ZeVOXN5U 2015-08-05 22:03:20 -04:00
Matthew Jones 57778eb429 mock stdout unit test patch failure fix
Adjust some mock.patch behavior to match the new stdout behavior where
we need to check a file's size as well as its existence
2015-08-05 21:55:02 -04:00
Matthew Jones f20d93a274 Merge pull request #358 from cchurch/openssh_private_key_support
Support private keys in OpenSSH format
2015-08-05 19:44:56 -04:00
Matthew Jones 64c3b1ec69 Merge pull request #345 from chrismeyersfsu/fix-centos_6.5
unittest works on centos 6.5
2015-08-05 19:43:57 -04:00
Matthew Jones 14df41b47b mock stdout unit test patch failure fix
Adjust some mock.patch behavior to match the new stdout behavior where
we need to check a file's size as well as its existence
2015-08-05 10:02:07 -04:00
Chris Church b647811456 Add support for detecting encrypted openssh format private keys. Fixes https://trello.com/c/ZeVOXN5U 2015-08-04 18:59:25 -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
Chris Meyers 34ecd4e5b6 use python2.6 safe unittest2 2015-07-29 15:07:40 -04:00
Matthew Jones 874c97f748 Purge some unneeded HA unit tests 2015-07-08 14:31:02 -04:00
Chris Meyers 4669c44af9 robust check for HA environment setup 2015-06-23 11:21:00 -04:00
Chris Meyers 2b2126d8e1 create enterprise license file for fact api tests 2015-06-17 10:50:56 -04:00
Chris Meyers 686312a427 fix fact cache reciever unit tests to use inventory_id in message 2015-06-16 13:11:09 -04:00
Chris Meyers c076ba1669 flake8 2015-06-15 16:56:12 -04:00
Chris Meyers 8e3b33ee21 Added age_deleted command for support team 2015-06-15 16:06:54 -04:00
Matthew Jones d01e93535d Fixing flake8 issue 2015-06-15 09:36:04 -04:00
Matthew Jones bb7af4e916 Merge pull request #277 from matburt/fix_inventory_read_jt_rbac
Check inventory access for normal users when deciding what job templates show up in the queryset
2015-06-12 16:04:34 -04:00
Matthew Jones 5d1b27e520 Adding some job template listing unit tests and permissions to actually
make those work
2015-06-12 14:43:24 -04:00
Chris Church 4607972135 Included openstack inventory script from core + changes from some open PRs, fixes to be able to use without custom changes for tower. 2015-06-12 00:58:33 -04:00
Chris Church dfe4e0c694 Add unit test for azure inventory. 2015-06-12 00:52:57 -04:00
Chris Meyers d5b7be3f4f Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
John Mitchell 32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Chris Meyers 0c7638bdd7 associate scan runs with a particular inventory host 2015-06-11 15:14:00 -04:00
Chris Meyers df57f45baa Merge branch 'master' into fix-job_launch_credential_permissions 2015-06-08 14:40:50 -04:00
Chris Meyers 3b537c953f restrict the set of valid, explicitly supplied credentials to be ones readable by the user 2015-06-08 14:07:04 -04:00
Chris Meyers 0e866178d7 create license file that allows system tracking when running system tracking functional tests 2015-06-08 13:46:04 -04:00
Chris Meyers 16682ba830 Correctly delete facts when module isn't specified. Also made deletion algorithm more simple and memory efficient by not loading in records into memory. 2015-06-05 17:05:20 -04:00
Chris Church 77ab83eb0d Fix inventory source name to exclude replacement text, fix inventory update name to be based only on inventory and group name. Fixes https://trello.com/c/zYrHMz9S 2015-06-02 19:46:18 -04:00
Matthew Jones 7d8edd9617 Check survey license enabled when creating, updating, and starting job
templates with surveys enabled
2015-06-01 17:01:49 -04:00
Chris Church 8eb69b96d1 Set created_by and modified_by on default org to superuser (if found). Fixes https://trello.com/c/gERRKtXa 2015-05-30 16:23:12 -04:00
Chris Church 07205bcb88 Disable LDAP support when not allowed by license. 2015-05-30 16:08:19 -04:00
Chris Church a72dbe4428 Update license data to include subscription_name. Implements API part of https://trello.com/c/4IMj3H4V 2015-05-29 22:31:35 -04:00
Chris Church 79a8e541cd Revert cleanup_deleted to delete one at a time, instead of batches. 2015-05-29 14:52:16 -04:00
Matthew Jones 31d0342d41 More copyright headers for api side stuff 2015-05-29 12:10:40 -04:00
Matthew Jones b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Matthew Jones 20e85a6d34 Unit test for disallowing scan job with survey 2015-05-29 10:43:54 -04:00