diff --git a/build.gradle b/build.gradle index c23b482444..ed0b0eb30e 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ subprojects { guavaVersion = '32.1.3-jre' slf4jVersion = '1.7.36' cassandraDriverVersion = '3.11.5' - azureCosmosVersion = '4.55.1' + azureCosmosVersion = '4.67.0' jooqVersion = '3.14.16' awssdkVersion = '2.24.0' commonsDbcp2Version = '2.11.0' diff --git a/core/src/test/java/com/scalar/db/storage/cosmos/CosmosAdminTestBase.java b/core/src/test/java/com/scalar/db/storage/cosmos/CosmosAdminTestBase.java index 677a579289..bca47df89a 100644 --- a/core/src/test/java/com/scalar/db/storage/cosmos/CosmosAdminTestBase.java +++ b/core/src/test/java/com/scalar/db/storage/cosmos/CosmosAdminTestBase.java @@ -506,14 +506,12 @@ public void truncateTable_WithExistingRecords_ShouldDeleteAllRecords() throws Ex verify(container) .queryItems( eq("SELECT t.id, t.concatenatedPartitionKey FROM " + "t"), - refEq(new CosmosQueryRequestOptions()), + any(CosmosQueryRequestOptions.class), eq(Record.class)); verify(container) - .deleteItem( - eq("id1"), refEq(new PartitionKey("p1")), refEq(new CosmosItemRequestOptions())); + .deleteItem(eq("id1"), refEq(new PartitionKey("p1")), any(CosmosItemRequestOptions.class)); verify(container) - .deleteItem( - eq("id2"), refEq(new PartitionKey("p2")), refEq(new CosmosItemRequestOptions())); + .deleteItem(eq("id2"), refEq(new PartitionKey("p2")), any(CosmosItemRequestOptions.class)); } @Test @@ -544,7 +542,7 @@ public void getNamespaceTableNames_ShouldGetTableNamesProperly() throws Executio verify(container) .queryItems( eq("SELECT * FROM metadata WHERE metadata.id LIKE 'ns.%'"), - refEq(new CosmosQueryRequestOptions()), + any(CosmosQueryRequestOptions.class), eq(CosmosTableMetadata.class)); }