John Westcott IV
a9ea2523c9
Fixing linting/doc issues
2020-09-24 13:33:35 -04:00
John Westcott IV
4a4e62e035
Removing tower_application from needs_development in completeness test
2020-09-23 09:54:06 -04:00
John Westcott IV
cb1ba9e3a4
Fixing zuul issues
2020-09-23 09:03:03 -04:00
John Westcott IV
c5df37777b
Addig tests and updating minor module bugs
2020-09-22 15:22:35 -04:00
John Westcott IV
baa00bd582
Truthy strikes again
2020-09-17 07:51:01 -04:00
John Westcott IV
ee3a90d193
Adding example of specifying connection info
2020-09-16 14:52:41 -04:00
John Westcott IV
24bdbd8c58
Fixing issue with lookup plugin not able to load host, user, etc
2020-09-16 14:41:04 -04:00
John Westcott IV
570251dc3d
Modifying get_item_name to handle a None object
2020-09-08 15:28:57 -04:00
John Westcott IV
faa33efdd2
Fixing registered name
2020-09-08 15:28:37 -04:00
John Westcott IV
09b8f82bbb
Fixing test issue and 'modornizing' test
2020-09-08 15:28:21 -04:00
John Westcott IV
4c0e288fee
Touching up to missing sport of get_one returning multiple params
2020-09-08 13:38:44 -04:00
John Westcott IV
c2cfaec7d1
Fixing name -> username
2020-09-08 11:52:53 -04:00
John Westcott IV
d6f35a71d7
Adding allow_unknown option for get_item_name
2020-09-08 11:51:47 -04:00
John Westcott IV
6467d34445
Touching up tower_inventory_source after rebase
2020-09-08 11:36:33 -04:00
John Westcott IV
0a8db586d1
Changing how get_one returns
2020-09-08 11:10:18 -04:00
John Westcott IV
106157c600
get_one now also returns the name field, and modifying modules for get_one and added in some IDs in a handful of unit tests
2020-09-08 11:06:01 -04:00
John Westcott IV
4c4d6dad49
Adding get_item_name and making static methods
2020-09-08 11:03:10 -04:00
John Westcott IV
24ec129235
Modifying credential for new get_one
2020-09-08 11:03:10 -04:00
John Westcott IV
5042ad3a2b
Updating user module for new get_one
2020-09-08 11:03:10 -04:00
John Westcott IV
51959b29de
Adding name_or_id to get_one to make module more uniform
2020-09-08 11:03:10 -04:00
John Westcott IV
5f29b4bc18
Fixing typo
2020-09-01 13:17:24 -04:00
John Westcott IV
d01f2d6caf
Converting policy_instance_list from dict to list
2020-09-01 11:02:39 -04:00
John Westcott IV
36ab0dd03e
Fixing white spaces
2020-09-01 09:24:36 -04:00
John Westcott IV
72bdd17518
Fixing regression
2020-08-31 16:56:42 -04:00
John Westcott IV
574c3b65b2
Converting from string to array
2020-08-31 16:56:42 -04:00
John Westcott IV
5a8bcd357b
Fixing linting issues
2020-08-31 16:56:42 -04:00
John Westcott IV
1bd8f4ad3e
Removing tower_instance_group from completness
2020-08-31 16:56:42 -04:00
John Westcott IV
2369bcb25c
Removing forward feature needed for testing locally
2020-08-31 16:56:42 -04:00
John Westcott IV
9e29dd08fb
Adding tower_instance_group module
2020-08-31 16:56:42 -04:00
John Westcott IV
ff4ed64978
Cleaning up tower_notification references
2020-08-31 11:57:01 -04:00
John Westcott IV
feb9bcff4d
Adding transaction to mock requests
2020-08-28 12:43:33 -04:00
John Westcott IV
51f4aa2b48
Adding check that we are authenticated and also have a token
2020-08-28 11:04:15 -04:00
John Westcott IV
64d98a120c
Removing debugging end play
2020-08-27 09:47:48 -04:00
John Westcott IV
7afd84dc49
Resolving issue in test_completness
2020-08-26 19:50:04 -04:00
John Westcott IV
1b1a14f220
Fixing linting spacing issue
2020-08-26 19:50:04 -04:00
John Westcott IV
2690fcec31
Adding insights credential to tower_inventory
...
Fixed a spacing issue in documentation
Enhanced integration test to include a block to ensure cleanup of assets
2020-08-26 19:50:04 -04:00
John Westcott IV
2b6e4fe353
Permissions change, spell check, pep8, etc
2020-08-26 10:16:37 -04:00
John Westcott IV
b7b304eb84
Changing how we check modules
...
Options which are not in the API POST and are marked in the module as deprecated are ignored
If an option is not in the API POST but is marked as a list we assume its a relation
2020-08-26 10:16:37 -04:00
John Westcott IV
8f97109ac7
Fixing PY2 compile issues
2020-08-26 10:16:37 -04:00
John Westcott IV
730a9b25ac
Fixing pep8 and other issues
2020-08-26 10:16:37 -04:00
John Westcott IV
a36d942f67
Migrating old test_notification test to test_notification_template
2020-08-26 10:16:37 -04:00
John Westcott IV
b1ffbf1e39
Change module from tower_notification to tower_notification_template
2020-08-26 10:16:37 -04:00
John Westcott IV
f8290f0ce3
Fixing flake8 and adding more module OKs
2020-08-26 10:16:37 -04:00
John Westcott IV
41ca20dc99
Changing scm_credential to credential to match API
2020-08-26 10:16:37 -04:00
John Westcott IV
3b6152a380
Changing job_timeout to an aliase of timeout to match the API
2020-08-26 10:16:37 -04:00
John Westcott IV
1ad4c4ab86
Fixing pep8 issues
2020-08-26 10:16:37 -04:00
John Westcott IV
9353e94629
Spell checking
2020-08-26 10:16:37 -04:00
John Westcott IV
85a1233764
Adding read-only endpoint check, fixing typo, adding needs_development check
2020-08-26 10:16:37 -04:00
John Westcott IV
c2cdd8e403
Initial commit of test_completeness
2020-08-26 10:16:37 -04:00
John Westcott IV
0fd618d88b
Changing test suite and fixing user issue in tower_api
2020-08-24 17:13:21 -04:00
John Westcott IV
a5afe0214a
Trying to make AWXKIT tests not run on python2
2020-08-19 14:29:42 -04:00
John Westcott IV
b93319e359
Updating to remove auth_type since its not longer required
2020-08-19 14:27:02 -04:00
John Westcott IV
2c8c1ff595
Fixing sanity error
2020-08-19 14:14:49 -04:00
John Westcott IV
3abd77c4c0
Fixing oauth token login and making module respect token over username/password
2020-08-19 14:12:50 -04:00
John Westcott IV
a2eab45d61
Trying to gobble up logs incase there are errors
2020-08-19 14:12:50 -04:00
John Westcott IV
01e08ba0e1
Fixing exit_module -> exit_json
2020-08-19 14:12:50 -04:00
John Westcott IV
c2e0c0655b
Fixing validate-module errors
2020-08-19 14:12:50 -04:00
John Westcott IV
8688740e93
Fixing ansible pep8 issues
2020-08-19 14:12:50 -04:00
John Westcott IV
3fe61cfa4f
Fixing linting issues
2020-08-19 14:12:50 -04:00
John Westcott IV
5107f164a2
Expanding examples
2020-08-19 14:12:50 -04:00
John Westcott IV
9bf19daa5e
Another linting issue
2020-08-19 14:12:50 -04:00
John Westcott IV
f2b9bdd552
Removed default: '' and updated [] to '' per specification
2020-08-19 14:12:50 -04:00
John Westcott IV
8a0cd747e1
Fixing truthy linting issues
2020-08-19 14:12:50 -04:00
John Westcott IV
748bdbd2dd
Fix python3 Zuul error with awxkit
2020-08-19 14:12:50 -04:00
John Westcott IV
08e5dd87e6
Adding integration tests and example in import
2020-08-19 14:12:50 -04:00
John Westcott IV
40f6741474
Adding import/export awx kit features
...
Changed library structure
Origional TowerModule becomes TowerLegacyModule
TowerModule from tower_api becomes TowerAPIModule
A real base TowerModule is created in tower_module.py
A new TowerAWXKitModule is created in tower_awxkit
TowerAWXKitModule and TowerAPIModule are child classes of TowerModule
2020-08-19 14:12:50 -04:00
John Westcott IV
27676b0634
Adding RuntimeError which is returned from a connection error in awx/main/dispatch/control.py
2020-08-04 17:17:38 -04:00
John Westcott IV
222e58dd34
Adding lookup to rrule plugin test logic for new tooling
...
This change is provided with the tower_api lookup plugin because the require tower_meta module is part of this commit
2020-07-14 09:38:26 -04:00
John Westcott IV
0be7d9b21a
Removing redundant check
2020-07-14 09:38:26 -04:00
John Westcott IV
5a6c7a5788
Fixing copyrights and linting issues
2020-07-14 09:38:26 -04:00
John Westcott IV
3784f9515e
More refinement of examples
2020-07-14 09:38:26 -04:00
John Westcott IV
6638d6c2bb
Update examples
2020-07-14 09:38:26 -04:00
John Westcott IV
afbdeb5ff8
Fixing linting errors
2020-07-14 09:38:26 -04:00
John Westcott IV
381e9d2901
Reverting commit 81b192c3b0520be0897f95e2630edab295e6bf24, we should fail only if we are > max_objects
2020-07-14 09:38:26 -04:00
John Westcott IV
dd478af227
Overhaul of the testing suite
2020-07-14 09:38:26 -04:00
John Westcott IV
0424370d49
Revamp of the examples
2020-07-14 09:38:26 -04:00
John Westcott IV
1a4bb42ac5
When using return_ids send back a list of strings instead of ints.
...
When we used ints and passed this data into a nother call like:
- name: Create a job template with a looked up credential from a folded lookup
tower_job_template:
name: "{{ job_template_name }}"
credentials: >-
{{ lookup(
'awx.awx.tower_api',
'credentials',
query_params={ 'name' : credential_name },
return_ids=True,
expect_one=True,
wantlist=True
) }}
project: "{{ project_name }}"
inventory: Demo Inventory
playbook: hello_world.yml
job_type: run
state: present
register: create_jt
Ansible would raise this warning:
[WARNING]: The value 30 (type int) in a string field was converted to '30' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.
Returning a list of strings prevents that.
2020-07-14 09:38:26 -04:00
John Westcott IV
fdb008fb8c
Added note about exception if list view return is > max_objects
2020-07-14 09:38:26 -04:00
John Westcott IV
d793f0bc99
Making the count check >= instead of just >
2020-07-14 09:38:26 -04:00
John Westcott IV
a9c16a6c90
Fixing undefined variabe
2020-07-14 09:38:26 -04:00
John Westcott IV
f4454a6c93
Make tower_api a generic GET'er
2020-07-14 09:38:26 -04:00
John Westcott IV
44a3057d16
Initial fixes from github comments
2020-07-14 09:38:26 -04:00
John Westcott IV
3c02265986
Fixing doc issue
2020-07-14 09:38:26 -04:00
John Westcott IV
96ae3268a5
Fixing linting issues
2020-07-14 09:38:26 -04:00
John Westcott IV
6d626b3793
Adding tower_api and tower_get_id lookup plugins
2020-07-14 09:38:26 -04:00
John Westcott IV
f091de438e
Adding help text
2020-06-24 09:14:30 -04:00
John Westcott IV
8a25f385e4
Modifying tower credential type to include an oauth otken
2020-06-24 09:14:30 -04:00
John Westcott IV
6c6c1e8488
Adding templating of README.md file for Tower vs AWX collections
2020-06-19 09:08:54 -04:00
John Westcott IV
76dcd6d72a
Fixing scooby doo fingers
2020-06-08 07:49:58 -04:00
John Westcott IV
64846c3347
Fixing truthy issues
2020-06-08 07:09:45 -04:00
John Westcott IV
95b8bd63ea
Fixing linting issues
2020-06-08 07:06:45 -04:00
John Westcott IV
3b60529488
Fixes in testing and parameter processing
2020-06-08 06:42:33 -04:00
John Westcott IV
1f17e02fe9
Adding more documenation and added existing_token_id param
2020-06-05 16:19:23 -04:00
John Westcott IV
0e54f76f80
Fixing missing raw from merge type
2020-06-05 16:10:26 -04:00
John Westcott IV
41d0548af6
Fixing truthy linting issue
2020-06-05 13:53:20 -04:00
John Westcott IV
11da8e254d
Changing documention and fixing sanity tests
2020-06-05 13:53:20 -04:00
John Westcott IV
30346618f1
Adding more through testing of tower_oauthtoken including failure messages
2020-06-05 13:53:20 -04:00
John Westcott IV
7c88a51992
Adding more details about tower_oauthtoken parameter
2020-06-05 13:50:39 -04:00
John Westcott IV
1a0407ba50
Fixing ny -> my typos
2020-06-05 13:50:39 -04:00
John Westcott IV
1dbea4614b
Rebasing and fixing oauthtoken docs
2020-06-05 13:50:39 -04:00