mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 05:06:13 +01:00
Proxmox polish strings & tests (#163361)
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
},
|
||||
"exceptions": {
|
||||
"cannot_connect": {
|
||||
"message": "An error occurred while trying to connect to the Portainer instance: {error}"
|
||||
"message": "An error occurred while trying to connect to the Proxmox VE instance: {error}"
|
||||
},
|
||||
"invalid_auth": {
|
||||
"message": "An error occurred while trying to authenticate: {error}"
|
||||
@@ -70,7 +70,7 @@
|
||||
"message": "An SSL error occurred: {error}"
|
||||
},
|
||||
"timeout_connect": {
|
||||
"message": "A timeout occurred while trying to connect to the Portainer instance: {error}"
|
||||
"message": "A timeout occurred while trying to connect to the Proxmox VE instance: {error}"
|
||||
}
|
||||
},
|
||||
"issues": {
|
||||
|
||||
@@ -47,26 +47,11 @@ async def test_all_entities(
|
||||
@pytest.mark.parametrize(
|
||||
("exception"),
|
||||
[
|
||||
(
|
||||
AuthenticationError("Invalid credentials"),
|
||||
"invalid_auth",
|
||||
),
|
||||
(
|
||||
SSLError("SSL handshake failed"),
|
||||
"ssl_error",
|
||||
),
|
||||
(
|
||||
ConnectTimeout("Connection timed out"),
|
||||
"connect_timeout",
|
||||
),
|
||||
(
|
||||
ResourceException,
|
||||
"resource_exception",
|
||||
),
|
||||
(
|
||||
requests.exceptions.ConnectionError,
|
||||
"connection_error",
|
||||
),
|
||||
(AuthenticationError("Invalid credentials")),
|
||||
(SSLError("SSL handshake failed")),
|
||||
(ConnectTimeout("Connection timed out")),
|
||||
(ResourceException),
|
||||
(requests.exceptions.ConnectionError),
|
||||
],
|
||||
ids=[
|
||||
"auth_error",
|
||||
|
||||
Reference in New Issue
Block a user