fix(emr-serverless): answer UpdateApplication with the updated application (#8369)

UpdateApplication answered {applicationId, arn, name}, while the model's
UpdateApplicationResponse is {application}, required: "Information about
the updated application". A client reading it found no application: a
KeyError in boto3, a null in the Java SDK. It now answers with the
application as GetApplication reports it, without the clientToken
storage keeps for CreateApplication's retries.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-14 17:22:54 -04:00
1 parent 0a8b6396ac
commit d5e831bd54
4 files changed
+24 -15

No files matched your search

@@ -251,8 +251,14 @@ public class EmrServerlessIntegrationTest {
.patch("/applications/" + applicationId)
.then()
.statusCode(200)
.body("applicationId", equalTo(applicationId));
// UpdateApplicationResponse: "Information about the updated application", as GetApplication's.
.body("applicationId", nullValue())
.body("application.applicationId", equalTo(applicationId))
.body("application.state", equalTo("STOPPED"))
.body("application.releaseLabel", equalTo("emr-6.7.0"))
.body("application.runtimeConfiguration[0].properties.'spark.executor.memory'", equalTo("4g"))
.body("application", not(hasKey("clientToken")));
// Verify releaseLabel and new configurations updated
givenReq()
.when()