ansible/test/legacy/roles
Gaudenz Steinlin 4c94c6f9ba cloudscale_server: add timeout param and increase default timeout (#33088)
* Improve error message in cloudscale_server module

Fix punctuation and add the full contents of "info" to the output in
case of failed API calls. This is useful in case of connection timeouts
and other error conditions where there is no response body available.

* Increase timeouts in cloudscale_server module

Increase the timeouts to not fail in case the API calls take a bit
longer than usual. The default timeout of fetch_url is 10s which is
quite short. Increase it to 30s. The timeout for waiting for a server
change is increased as well as it calls the API in a loop. Therefore
this value should be larger than the API timeout.

* Send API parameters as JSON in cloudscale_server module

Use JSON to send the POST data to the API instead of an urlencoded
string. Urlencoding is not really a good match for some Python
datatypes.

This fixes an issue when submitting a list of SSH keys which did not get
translated properly.

* Fix typo in cloudscale_server documentation

* cloudscale_sever: Replace timeout const by api_timeout param

Replace the static TIMEOUT_API constant by a user configurable
api_timeout parameter. Also eliminate the TIMEOUT_WAIT constant by
2*api_timeout. This means that the timeout to wait for server changes is
always double the timeout for API calls.

* Use Debian 9 image for cloudscale_server tests
2017-11-22 10:30:31 +01:00
..
azure_rm_networkinterface/tasks Reorganize integration tests: 2017-09-14 07:14:30 -07:00
azure_rm_resourcegroup/tasks Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cloudscale_server cloudscale_server: add timeout param and increase default timeout (#33088) 2017-11-22 10:30:31 +01:00
cnos_backup Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_bgp Add a code-smell test for smart quotes and remove smart quotes from all files 2017-09-18 16:49:16 -07:00
cnos_command Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_conditional_command Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_conditional_template Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_ethernet Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_facts Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_image Add a code-smell test for smart quotes and remove smart quotes from all files 2017-09-18 16:49:16 -07:00
cnos_portchannel Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_rollback Add a code-smell test for smart quotes and remove smart quotes from all files 2017-09-18 16:49:16 -07:00
cnos_save Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_showrun Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_template Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_vlag Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos_vlan Reorganize integration tests: 2017-09-14 07:14:30 -07:00
ec2_elb_instance_setup Reorganize integration tests: 2017-09-14 07:14:30 -07:00
ec2_provision_instances Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_cs_action Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_cs_policy Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_cs_vserver Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_gslb_service Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_gslb_site Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_gslb_vserver Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_lb_monitor Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_lb_vserver Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_save_config Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_server Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_service Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_servicegroup Reorganize integration tests: 2017-09-14 07:14:30 -07:00
netscaler_ssl_certkey Reorganize integration tests: 2017-09-14 07:14:30 -07:00
prepare_rax_tests/defaults Reorganize integration tests: 2017-09-14 07:14:30 -07:00
prepare_tests/tasks Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_azure Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_cloudflare_dns Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_consul_acl Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_consul_inventory/tasks Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_consul_kv/tasks Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_consul_service/tasks Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_consul_session/tasks Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_ec2 Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_ec2_asg/tasks Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_ec2_eip Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_ec2_elb Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_ec2_vpc_nat_gateway Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_exoscale_dns Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gcdns Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gce Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gce_labels Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gce_mig Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gce_net Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gce_pd Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gce_tag Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gcp_glb Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gcp_healthcheck Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_gcp_url_map Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_jenkins_job Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_cbs Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_cbs_attachments Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_cdb Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_cdb_database Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_clb Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_clb_nodes Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_facts Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_identity Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_keypair Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_meta Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_network Reorganize integration tests: 2017-09-14 07:14:30 -07:00
test_rax_scaling_group Reorganize integration tests: 2017-09-14 07:14:30 -07:00
setup_ec2 Reorganize integration tests: 2017-09-14 07:14:30 -07:00
setup_sshkey Reorganize integration tests: 2017-09-14 07:14:30 -07:00