Commit Graph
100 Commits
Author SHA1 Message Date
AlanCoding 751ca57390 Narrow function of task to be strictly role install 2020-05-19 12:30:10 -04:00
Alan Rominger 22cdc129ad Patches from tinkering with tests and default to devel version (#8)
This causes make install_collection to avoid templating the version
  so that it can still be used as-is in development
2020-05-18 08:51:39 -04:00
AlanCoding b904ad68a6 recover line deletes 2020-05-15 09:44:31 -04:00
Alan Rominger 2e2fe40d2a Add options to ovirt inventory file (#4307)
fixes schema differences from script
  add back in default groups from script
  change hostnames to reflect script
  add in some hostvars

Generally allow giving plugin options from source variables
  allows testing with insecure connection with ovirt_insecure
    this is a behavior change from the script
2020-05-11 22:45:19 -04:00
AlanCoding d825cca9f2 Unit testing of tower_schedule
Move previously integration tests of lookup plugin to unit tests
  delete all integration tests except some basic demo tests

do simple create unit test
2020-05-07 14:42:47 -04:00
AlanCoding e24c511aef Update test files for sat6 updates 2020-05-06 11:49:04 -04:00
Alan Rominger 961c5589c1 Refresh inventory collection requirements (#4296)
* Refresh inventory collection requirements

Fix bug specific to Docker development where the right folder of
  install was not specified in the setting

Add initial rhv/ovirt version for consistency

* Update unit test to ovirt name change
2020-05-05 18:22:00 -04:00
Alan Rominger 1ca29df0de Fix for schedule delete 500 from Gabe (#4290) 2020-05-05 18:11:51 -04:00
AlanCoding d54e5e5ed8 Remove defunct entry from view method return tuple 2020-05-01 14:10:14 -04:00
AlanCoding 6d1746f99c yamllint fixes 2020-05-01 11:50:01 -04:00
AlanCoding fcca0cee37 use include_tasks to make hg dependency optional 2020-05-01 10:37:37 -04:00
Alan Rominger 41014e62b7 Avoid applying galaxy settings if no user settings exist (#4262) 2020-04-27 16:15:11 -04:00
AlanCoding 8bbd2c7aaa bump collection requirements, vmware patches
New VMWare and azure were released, pick those up

Enable using of VMWare inventory plugin for Ansible 2.9

Few fixes from manual testing with VMWare
  Remove invalid properties which resulted in no hosts imported
  Add some defaults to be more consistent with script
2020-04-23 19:57:53 -04:00
AlanCoding ab703e2a32 Add feature docs and document development tooling 2020-04-22 21:41:52 -04:00
AlanCoding 8c657e210c VMWare collection ready but waiting for release
turn off use of VMWare inventory plugin for now

Attempt to roll back general migration to Ansible 2.8
  failed, kept at 2.9 because of compatibility
2020-04-22 21:40:23 -04:00
AlanCoding 68f5482c42 Update vmware implementation to new agreements 2020-04-21 22:49:20 -04:00
AlanCoding 50197c6a12 Handle custom script options of hostnames and destination variable 2020-04-18 23:30:50 -04:00
AlanCoding de0122d64e Respect the ec2 script nested groups option 2020-04-18 19:32:18 -04:00
AlanCoding fff34f7227 Make inventory non-strict for production and remove comments 2020-04-17 15:43:03 -04:00
AlanCoding e2f5aa987d Implement vmware plugin host filtering 2020-04-17 14:52:38 -04:00
AlanCoding 84d863ff9d Shorten list of VMWare inventory plugin properties
Do not include summaries

decision on vmware keyed groups

Handle first set of custom user vmware options
2020-04-16 20:56:02 -04:00
AlanCoding 47bdf86dfa Pick up collections paths in openstack inventory update prep
Update amazon.aws version

Update vmware to new release

Pin some more tests due to transitioning to inventory plugins

Remove more temporary hacks
2020-04-16 20:56:02 -04:00
AlanCoding c3f2b3e44d bump versions of Galaxy collection requirements
Implement 2.9 version policy

Update ec2 collection name

Enable ovirt, refresh test files

Put in upstream forks to get it running for now

pick up openstack.cloud fix
2020-04-16 20:56:01 -04:00
AlanCoding 99ae614a63 Vmware was published
implement vmware inventory plugin

Enable the previously broken properties
2020-04-16 20:56:00 -04:00
AlanCoding fcf75af6a7 Get current cloud sources working from collection
update test data files

Adopt official vendor location

openstack not published yet

Add collections to show paths

Add collections loc to installer settings

Add vendored collections to show path again
2020-04-16 20:55:59 -04:00
AlanCoding a79f2ff07a Update AWX collection docs for release 11.0.0 2020-04-14 12:06:26 -04:00
AlanCoding fd93964953 Changed status tweaks for API validation and encryption
API validation topic:
 - do not set changed=True if the object did not actually change
 - deals with cases where API manipulates data before saving

Warn if encrypted data prevent accurate changed status

Handle false changed case of tower_user password
  password field not present in data

Test changed=True warning with JT/WFJT survey spec defaults
  case for list data in JSON
2020-04-09 09:58:12 -04:00
AlanCoding 0e8f2307fc Remove tower-cli from Zuul CI for AWX collection 2020-04-07 13:31:06 -04:00
AlanCoding bcfd2d6aa4 Silence deprecation warnings from tower_credential 2020-04-07 13:24:34 -04:00
AlanCoding 45df5ba9c4 Manually document tower host default 2020-04-07 10:18:55 -04:00
AlanCoding b90a296d41 Document and align the env var for OAuth token 2020-04-07 10:00:02 -04:00
AlanCoding da661e45ae Remove unnecessary module parameters
remove cases of required=False, the default
remove str type specifier which, the default
remove supports check mode, not changeable
2020-04-06 22:08:41 -04:00
AlanCoding 3f64768ba8 loosen some credential test assertions 2020-04-06 10:11:18 -04:00
AlanCoding dbe3863b04 Allow setting identifier for approval nodes 2020-04-03 15:33:57 -04:00
AlanCoding e99500cf16 Mark test as xfail, move to unit testing 2020-04-02 14:48:33 -04:00
AlanCoding ac474e2108 Fix RBAC loose items from reversed decision on JT org permissions 2020-04-02 10:17:04 -04:00
AlanCoding 15036ff970 Add unit tests for notification module 2020-04-02 09:14:50 -04:00
AlanCoding 059e744774 Address errors with login and logout in python2
Addresses scenarios when username and password
  were used and collection obtained token

Fix error sendall() arg 1 must be string or buffer

Improve error handling related to authentication
  clear the query after request and before logout
  put response data in error in both cases
2020-03-30 13:48:14 -04:00
AlanCoding 703345e9d8 Add alias for group children of groups 2020-03-25 11:33:13 -04:00
AlanCoding d102b06474 Rename group-to-group field to align with API 2020-03-25 11:33:09 -04:00
AlanCoding 551fd088f5 Remove test workarounds 2020-03-24 15:42:35 -04:00
AlanCoding a72e885274 Fix bug with association on creation 2020-03-24 15:34:52 -04:00
AlanCoding 653850fa6d Remove duplicated index 2020-03-23 22:54:04 -04:00
AlanCoding 8ba4388014 Rewrite tests to use the new modules 2020-03-23 22:47:30 -04:00
AlanCoding f3e8623a21 Move workflow test target 2020-03-23 22:34:11 -04:00
AlanCoding 077461a3ef Docs touchups 2020-03-23 22:00:02 -04:00
AlanCoding 795c989a49 fix bug processing survey spec 2020-03-23 22:00:02 -04:00
AlanCoding 5e595caf5e Add workflow node identifier
Generate new modules WFJT and WFJT node
Touch up generated syntax, test new modules

Add utility method in awxkit

Fix some issues with non-name identifier in
  AWX collection module_utils

Update workflow docs for workflow node identifier

Test and fix WFJT modules survey_spec
Plug in survey spec for the new module
Handle survey spec idempotency and test

add associations for node connections
Handle node credential prompts as well

Add indexes for new identifier field

Test with unicode dragon in name
2020-03-23 22:00:00 -04:00
AlanCoding 49356236ac Add coverage from issue resolved with tower_role conversion 2020-03-22 13:43:39 -04:00
AlanCoding 4ea1101477 update test assertion 2020-03-20 23:49:15 -04:00
AlanCoding 27948aa4e1 Convert tower_role to no longer use tower-cli 2020-03-20 23:28:48 -04:00
AlanCoding abdcdbca76 Add label tests and flake8 fixes 2020-03-20 20:09:08 -04:00
AlanCoding 362016c91b Fix test errors running locally with Ansible devel 2020-03-20 19:52:13 -04:00
AlanCoding f1634f092d Copy edit of backward incompatible changes 2020-03-20 19:51:24 -04:00
AlanCoding d6e94f9c6f Fix regression in tower_settings module 2020-03-19 23:03:58 -04:00
AlanCoding 558814ef3b tower_group relationships
rollback some module_utils changes
add runtime error for 404 type things
2020-03-19 13:53:08 -04:00
AlanCoding c5297b0b86 Fix sanity error 2020-03-19 08:42:07 -04:00
AlanCoding c054d7c3d7 Automatically hack sys.path to make running tests easier 2020-03-18 09:40:11 -04:00
AlanCoding ca3cf244fd Replace verify_ssl test that did not work right 2020-03-17 21:43:30 -04:00
AlanCoding ecdb353f6f Mark user password as no_log to silence warning 2020-03-17 19:49:27 -04:00
AlanCoding d9932eaf6a Add integration test 2020-03-17 19:37:30 -04:00
AlanCoding 8668f2ad46 Add workflow to tower_role 2020-03-16 22:36:27 -04:00
AlanCoding 2b5ff9a6f9 Patches to generator to better align with modules 2020-03-16 11:10:07 -04:00
AlanCoding 521cda878e Add named URL docs for uniqueness functionality 2020-03-16 10:04:18 -04:00
AlanCoding 7e6def8acc Grant org JT admin role in migration as well 2020-03-12 15:45:47 -04:00
AlanCoding aa4842aea5 Various JT.organization cleanup items
cleanup from PR review suggestions

bump migration number

fix test

revert change to old-app JT form no longer needed
2020-03-12 15:45:47 -04:00
AlanCoding 7d0b207571 Organization on JT as read-only field
Set JT.organization with value from its project

Remove validation requiring JT.organization

Undo some of the additional org definitions in tests

Revert some tests no longer needed for feature

exclude workflow approvals from unified organization field

revert awxkit changes for providing organization

Roll back additional JT creation permission requirement

Fix up more issues by persisting organization field when project is removed

Restrict project org editing, logging, and testing

Grant removed inventory org admin permissions in migration

Add special validate_unique for job templates
  this deals with enforcing name-organization uniqueness

Add back in special message where config is unknown
  when receiving 403 on job relaunch

Fix logical and performance bugs with data migration

within JT.inventory.organization make-permission-explicit migration

remove nested loops so we do .iterator() on JT queryset

in reverse migration, carefully remove execute role on JT
  held by org admins of inventory organization,
  as well as the execute_role holders

Use current state of Role model in logic, with 1 notable exception
  that is used to filter on ancestors
  the ancestor and descentent relationship in the migration model
    is not reliable
  output of this is saved as an integer list to avoid future
    compatibility errors

make the parents rebuilding logic skip over irrelevant models
  this is the largest performance gain for small resource numbers
2020-03-12 15:45:46 -04:00
AlanCoding daa9282790 Initial (editable) pass of adding JT.organization
This is the old version of this feature from 2019
  this allows setting the organization in the data sent
  to the API when creating a JT, and exposes the field
  in the UI as well

Subsequent commit changes the field from editable
  to read-only, but as of this commit, the machinery
  is not hooked up to infer it from project
2020-03-12 15:45:46 -04:00
AlanCoding bdd0b9e4d9 Add more tests for recent WFJT module issues 2020-03-12 15:45:25 -04:00
AlanCoding a1cdc07944 Print module standard out in test failure scenarios 2020-03-12 12:26:54 -04:00
AlanCoding 5c331934e2 Fix server error creating smart inventories 2020-03-10 22:00:31 -04:00
AlanCoding feef39c5cc Change test to use native list for schemas 2020-03-10 16:07:04 -04:00
AlanCoding e80843846e Modernize types of WFJT module 2020-03-10 16:07:03 -04:00
AlanCoding c073e39c69 Simplify build loop, make demo data in tests 2020-03-05 08:48:48 -05:00
AlanCoding 54b553b78c Simplify syntax for loop labels 2020-03-04 08:07:10 -05:00
AlanCoding 3e08bbeb93 Make wording on running less perscriptive and more general 2020-03-04 07:42:52 -05:00
AlanCoding 22524589e3 Employ the collection_package var in a few missing places 2020-03-03 22:19:38 -05:00
AlanCoding 85ec73bf4b Unify collection targets for install and ansible-test 2020-03-03 20:19:41 -05:00
AlanCoding 07807c2dec Fail on launch for scenario where job cannot run 2020-03-02 13:14:03 -05:00
AlanCoding 5dba49a7bc Lower level of log about skipped project update 2020-02-27 14:20:36 -05:00
AlanCoding 7b880c6552 Cancel jobs if they were deleted in the database 2020-02-27 14:12:47 -05:00
AlanCoding c5079607aa Fail early processing project factory 2020-02-26 14:21:38 -05:00
Alan Rominger 768280c9ba [last PR stuff] + Add warning if configs specified in 2 params (#5)
* Lean on API validation for tower_inventory_source arg errors

used for
 - validating needed credential is given
 - missing source_project for scm sources

* Add warning when config is specified in 2 places

Fix up unit tests, address multiple comments re: backwards compatibility, redundant methods, etc.

Update new_name and variables parameters, update unit tests
2020-02-26 09:26:55 -05:00
Alan Rominger 2e4e687d69 Optional tower cli (#3)
* Allow running tests without tower_cli

* patch up test mutability

* Fix test import error, warning mock

* flake8 error

Update documentation for non-converted modules
2020-02-26 09:26:22 -05:00
AlanCoding 866dd6b259 Make job batch size configurable, fix _by fields 2020-02-21 14:49:45 -05:00
AlanCoding 06eb1b6683 Randomize JT for each job batch
Populate some more fields just to have them populated

Include some missing ForeignKey links for data integrity

Add some more to fields from JT set
2020-02-20 22:49:11 -05:00
AlanCoding d62994ec02 Update metadata for the AWX collection 2020-02-20 22:36:55 -05:00
AlanCoding a5e3d9558f Handle case of deleted inventory 2020-02-13 08:29:52 -05:00
AlanCoding 3172176940 By default, give status code in exception representation 2020-02-11 13:08:20 -05:00
AlanCoding e59cb07064 Add wording for control message log 2020-02-11 10:01:25 -05:00
AlanCoding 0234df055d Raise errors with public galaxy setting early 2020-02-11 09:46:07 -05:00
AlanCoding 519956f779 Remove argument no longer accepted by computed fields task 2020-02-11 08:55:56 -05:00
AlanCoding 1558c6f942 Bump openstacksdk version 2020-02-05 11:31:24 -05:00
AlanCoding 3bbce18173 Remove computed fields artifacts no longer used
Remove deleted field from notification payload
2020-02-04 20:23:37 -05:00
AlanCoding d2289fe9c6 add pycurl to container images 2020-02-04 14:41:51 -05:00
AlanCoding d759aff4e9 Do not allow state where no Galaxy servers are enabled 2020-01-28 16:01:55 -05:00
AlanCoding a94b30be9f Reduce logging complexity with setting DB errors 2020-01-27 18:08:09 -05:00
AlanCoding 5db6906212 pin zipp to avoid setuptools upgrade 2020-01-20 13:39:48 -05:00
AlanCoding ceed6f8d9b Allow CTiT log level to log bulk_create lines 2020-01-20 12:41:10 -05:00
AlanCoding b0722311e8 dDo not apply distinct for series of only static fields 2020-01-16 14:36:38 -05:00