ansible/test/integration
Pilou 77e01e6abc tower_role: ensure alias of "validate_certs" parameter is handled (#57518)
* tower_role: ensure alias of validate_certs is handled

* tower modules: remove tower_verify_ssl alias too

Error was:

    Failed to update role: The Tower server claims it was sent a bad request.
    GET https://tower/api/v2/projects/22/object_roles/
    Params: [('tower_verify_ssl', False), ('role_field', 'admin_role')]
    Data: None
    Response: {"detail": "Role has no field named 'tower_verify_ssl'"}

Full traceback:

    File "/tmp/ansible_tower_role_payload_7_2p0X/__main__.py", line 145, in main
      result = role.grant(**params)
    File "/usr/local/lib/python2.7/dist-packages/tower_cli/resources/role.py", line 365, in grant
      return self.role_write(fail_on_found=fail_on_found, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/tower_cli/resources/role.py", line 242, in role_write
      fail_on_multiple_results=True, **data)
    File "/usr/local/lib/python2.7/dist-packages/tower_cli/models/base.py", line 301, in read
      r = client.get(url, params=params)
    File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 546, in get
      return self.request('GET', url, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/tower_cli/api.py", line 299, in request
      kwargs.get('data', None), r.content.decode('utf8'))
2019-06-26 10:04:49 +02:00
..
host_vars
targets tower_role: ensure alias of "validate_certs" parameter is handled (#57518) 2019-06-26 10:04:49 +02:00
cloud-config-aws.ini.template
cloud-config-azure.ini.template
cloud-config-cloudscale.ini.template
cloud-config-cs.ini.template
cloud-config-gcp.ini.template
cloud-config-hcloud.ini.template
cloud-config-opennebula.ini.template
cloud-config-openshift.kubeconfig.template
cloud-config-scaleway.ini.template
cloud-config-tower.ini.template
cloud-config-vcenter.ini.template Add proxy vars to vcenter integration test config 2019-06-11 11:26:52 -04:00
cloud-config-vultr.ini.template
integration.cfg
integration_config.yml
inventory
inventory.networking.template
inventory.remote.template
inventory.winrm.template
network-integration.cfg Use stdout_callback yaml for network-integration tests (#56102) 2019-05-06 21:01:40 +05:30
target-prefixes.network
windows-integration.cfg