test: do not check error messages meant for humans (#540)

##### SUMMARY

Reduce tests flakiness, as human error messages may change over time.
This commit is contained in:
Jonas L. 2024-08-01 16:09:11 +02:00 committed by GitHub
parent ee09398b85
commit 4bfd063fca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 0 additions and 14 deletions

View file

@ -373,7 +373,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "Floating IP deletion is protected"
- name: test update Floating IP delete protection - name: test update Floating IP delete protection
hetzner.hcloud.floating_ip: hetzner.hcloud.floating_ip:
@ -462,7 +461,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "Floating IP deletion is protected"
- name: test update Floating IP delete protection - name: test update Floating IP delete protection
hetzner.hcloud.floating_ip: hetzner.hcloud.floating_ip:

View file

@ -121,7 +121,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "load balancer deletion is protected"
- name: Test update delete_protection - name: Test update delete_protection
hetzner.hcloud.load_balancer: hetzner.hcloud.load_balancer:

View file

@ -100,7 +100,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "network is delete protected"
- name: Test update delete protection - name: Test update delete protection
hetzner.hcloud.network: hetzner.hcloud.network:

View file

@ -121,7 +121,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "Primary IP deletion is protected"
- name: Test update delete protection - name: Test update delete protection
hetzner.hcloud.primary_ip: hetzner.hcloud.primary_ip:

View file

@ -316,7 +316,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "server deletion is protected"
- name: test rebuild server fails if it is protected - name: test rebuild server fails if it is protected
hetzner.hcloud.server: hetzner.hcloud.server:
@ -330,7 +329,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "server rebuild is protected"
- name: test remove server protection - name: test remove server protection
hetzner.hcloud.server: hetzner.hcloud.server:
@ -588,7 +586,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "server deletion is protected"
- name: remove protection from server - name: remove protection from server
hetzner.hcloud.server: hetzner.hcloud.server:

View file

@ -14,7 +14,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "not_found" - result.failure.code == "not_found"
- result.failure.message == "firewall not-existing was not found"
- name: setup create firewalls - name: setup create firewalls
hetzner.hcloud.firewall: hetzner.hcloud.firewall:

View file

@ -35,7 +35,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "not_found" - result.failure.code == "not_found"
- result.failure.message == "server_type not-existing-server-type was not found"
- name: test create server with not existing image - name: test create server with not existing image
hetzner.hcloud.server: hetzner.hcloud.server:
@ -50,4 +49,3 @@
that: that:
- result is failed - result is failed
- result.failure.code == "not_found" - result.failure.code == "not_found"
- result.failure.message == "Image my-not-existing-image-20.04 was not found"

View file

@ -134,7 +134,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "uniqueness_error" - result.failure.code == "uniqueness_error"
- result.failure.message == "SSH key with the same fingerprint already exists"
- name: test delete ssh key - name: test delete ssh key
hetzner.hcloud.ssh_key: hetzner.hcloud.ssh_key:

View file

@ -209,7 +209,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "volume deletion is protected"
- name: test update Volume delete protection - name: test update Volume delete protection
hetzner.hcloud.volume: hetzner.hcloud.volume:
@ -256,7 +255,6 @@
that: that:
- result is failed - result is failed
- result.failure.code == "protected" - result.failure.code == "protected"
- result.failure.message == "volume deletion is protected"
- name: test update Volume delete protection - name: test update Volume delete protection
hetzner.hcloud.volume: hetzner.hcloud.volume: