Skip to content

Commit a2ac4a5

Browse files
committed
unit test changes: url encoded values
1 parent 1bd1cdb commit a2ac4a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/workspace/test_workspace.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ TEST_F(WorkspaceApiTest, ListWorkspaceObjectsSuccess) {
8888
]
8989
})";
9090

91-
EXPECT_CALL(*mock_client_, get("/workspace/list?path=/test/path"))
91+
EXPECT_CALL(*mock_client_, get("/workspace/list?path=%2Ftest%2Fpath"))
9292
.WillOnce(Return(MockHttpClient::success_response(mock_list_response)));
9393

9494
databricks::Workspace workspace(mock_client_);
@@ -119,7 +119,7 @@ TEST_F(WorkspaceApiTest, ListEmptyWorkspaceObjectsSuccess) {
119119
"objects": []
120120
})";
121121

122-
EXPECT_CALL(*mock_client_, get("/workspace/list?path=/test/path"))
122+
EXPECT_CALL(*mock_client_, get("/workspace/list?path=%2Ftest%2Fpath"))
123123
.WillOnce(Return(MockHttpClient::success_response(mock_empty_list_response)));
124124

125125
databricks::Workspace workspace(mock_client_);
@@ -168,7 +168,7 @@ TEST_F(WorkspaceApiTest, GetStatusSuccess) {
168168
"modified_at": 1609545600000
169169
})";
170170

171-
EXPECT_CALL(*mock_client_, get("/workspace/get-status?path=/test/notebook"))
171+
EXPECT_CALL(*mock_client_, get("/workspace/get-status?path=%2Ftest%2Fnotebook"))
172172
.WillOnce(Return(MockHttpClient::success_response(mock_status_response)));
173173

174174
databricks::Workspace workspace(mock_client_);

0 commit comments

Comments
 (0)