Skip to content

Commit 845a814

Browse files
Change BadRequest to NotFound error in tests (#1349)
Platform now reports `(404) Not Found` error instead of expected `(400) Bad Request` for non-existent layers. Update tests accordingly. Relates-To: OLPEDGE-2764 Signed-off-by: Andrey Kashcheev <[email protected]>
1 parent fcc0f11 commit 845a814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVersionedLayerClientTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ TEST_F(DataserviceReadVersionedLayerClientTest, GetPartitionsForInvalidLayer) {
360360
});
361361

362362
ASSERT_FALSE(partitions_response.IsSuccessful());
363-
ASSERT_EQ(olp::client::ErrorCode::BadRequest,
363+
ASSERT_EQ(olp::client::ErrorCode::NotFound,
364364
partitions_response.GetError().GetErrorCode());
365365
}
366366

@@ -625,7 +625,7 @@ TEST_F(DataserviceReadVersionedLayerClientTest, GetTileWithInvalidLayerId) {
625625
});
626626

627627
ASSERT_FALSE(data_response.IsSuccessful());
628-
ASSERT_EQ(olp::client::ErrorCode::BadRequest,
628+
ASSERT_EQ(olp::client::ErrorCode::NotFound,
629629
data_response.GetError().GetErrorCode());
630630
}
631631

0 commit comments

Comments
 (0)