mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
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:
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()
|
||||
|
||||
Reference in new issue
Block a user