Skip to content

Commit

Permalink
fix: Repair failing integration test (#5698)
Browse files Browse the repository at this point in the history
* Fix failing integration test

* Be more specific with error message

---------

Co-authored-by: Leonardo Gama <leogama@amazon.com>
  • Loading branch information
Leo10Gama and Leonardo Gama authored Aug 3, 2023
1 parent 8b67713 commit 1af6375
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/deploy/test_deploy_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,11 @@ def test_deploy_with_invalid_config(self, template_file, config_file):

deploy_process_execute = self.run_command(deploy_command_list)
self.assertEqual(deploy_process_execute.process.returncode, 1)
self.assertIn("Error reading configuration: Unexpected character", str(deploy_process_execute.stderr))
self.assertIn(
"Unexpected character: 'm' at line 2 col 11",
str(deploy_process_execute.stderr),
"Should notify user of the parsing error.",
)

@parameterized.expand([("aws-serverless-function.yaml", "samconfig-tags-list.toml")])
def test_deploy_with_valid_config_tags_list(self, template_file, config_file):
Expand Down

0 comments on commit 1af6375

Please sign in to comment.