Merge pull request #2847 from ConstantinoSchillebeeckxSimpleRose/fix/stepfunction_stop_execution

fix: stepfunction stop_execution
This commit is contained in:
Bert Blommers 2020-03-28 09:21:37 +00:00 committed by GitHub
commit c0953a229f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class Execution:
self.stop_date = None
def stop(self):
self.status = "SUCCEEDED"
self.status = "ABORTED"
self.stop_date = iso_8601_datetime_without_milliseconds(datetime.now())

View File

@ -516,7 +516,7 @@ def test_state_machine_describe_execution_after_stoppage():
description = client.describe_execution(executionArn=execution["executionArn"])
#
description["ResponseMetadata"]["HTTPStatusCode"].should.equal(200)
description["status"].should.equal("SUCCEEDED")
description["status"].should.equal("ABORTED")
description["stopDate"].should.be.a(datetime)