There was an error while loading. Please reload this page.
executionRole
GetJobRun
1 parent 55e2fbc commit 7ffce30Copy full SHA for 7ffce30
2 files changed
moto/emrserverless/models.py
@@ -134,6 +134,10 @@ def __init__(
134
135
self.tags = tags
136
137
+ @property
138
+ def execution_role(self) -> str:
139
+ return self.execution_role_arn
140
+
141
142
class EMRServerlessBackend(BaseBackend):
143
"""Implementation of EMRServerless APIs."""
tests/test_emrserverless/test_emrserverless.py
@@ -776,6 +776,10 @@ def test_get_job_run(self):
776
assert resp["ResponseMetadata"]["HTTPStatusCode"] == 200
777
assert resp["jobRun"]["applicationId"] == app_id
778
assert resp["jobRun"]["jobRunId"] == run_id
779
+ assert re.match(
780
+ r"arn:(.*?):role/emr-serverless-role",
781
+ resp["jobRun"]["executionRole"],
782
+ )
783
784
def test_invalid_application_id(self):
785
for _, run_ids in self.job_run_lookup.items():
0 commit comments