mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
fix(apigateway): report RestApi as available (#2816)
This commit is contained in:
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);
|
||||
|
||||
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user