Skip to content

Commit 64c370f

Browse files
authored
deprecate start (#553)
1 parent 375af9d commit 64c370f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

databricks_cli/sdk/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ def start_update(self, pipeline_id=None, full_refresh=None, headers=None):
14951495
_data['cause'] = 'USER_ACTION'
14961496
return self.client.perform_query(
14971497
'POST',
1498-
'/pipelines/{pipeline_id}/start'.format(pipeline_id=pipeline_id),
1498+
'/pipelines/{pipeline_id}/updates'.format(pipeline_id=pipeline_id),
14991499
data=_data,
15001500
headers=headers,
15011501
)

tests/pipelines/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_start_without_refresh(pipelines_api):
233233
expected_data = {
234234
"cause": "USER_ACTION"
235235
}
236-
client_mock.assert_called_with('POST', '/pipelines/{}/start'.format(PIPELINE_ID),
236+
client_mock.assert_called_with('POST', '/pipelines/{}/updates'.format(PIPELINE_ID),
237237
data=expected_data, headers=None)
238238

239239

@@ -245,7 +245,7 @@ def test_start_with_refresh(pipelines_api):
245245
"cause": "USER_ACTION",
246246
"full_refresh": True,
247247
}
248-
client_mock.assert_called_with('POST', '/pipelines/{}/start'.format(PIPELINE_ID),
248+
client_mock.assert_called_with('POST', '/pipelines/{}/updates'.format(PIPELINE_ID),
249249
data=expected_data, headers=None)
250250

251251

0 commit comments

Comments
 (0)