Skip to content

Commit

Permalink
do not fail if parameter is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
guzzijones committed Dec 21, 2023
1 parent 98e5110 commit f351bc2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions st2api/tests/unit/controllers/v1/test_executions.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,10 +774,8 @@ def test_post_parameter_render_failed(self):
# Runner type does not expects additional properties.
execution["parameters"]["hosts"] = "{{ABSENT}}"
post_resp = self._do_post(execution, expect_errors=True)
self.assertEqual(post_resp.status_int, 400)
self.assertEqual(
post_resp.json["faultstring"], 'Dependency unsatisfied in variable "ABSENT"'
)
# we no longer fail if parameter is not found
self.assertEqual(post_resp.status_int, 201)

def test_post_parameter_validation_explicit_none(self):
execution = copy.deepcopy(LIVE_ACTION_1)
Expand Down

0 comments on commit f351bc2

Please sign in to comment.