Skip to content

Commit

Permalink
fix: update the error message in the integration testing (#5629)
Browse files Browse the repository at this point in the history
* fix: update the error message in the integration testing

* run make format

* fix unit testing
  • Loading branch information
moelasmar authored Jul 27, 2023
1 parent de43580 commit a1a1c5f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/integration/package/test_package_command_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def test_package_template_without_image_repository(self, template_file):
process.kill()
raise
process_stderr = stderr.strip()

self.assertIn("Error: Missing option '--image-repository'", process_stderr.decode("utf-8"))
self.assertIn(
"Error: Missing option '--image-repositories', '--image-repository'", process_stderr.decode("utf-8")
)
self.assertEqual(2, process.returncode)

@parameterized.expand(
Expand Down Expand Up @@ -189,7 +190,9 @@ def test_package_template_and_s3_bucket(self, template_file):
process_stderr = stderr.strip()

self.assertEqual(2, process.returncode)
self.assertIn("Error: Missing option '--image-repository'", process_stderr.decode("utf-8"))
self.assertIn(
"Error: Missing option '--image-repositories', '--image-repository'", process_stderr.decode("utf-8")
)

@parameterized.expand(["aws-serverless-application-image.yaml"])
def test_package_template_with_image_function_in_nested_application(self, template_file):
Expand Down

0 comments on commit a1a1c5f

Please sign in to comment.