feat: test integration connection (#669)

* feat: add test integration for pi-hole

* refactor: test integration for pi-hole

* fix: multiple secrets of same type could be used for integration creation

* fix: remove integration test connection test and add mock for test-connection function

* fix: add missing onUpdateFn to mysql integration secrets

* fix: format issues

* feat: add home assistant test connection

* fix: deepsource issues

* test: add system integration tests for test connection

* fix: add before all for pulling home assistant image

* test: add unit tests for handleTestConnectionResponseAsync

* test: add unit test for testConnectionAsync

* test: add mroe tests to integration-test-connection

* fix: deepsource issues

* fix: deepsource issue

* chore: address pull request feedback
This commit is contained in:
Meier Lukas
2024-06-22 21:02:04 +02:00
committed by GitHub
parent 92afd82d22
commit f92aeba403
30 changed files with 1138 additions and 550 deletions

View File

@@ -389,7 +389,10 @@ export default {
create: "New integration",
},
testConnection: {
action: "Test connection",
action: {
create: "Test connection and create",
edit: "Test connection and save",
},
alertNotice: "The Save button is enabled once a successful connection is established",
notification: {
success: {
@@ -400,7 +403,7 @@ export default {
title: "Invalid URL",
message: "The URL is invalid",
},
notAllSecretsProvided: {
secretNotDefined: {
title: "Missing credentials",
message: "Not all credentials were provided",
},
@@ -412,6 +415,50 @@ export default {
title: "Connection failed",
message: "The connection could not be established",
},
badRequest: {
title: "Bad request",
message: "The request was malformed",
},
unauthorized: {
title: "Unauthorized",
message: "Probably wrong credentials",
},
forbidden: {
title: "Forbidden",
message: "Probably missing permissions",
},
notFound: {
title: "Not found",
message: "Probably wrong url or path",
},
internalServerError: {
title: "Internal server error",
message: "The server encountered an error",
},
serviceUnavailable: {
title: "Service unavailable",
message: "The server is currently unavailable",
},
connectionAborted: {
title: "Connection aborted",
message: "The connection was aborted",
},
domainNotFound: {
title: "Domain not found",
message: "The domain could not be found",
},
connectionRefused: {
title: "Connection refused",
message: "The connection was refused",
},
invalidJson: {
title: "Invalid JSON",
message: "The response was not valid JSON",
},
wrongPath: {
title: "Wrong path",
message: "The path is probably not correct",
},
},
},
secrets: {