Skip to content

Commit

Permalink
Fix irr_rpsl_submit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Sep 27, 2024
1 parent ad33a23 commit 5feec3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions irrd/scripts/tests/test_irr_rpsl_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
REGEX_UNRESOLVABLE = re.compile("Could not resolve")
REGEX_UNREACHABLE = re.compile("Connection refused|Cannot assign requested address")
REGEX_BAD_RESPONSE = re.compile("decoding JSON")
REGEX_NOT_FOUND = re.compile("Not found")
REGEX_NOT_ALLOWED = re.compile("Method Not Allowed")

EXIT_SUCCESS = 0
EXIT_CHANGE_FAILED = 1
Expand Down Expand Up @@ -767,7 +767,7 @@ def test_020_dash_o_noop(self):
EXIT_NETWORK_ERROR,
"using both -h and -O exits with value appropriate to -h value",
)
self.assertRegex(result.stderr, REGEX_NOT_FOUND)
self.assertRegex(result.stderr, REGEX_NOT_ALLOWED)

def test_030_empty_input_option(self):
result = Runner.run(["-u", IRRD_URL], ENV_EMPTY, RPSL_EMPTY)
Expand Down Expand Up @@ -842,6 +842,6 @@ def test_050_non_json_response(self):
self.assertEqual(
result.returncode,
EXIT_RESPONSE_ERROR,
f"Bad response URL {row[1]} exits with {EXIT_NETWORK_ERROR}",
f"Bad response URL {row[1]} exits with {EXIT_RESPONSE_ERROR}",
)
self.assertRegex(result.stderr, REGEX_BAD_RESPONSE)

0 comments on commit 5feec3c

Please sign in to comment.