1414from databricks .sdk .service .jobs import CreateResponse
1515from databricks .sdk .service .ml import CreateExperimentResponse , ModelDatabricks
1616from databricks .sdk .service .ml import PermissionLevel as ModelPermissionLevel
17- from databricks .sdk .service .pipelines import (
18- CreatePipelineResponse ,
19- NotebookLibrary ,
20- PipelineLibrary ,
21- )
2217from databricks .sdk .service .sql import (
2318 CreateWarehouseRequestWarehouseType ,
2419 GetWarehouseResponse ,
4742
4843NUM_TEST_GROUPS = int (os .environ .get ("NUM_TEST_GROUPS" , 5 ))
4944NUM_TEST_INSTANCE_PROFILES = int (os .environ .get ("NUM_TEST_INSTANCE_PROFILES" , 3 ))
50- NUM_TEST_CLUSTERS = int (os .environ .get ("NUM_TEST_CLUSTERS" , 3 ))
5145NUM_TEST_CLUSTER_POLICIES = int (os .environ .get ("NUM_TEST_CLUSTER_POLICIES" , 3 ))
52- NUM_TEST_PIPELINES = int (os .environ .get ("NUM_TEST_PIPELINES" , 3 ))
5346NUM_TEST_JOBS = int (os .environ .get ("NUM_TEST_JOBS" , 3 ))
5447NUM_TEST_EXPERIMENTS = int (os .environ .get ("NUM_TEST_EXPERIMENTS" , 3 ))
5548NUM_TEST_MODELS = int (os .environ .get ("NUM_TEST_MODELS" , 3 ))
@@ -262,36 +255,6 @@ def instance_profiles(env: EnvironmentInfo, ws: WorkspaceClient) -> list[Instanc
262255 logger .debug ("Test instance profiles deleted" )
263256
264257
265- @pytest .fixture
266- def pipelines (env : EnvironmentInfo , ws : WorkspaceClient ) -> list [CreatePipelineResponse ]:
267- logger .debug ("Creating test DLT pipelines" )
268-
269- test_pipelines : list [CreatePipelineResponse ] = [
270- ws .pipelines .create (
271- name = f"{ env .test_uid } -test-{ i } " ,
272- continuous = False ,
273- development = True ,
274- libraries = [PipelineLibrary (notebook = NotebookLibrary (path = "/Workspace/sample-notebook" ))],
275- )
276- for i in range (NUM_TEST_PIPELINES )
277- ]
278-
279- _set_random_permissions (
280- test_pipelines ,
281- "pipeline_id" ,
282- RequestObjectType .PIPELINES ,
283- env ,
284- ws ,
285- permission_levels = [PermissionLevel .CAN_VIEW , PermissionLevel .CAN_RUN , PermissionLevel .CAN_MANAGE ],
286- )
287-
288- yield test_pipelines
289-
290- logger .debug ("Deleting test instance pools" )
291- executables = [partial (ws .pipelines .delete , p .pipeline_id ) for p in test_pipelines ]
292- Threader (executables ).run ()
293-
294-
295258@pytest .fixture
296259def jobs (env : EnvironmentInfo , ws : WorkspaceClient ) -> list [CreateResponse ]:
297260 logger .debug ("Creating test jobs" )
@@ -531,7 +494,6 @@ def workspace_objects(ws: WorkspaceClient, env: EnvironmentInfo) -> WorkspaceObj
531494@pytest .fixture
532495def verifiable_objects (
533496 cluster_policies ,
534- pipelines ,
535497 jobs ,
536498 experiments ,
537499 models ,
@@ -543,7 +505,6 @@ def verifiable_objects(
543505 (workspace_objects , "workspace_objects" , None ),
544506 (tokens , "tokens" , RequestObjectType .AUTHORIZATION ),
545507 (cluster_policies , "policy_id" , RequestObjectType .CLUSTER_POLICIES ),
546- (pipelines , "pipeline_id" , RequestObjectType .PIPELINES ),
547508 (jobs , "job_id" , RequestObjectType .JOBS ),
548509 (experiments , "experiment_id" , RequestObjectType .EXPERIMENTS ),
549510 (models , "id" , RequestObjectType .REGISTERED_MODELS ),
0 commit comments