Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Jun 17, 2021
1 parent a6f283a commit 71aeb18
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions tests/databases/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1909,18 +1909,32 @@ def test_validate_parameters_invalid_port_range(self, is_hostname_valid):
assert response == {
"errors": [
{
"message": "Must be greater than or equal to 0 and less than 65536.",
"error_type": "INVALID_PAYLOAD_SCHEMA_ERROR",
"message": "One or more parameters are missing: database, username",
"error_type": "CONNECTION_MISSING_PARAMETERS_ERROR",
"level": "warning",
"extra": {
"missing": ["database", "username"],
"issue_codes": [
{
"code": 1018,
"message": "Issue 1018 - One or more parameters needed to configure a database are missing.",
}
],
},
},
{
"message": "The port must be an integer between 0 and 65535 (inclusive).",
"error_type": "CONNECTION_INVALID_PORT_ERROR",
"level": "error",
"extra": {
"invalid": ["port"],
"issue_codes": [
{
"code": 1020,
"message": "Issue 1020 - The submitted payload has the incorrect schema.",
"code": 1021,
"message": "Issue 1021 - Port number is invalid.",
}
],
},
}
},
]
}

0 comments on commit 71aeb18

Please sign in to comment.