fix(apigateway): report RestApi as available (#2816)

This commit is contained in:
BingEdward authored and GitHub committed 2026-08-31 11:31:28 -04:00
1 parent 968ff78e25
commit 62dbd9ddf9
2 files changed
+4 -1

No files matched your search

@@ -1908,6 +1908,7 @@ public class ApiGatewayController {
node.put("name", api.getName());
if (api.getDescription() != null) node.put("description", api.getDescription());
node.put("createdDate", api.getCreatedDate());
node.put("apiStatus", "AVAILABLE");
if (api.getTags() != null && !api.getTags().isEmpty()) {
ObjectNode tagsNode = objectMapper.createObjectNode();
api.getTags().forEach(tagsNode::put);
@@ -35,6 +35,7 @@ class ApiGatewayIntegrationTest {
.body("id", notNullValue())
.body("name", equalTo("test-api"))
.body("description", equalTo("Integration test API"))
.body("apiStatus", equalTo("AVAILABLE"))
.extract().path("id");
}
@@ -45,7 +46,8 @@ class ApiGatewayIntegrationTest {
.then()
.statusCode(200)
.body("id", equalTo(apiId))
.body("name", equalTo("test-api"));
.body("name", equalTo("test-api"))
.body("apiStatus", equalTo("AVAILABLE"));
}
@Test @Order(3)