1
0
mirror of https://github.com/ansible/tower-cli.git synced 2026-02-05 15:48:09 +01:00

22 Commits

Author SHA1 Message Date
Pierre-Louis Bonicoli
bb812d8a54 certificates test: fix compat with Python < 3.6
Error was:

    AttributeError: 'function' object has no attribute 'assert_called_once'

Thanks to Alan Rominger for this suggestion.
2019-03-19 19:13:37 +01:00
Pierre-Louis Bonicoli
ff19713e33 Ensure certificates are verified by default. 2019-02-06 03:55:41 +01:00
John Westcott IV
2853f491c9 Fixing tower-cli execution on windows 2018-06-08 15:23:54 -04:00
John Westcott IV
090da3fd3c Send/Receive feature PR
Added dependencies and related to POSSIBLE_TYPES

They are needed for the import functionality

i before e except after c

Fixed typo in receive

Added receive option

Changed classname from Destroyer to Cleaner

Added empty command

Added required=False to scm-type field.

This field is not required by the API to create a project

Removed items from export if managed_by_tower = True

Added credential_type to dependencies for a credential

This allows resoluation of a credential_type when importing a credential

Added send command

Missing __init__.py file

Added type parameter to cleaner

Send and Receive now can do json or yaml

Removed possible types, adding its items into resource objects

Changed how assets are specified for export

Added exception if nothing was passed in to process

Added all option to cleaner method

Fixed issue where properties added in the source were not caught as needed to be updated

Added send/recieve/empty docs

Updated help text for empty

Move removeEncryptedValues to common

Added deepclone of asset when determining if asset needs update

This fixed an issue when removing items in the asset that were later referenced

Fixed some issues when importing credentials

Added workflow nodes import/export

Initial commit of inventory groups/hosts/sources and fix for vault_creds in job_template

Updated API to strip off /api/vX if passed in as url

This allows you send URLs retreived from the API back into TowerCLI

Caught additional exception

If already parsed Java is passed in you could get a TypeError exception which was not caught.

Added notification types

Added workflow name to error message when extracting nodes

When this condition occurs the message is displayed but in a receive no details are present as to what workflow had the error

Added all_pages when requesting workflow_nodes

Allowed for multiple tokens to be saved in ~/.tower_cli_token.json

Added debug log if asset does not have POST options

Removed unused import and debug message

If an object does not have POST options, just return

Changed how errors are logged

Added project updates if asset was created or updated

Removed local_path from SCM based projects

Changed removal of encrypted values from asset to exported_asset

Added workflow inventory and credential resolution

Added inventory group import/export

Added additional credential types for export/import

Added options for passwords for new items

Variablized workdlow node types

Fixed workflow comparison

Spell checking

All post PR fixes for send/receive

Modified print statements for python3

Wrapped TowerCLI class in try

This should give us a better error when performing exports

Don't get source project if its None

Fixed user passwords

Moved projects before inventory

An inventory with a source from a project requires projects to be created first

Added inventory source_script resolution

Another change for comparing workflow nodes

Revert "Merge remote-tracking branch 'upstream/master'"

This reverts commit d8b0d2dbff2713a86aee4c7ca901d789b6e1d470, reversing
changes made to 87ea5d2c6118f797dd908404974e790df8e4059a.

Fixed unintended injection of documentation

Added todo

Removed comments for pull request

Removed commants on dropping format

Fixed bad merge

Updated for flake8

Added all_pages to lists

Better handeling of extra_vars

Multiple changes

Made empty take params like receive

Output of send and empty are now ansible-ish

Changed function name to python standards

Extracted 'work' into method for calling programatically

Fixed missing :

Fixed newline at end of file causing flake8 failure

removed closing #'s

Changed from passing on TypeError to continuing if not a string

Added min_value and max_value to list of known types

Changed from .prefix to .get_prefix()

Moved out touchup_extra_vars so that it applies to all asset_types

Fixed issue where tox was sending back a json_token of 'invalid' causing issues with the dict

Added missing POST endpoint

Use six for string compare
2018-03-14 13:52:04 -04:00
Ryan Petrello
8c3af6ef41 support authentication via oauth2 personal access tokens
see: https://github.com/ansible/tower-cli/issues/478
2018-03-07 15:07:51 -05:00
Ryan Petrello
e08fd58de8 remove support for old-style Tower Auth Tokens in 3.3 2018-02-28 13:29:59 -05:00
Aaron Tan
dba969f93b Migrate to API v2 2017-07-18 14:02:11 -04:00
Aaron Tan
c1c130d0d9 Spread util code files 2017-07-06 17:22:54 -04:00
Aaron Tan
61513d87c2 Implement token-based authentication. 2017-06-06 15:18:21 -04:00
Fabio Alessandro Locati
3317c834a3 Update test_api.py 2016-09-27 15:24:24 +01:00
AlanCoding
2a9c3ffa63 tests for new error and warning 2016-05-04 21:29:50 -04:00
AlanCoding
240bc19145 handle ssl corner cases with additional user message and error 2016-05-01 18:11:38 -04:00
AlanCoding
e750e2f843 code review changes 2015-10-09 15:15:30 -04:00
AlanCoding
69054b561f travis discovered a config-specific error. Tightening up specificity slowly to keep it meaningful. 2015-10-09 14:39:54 -04:00
AlanCoding
331bcf276c build test that looks for verify=False specifically, tox pass 2015-10-09 14:36:24 -04:00
AlanCoding
100097ae3e SSL error now throws error and halts program, resolve #77 2015-10-09 13:52:05 -04:00
AlanCoding
830728d2e6 Travis, tox, and primary editing for compliance to resolve #58 2015-09-28 14:35:37 -04:00
AlanCoding
3d3db0e761 features added to resolve #35, but insecure request warning on by default 2015-09-03 10:58:24 -04:00
James Laska
f683da903a Happy 2015! 2015-06-10 21:41:57 -04:00
Luke Sneeringer
7c37d8eb8e More debug logging! 2014-07-15 10:30:28 -05:00
Luke Sneeringer
027683511a Better error on bad hosts. 2014-07-11 13:33:56 -05:00
Luke Sneeringer
9eb646d31a Substantial Tower CLI update.
This commit:

  - Rehashes settings entirely, making it more system aware and
    unifying it in multiple objects to account for the need for writes
    later.
  - Rehashes the API object, making it a much smaller class, wrapping
    `requests`.
  - Adds a pluggable architecture for resources and commands, built
    on top of `click`.
  - Adds resources for most major objects in Tower, allowing for CRUD actions.
  - Adds job monitoring and cancelation.
2014-07-10 11:45:58 -05:00