Skip to content

Commit

Permalink
use collections instead of existingCollections
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Senic committed Apr 7, 2023
1 parent 0bffa5c commit e94d0b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@
"""
{
"status": {
"existingCollections": [ "events" ]
"collections": [ "events" ]
}
}
"""),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum CommandStatus {
@JsonProperty("deletedCount")
DELETED_COUNT,
/** Status for reporting existing namespaces. */
@JsonProperty("existingCollections")
@JsonProperty("collections")
EXISTING_COLLECTIONS,
/** The element has the list of inserted ids */
@JsonProperty("insertedIds")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public void happyPath() {
.post(NamespaceResource.BASE_PATH, keyspaceId.asInternal())
.then()
.statusCode(200)
.body("status.existingCollections", hasSize(1))
.body("status.existingCollections", hasItem(collection));
.body("status.collections", hasSize(1))
.body("status.collections", hasItem(collection));
}

@Test
Expand Down Expand Up @@ -116,7 +116,7 @@ public void emptyNamespace() {
.post(NamespaceResource.BASE_PATH, namespace)
.then()
.statusCode(200)
.body("status.existingCollections", hasSize(0));
.body("status.collections", hasSize(0));

// cleanup
json =
Expand Down Expand Up @@ -159,7 +159,7 @@ public void systemKeyspace() {
.post(NamespaceResource.BASE_PATH, "system")
.then()
.statusCode(200)
.body("status.existingCollections", hasSize(0));
.body("status.collections", hasSize(0));
}

@Test
Expand Down

0 comments on commit e94d0b7

Please sign in to comment.