mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
test: various fixes for integration tests (#193)
* test: update for new locations * test(cert): fix issues with random name failing the test The variable hcloud_dns_test_domain used the random function to generate a number from 1-100. This number changed between every usage of the variable, so the test that compared the domain name of the cert to the variable kept failing, as different numbers were generated. By generating the number once and saving it into a fact, this is fixed. * test: fix issues with long resource names Server and volume names have restricted length (63 and 64 respectivly). This can cause issues when the `hcloud_prefix` is of certain length. By applying truncate, we can be sure to not reach the limit. This issue mainly happened in our internal ci, as the hcloud_prefix variable contains the hostname where the tests were running, and our hostnames are quite long.
This commit is contained in:
parent
292cdf2a05
commit
e218306028
16 changed files with 28 additions and 22 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
---
|
||||
hcloud_prefix: "tests"
|
||||
hcloud_server_name: "{{hcloud_prefix}}"
|
||||
hcloud_server_name: "{{ hcloud_prefix | truncate(45, True, '', 0) }}"
|
||||
hcloud_ssh_key_name: "{{hcloud_prefix}}"
|
||||
hcloud_ssh_key_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDnaTPfKaX1QKcRLOfr34buVLh5FhJAThI9NYB0xNdXsMd4Y0zLyyCQzHbx4eWCVZxym/s6csWSeLaAhO1GOHeAw3hQFMqf1oTBx6Y8g0pKpeotKPa/PDSUzdZF9Lc+DadtpQd8kFVHAu1Kd3zoEUnk1u6kP7I4qu4Z/6F9qBDF+M3aobiPVxdS7GwaVRW3nZu+FcQDLiBiNOjuRDyjHcDfEUkoh2SOu25RrFtGPzFu5mGmBJwotKpWAocLGfHzyn/fAHxgw3jKZVH/t+XWQFnl82Ie8yE3Z1EZ7oDkNRqFQT9AdXEQOLycTTYTQMJZpgeFTv3sAo6lPRCusiFmmLcf ci@ansible.hetzner.cloud"
|
||||
hcloud_ssh_key_fingerprint: "56:89:c4:d6:a7:4a:79:82:f4:c2:58:9c:e1:d2:2d:4e"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue