diff --git a/.changes/unreleased/added-20251111-210116.yaml b/.changes/unreleased/added-20251111-210116.yaml new file mode 100644 index 000000000..208a111ed --- /dev/null +++ b/.changes/unreleased/added-20251111-210116.yaml @@ -0,0 +1,3 @@ +kind: added +body: Add new 'job run-rm' command for remove a scheduled job +time: 2025-11-11T21:01:16.593478128Z diff --git a/docs/commands/jobs/index.md b/docs/commands/jobs/index.md index 8c027fdd5..a1112d785 100644 --- a/docs/commands/jobs/index.md +++ b/docs/commands/jobs/index.md @@ -161,4 +161,22 @@ fab job run-cancel --id [--wait] --- +### run-rm + +Remove a scheduled job. + +**Usage:** + +``` +fab job run-rm --id [-f] +``` + +**Parameters:** + +- ``: Path to the resource. +- `--id`: Schedule ID to remove. +- `-f, --force`: Bypass confirmation prompt. Optional. + +--- + For more examples and detailed scenarios, see [Job Management Examples](../../examples/job_examples.md). diff --git a/src/fabric_cli/client/fab_api_jobs.py b/src/fabric_cli/client/fab_api_jobs.py index c737780ba..a333bf53d 100644 --- a/src/fabric_cli/client/fab_api_jobs.py +++ b/src/fabric_cli/client/fab_api_jobs.py @@ -89,3 +89,10 @@ def list_item_runs(args: Namespace) -> ApiResponse: args.method = "get" return fabric_api.do_request(args) + +def remove_item_schedule(args: Namespace) -> ApiResponse: + """https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/delete-item-schedule?tabs=HTTP""" + args.uri = f"workspaces/{args.ws_id}/items/{args.item_id}/jobs/{args.jobType}/schedules/{args.schedule_id}" + args.method = "delete" + + return fabric_api.do_request(args) \ No newline at end of file diff --git a/src/fabric_cli/commands/jobs/fab_jobs.py b/src/fabric_cli/commands/jobs/fab_jobs.py index d6c686be6..d19db42f3 100644 --- a/src/fabric_cli/commands/jobs/fab_jobs.py +++ b/src/fabric_cli/commands/jobs/fab_jobs.py @@ -9,6 +9,7 @@ from fabric_cli.commands.jobs import fab_jobs_run_sch as jobs_run_sch from fabric_cli.commands.jobs import fab_jobs_run_status as jobs_run_status from fabric_cli.commands.jobs import fab_jobs_run_update as jobs_run_update +from fabric_cli.commands.jobs import fab_jobs_run_rm as jobs_run_rm from fabric_cli.core import fab_handle_context as handle_context from fabric_cli.core.fab_commands import Command from fabric_cli.core.fab_decorators import handle_exceptions, set_command_context @@ -86,3 +87,13 @@ def run_update_command(args: Namespace) -> None: utils_job.add_item_props_to_args(args, context) utils_job.build_config_from_args(args, context, schedule=True) jobs_run_update.exec_command(args, context) + + +@handle_exceptions() +@set_command_context() +def run_rm_command(args: Namespace) -> None: + context = handle_context.get_command_context(args.path) + context.check_command_support(Command.JOB_RUN_RM) + assert isinstance(context, Item) + utils_job.add_item_props_to_args(args, context) + jobs_run_rm.exec_command(args, context) \ No newline at end of file diff --git a/src/fabric_cli/commands/jobs/fab_jobs_run_rm.py b/src/fabric_cli/commands/jobs/fab_jobs_run_rm.py new file mode 100644 index 000000000..74f459bd5 --- /dev/null +++ b/src/fabric_cli/commands/jobs/fab_jobs_run_rm.py @@ -0,0 +1,27 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + +import json +from argparse import Namespace + +from fabric_cli.client import fab_api_jobs as jobs_api +from fabric_cli.core import fab_constant +from fabric_cli.core.fab_exceptions import FabricCLIError +from fabric_cli.core.hiearchy.fab_hiearchy import Item +from fabric_cli.utils import fab_ui as utils_ui + + +def exec_command(args: Namespace, context: Item) -> None: + if not args.force: + utils_ui.print_warning(f"You are about to delete schedule '{args.schedule_id}' from '{context.full_name}'. This action cannot be undone.") + + if args.force or utils_ui.prompt_confirm(): + utils_ui.print_grey(f"Removing job schedule '{args.schedule_id}'... from '{context.full_name}'") + + response = jobs_api.remove_item_schedule(args) + + if response.status_code == 200: + utils_ui.print_output_format( + args, + message=f"Job schedule '{args.schedule_id}' removed", + ) \ No newline at end of file diff --git a/src/fabric_cli/core/fab_commands.py b/src/fabric_cli/core/fab_commands.py index ccc64c5fb..14f591b0c 100644 --- a/src/fabric_cli/core/fab_commands.py +++ b/src/fabric_cli/core/fab_commands.py @@ -55,6 +55,7 @@ class Command(Enum): JOB_RUN_CANCEL = "job run-cancel" JOB_RUN_LIST = "job run-list" JOB_RUN_UPDATE = "job run-update" + JOB_RUN_RM = "job run-rm" JOB_RUN_SCH = "job run-sch" JOB_RUN_STATUS = "job run-status" diff --git a/src/fabric_cli/core/fab_config/command_support.yaml b/src/fabric_cli/core/fab_config/command_support.yaml index 56e3be623..1d1478381 100644 --- a/src/fabric_cli/core/fab_config/command_support.yaml +++ b/src/fabric_cli/core/fab_config/command_support.yaml @@ -51,6 +51,7 @@ commands: run_list: run_update: run_sch: + run-rm: run_status: run_wait: diff --git a/src/fabric_cli/parsers/fab_jobs_parser.py b/src/fabric_cli/parsers/fab_jobs_parser.py index 9ed2dec14..65194516a 100644 --- a/src/fabric_cli/parsers/fab_jobs_parser.py +++ b/src/fabric_cli/parsers/fab_jobs_parser.py @@ -16,6 +16,7 @@ "run-cancel": "Cancel an item or scheduled run.", "run-list": "Retrieve the status of an item or scheduled job run.", "run-update": "Update a scheduled job.", + "run-rm": "Remove a scheduled job.", "run-sch": "Schedule a job for an item (pipelines, notebooks, and Spark job definitions).", "run-status": "Get details of an item or scheduled job run.", }, @@ -275,6 +276,43 @@ def register_parser(subparsers: _SubParsersAction) -> None: ) run_update_parser.set_defaults(func=jobs.run_update_command) + # Subcommand for 'run_rm' + rm_examples = [ + "# remove pipeline schedule", + "$ job run-rm pip1.DataPipeline --id \n", + "# remove notebook schedule", + "$ job run-rm nb1.Notebook --id \n", + "# remove Spark job definition schedule", + "$ job run-rm sjd1.SparkJobDefinition --id \n", + "# remove lakehouse schedule", + "$ job run-rm lh1.Lakehouse --id \n", + "# Force remove a scheduled job without confirmation prompt", + "$ job run-rm pip1.DataPipeline --id -f\n", + ] + + run_rm_parser = jobs_subparsers.add_parser( + "run-rm", + help="Remove a scheduled job", + fab_examples=rm_examples, + fab_learnmore=["_"], + ) + run_rm_parser.add_argument("path", nargs="+", help="Path to the item") + run_rm_parser.add_argument( + "--id", + required=True, + metavar="", + dest="schedule_id", + help="Job Schedule ID", + ) + run_rm_parser.add_argument( + "-f", + "--force", + action="store_true", + help="Force delete the schedule without confirmation. Optional", + ) + run_rm_parser.usage = f"{utils_error_parser.get_usage_prog(run_rm_parser)}" + run_rm_parser.set_defaults(func=jobs.run_rm_command) + # Subcommand for 'run_status' status_examples = [ "# Check the status of a pipeline instance job", diff --git a/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_invalid_param_types_failure.yaml b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_invalid_param_types_failure.yaml new file mode 100644 index 000000000..e3e426c12 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_invalid_param_types_failure.yaml @@ -0,0 +1,607 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "8e6c3dfa-f0b2-4911-8440-3a950c268386", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2230' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:39:45 GMT + Pragma: + - no-cache + RequestId: + - 1733e15b-924a-4b71-ab3e-77dbec96f14a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/8e6c3dfa-f0b2-4911-8440-3a950c268386/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:39:46 GMT + Pragma: + - no-cache + RequestId: + - 1cc19053-e3a4-4f19-8441-44dcaa1eea88 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/8e6c3dfa-f0b2-4911-8440-3a950c268386/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:39:46 GMT + Pragma: + - no-cache + RequestId: + - 9755ae26-7b73-40a8-82e0-61519e99ed52 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "Notebook", "description": "Imported from fab", "folderId": null, + "displayName": "fabcli000001", "definition": {"format": "ipynb", "parts": [{"path": + "notebook-content.ipynb", "payload": "ewogICAgImNlbGxzIjogWwogICAgICAgIHsKICAgICAgICAgICAgImNlbGxfdHlwZSI6ICJjb2RlIiwKICAgICAgICAgICAgImV4ZWN1dGlvbl9jb3VudCI6IG51bGwsCiAgICAgICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlIjogInB5dGhvbiIsCiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgIm91dHB1dHMiOiBbXSwKICAgICAgICAgICAgInNvdXJjZSI6IFsKICAgICAgICAgICAgICAgICIjIFdlbGNvbWUgdG8geW91ciBuZXcgbm90ZWJvb2tcbiIsCiAgICAgICAgICAgICAgICAiIyBUeXBlIGhlcmUgaW4gdGhlIGNlbGwgZWRpdG9yIHRvIGFkZCBjb2RlIVxuIiwKICAgICAgICAgICAgICAgICJmcm9tIHRpbWUgaW1wb3J0IHNsZWVwXG4iLAogICAgICAgICAgICAgICAgInNsZWVwKDEwKSIKICAgICAgICAgICAgXQogICAgICAgIH0KICAgIF0sCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgImRlcGVuZGVuY2llcyI6IHt9LAogICAgICAgICJrZXJuZWxfaW5mbyI6IHsKICAgICAgICAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgogICAgICAgIH0sCiAgICAgICAgImtlcm5lbHNwZWMiOiB7CiAgICAgICAgICAgICJkaXNwbGF5X25hbWUiOiAic3luYXBzZV9weXNwYXJrIiwKICAgICAgICAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgogICAgICAgIH0sCiAgICAgICAgImxhbmd1YWdlX2luZm8iOiB7CiAgICAgICAgICAgICJuYW1lIjogInB5dGhvbiIKICAgICAgICB9LAogICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICJsYW5ndWFnZSI6ICJweXRob24iLAogICAgICAgICAgICAibGFuZ3VhZ2VfZ3JvdXAiOiAic3luYXBzZV9weXNwYXJrIiwKICAgICAgICAgICAgIm1zX3NwZWxsX2NoZWNrIjogewogICAgICAgICAgICAgICAgIm1zX3NwZWxsX2NoZWNrX2xhbmd1YWdlIjogImVuIgogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAibnRlcmFjdCI6IHsKICAgICAgICAgICAgInZlcnNpb24iOiAibnRlcmFjdC1mcm9udC1lbmRAMS4wLjAiCiAgICAgICAgfSwKICAgICAgICAic3BhcmtfY29tcHV0ZSI6IHsKICAgICAgICAgICAgImNvbXB1dGVfaWQiOiAiL3RyaWRlbnQvZGVmYXVsdCIsCiAgICAgICAgICAgICJzZXNzaW9uX29wdGlvbnMiOiB7CiAgICAgICAgICAgICAgICAiY29uZiI6IHsKICAgICAgICAgICAgICAgICAgICAic3Bhcmsuc3luYXBzZS5uYnMuc2Vzc2lvbi50aW1lb3V0IjogIjEyMDAwMDAiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9LAogICAgIm5iZm9ybWF0IjogNCwKICAgICJuYmZvcm1hdF9taW5vciI6IDUKfQ==", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiTm90ZWJvb2siLAogICAgICAgICJkaXNwbGF5TmFtZSI6ICJleGFtcGxlIiwKICAgICAgICAiZGVzY3JpcHRpb24iOiAiQ3JlYXRlZCBieSBmYWIiCiAgICB9LAogICAgImNvbmZpZyI6IHsKICAgICAgICAidmVyc2lvbiI6ICIyLjAiLAogICAgICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogICAgfQp9", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2718' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/8e6c3dfa-f0b2-4911-8440-3a950c268386/items + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:39:47 GMT + ETag: + - '""' + Location: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/c4e7f8be-d792-43b8-9c82-1e7c61ac32ba + Pragma: + - no-cache + RequestId: + - 8be15714-40ef-4491-bb48-69717094277e + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - c4e7f8be-d792-43b8-9c82-1e7c61ac32ba + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/c4e7f8be-d792-43b8-9c82-1e7c61ac32ba + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2025-11-06T21:39:46.8135751", + "lastUpdatedTimeUtc": "2025-11-06T21:39:48.9232347", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:40:07 GMT + Location: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/c4e7f8be-d792-43b8-9c82-1e7c61ac32ba/result + Pragma: + - no-cache + RequestId: + - 9c9d12fd-324a-4060-a31b-c4ef7f27d371 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - c4e7f8be-d792-43b8-9c82-1e7c61ac32ba + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/c4e7f8be-d792-43b8-9c82-1e7c61ac32ba/result + response: + body: + string: '{"id": "0d0b694a-495d-4523-9dd6-738056d29c09", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "8e6c3dfa-f0b2-4911-8440-3a950c268386"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 06 Nov 2025 21:40:07 GMT + Pragma: + - no-cache + RequestId: + - f5c8209b-5fa7-428f-a779-05f3a3c70563 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "8e6c3dfa-f0b2-4911-8440-3a950c268386", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2230' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:40:07 GMT + Pragma: + - no-cache + RequestId: + - 7abaa4ca-93ba-4985-8523-d3bca86843b5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/8e6c3dfa-f0b2-4911-8440-3a950c268386/items + response: + body: + string: '{"value": [{"id": "0d0b694a-495d-4523-9dd6-738056d29c09", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "8e6c3dfa-f0b2-4911-8440-3a950c268386"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:40:07 GMT + Pragma: + - no-cache + RequestId: + - 8294429a-cd86-421e-a1bd-da467107d6ef + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/8e6c3dfa-f0b2-4911-8440-3a950c268386/items/0d0b694a-495d-4523-9dd6-738056d29c09/jobs/RunNotebook/schedules/00000000-0000-0000-0000-000000000000 + response: + body: + string: '{"requestId": "2afa524f-34c4-49f9-a7c2-d7fd4c506fe3", "errorCode": + "ScheduleNotFound", "message": "The requested item schedule not found"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:40:07 GMT + Pragma: + - no-cache + RequestId: + - 2afa524f-34c4-49f9-a7c2-d7fd4c506fe3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-public-api-error-code: + - ScheduleNotFound + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "8e6c3dfa-f0b2-4911-8440-3a950c268386", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2230' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:40:08 GMT + Pragma: + - no-cache + RequestId: + - 1b9c9429-76ed-4a92-b857-69ab5d81c571 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/8e6c3dfa-f0b2-4911-8440-3a950c268386/items + response: + body: + string: '{"value": [{"id": "0d0b694a-495d-4523-9dd6-738056d29c09", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "8e6c3dfa-f0b2-4911-8440-3a950c268386"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 06 Nov 2025 21:40:08 GMT + Pragma: + - no-cache + RequestId: + - 3b7d5769-b198-4fb5-9f71-1d49a52c675e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/8e6c3dfa-f0b2-4911-8440-3a950c268386/items/0d0b694a-495d-4523-9dd6-738056d29c09 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 06 Nov 2025 21:40:08 GMT + Pragma: + - no-cache + RequestId: + - 9e941c3f-1d4f-40f2-9562-d11f43a09f71 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[DataPipeline].yaml b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[DataPipeline].yaml new file mode 100644 index 000000000..5865783c9 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[DataPipeline].yaml @@ -0,0 +1,965 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:11 GMT + Pragma: + - no-cache + RequestId: + - 50627168-6b3d-44d1-9fdc-af91b24e5d7f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:11 GMT + Pragma: + - no-cache + RequestId: + - 1fe77ffe-c645-4a94-bb56-f0ddb4076d91 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:12 GMT + Pragma: + - no-cache + RequestId: + - 790bc092-2afc-495a-a9b7-85252aa9605f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "DataPipeline", "description": "Imported from fab", "folderId": + null, "displayName": "fabcli000001", "definition": {"parts": [{"path": ".platform", + "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiRGF0YVBpcGVsaW5lIiwKICAgICAgICAiZGlzcGxheU5hbWUiOiAiUGFyYW1fVGVzdF9QaXBlbGluZSIKICAgIH0sCiAgICAiY29uZmlnIjogewogICAgICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAgICAgImxvZ2ljYWxJZCI6ICIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiCiAgICB9Cn0=", + "payloadType": "InlineBase64"}, {"path": "pipeline-content.json", "payload": + "ewogICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgImFjdGl2aXRpZXMiOiBbCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICJuYW1lIjogIlJ1bk5vdGVib29rIiwKICAgICAgICAgICAgICAgICJ0eXBlIjogIlRyaWRlbnROb3RlYm9vayIsCiAgICAgICAgICAgICAgICAiZGVwZW5kc09uIjogW10sCiAgICAgICAgICAgICAgICAicG9saWN5IjogewogICAgICAgICAgICAgICAgICAgICJ0aW1lb3V0IjogIjAuMTI6MDA6MDAiLAogICAgICAgICAgICAgICAgICAgICJyZXRyeSI6IDAsCiAgICAgICAgICAgICAgICAgICAgInJldHJ5SW50ZXJ2YWxJblNlY29uZHMiOiAzMCwKICAgICAgICAgICAgICAgICAgICAic2VjdXJlT3V0cHV0IjogZmFsc2UsCiAgICAgICAgICAgICAgICAgICAgInNlY3VyZUlucHV0IjogZmFsc2UKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAidHlwZVByb3BlcnRpZXMiOiB7CiAgICAgICAgICAgICAgICAgICAgIm5vdGVib29rSWQiOiAiPG5vdGVib29rX2lkPiIsCiAgICAgICAgICAgICAgICAgICAgIndvcmtzcGFjZUlkIjogIjx3b3Jrc3BhY2VfaWQ+IiwKICAgICAgICAgICAgICAgICAgICAicGFyYW1ldGVycyI6IHsKICAgICAgICAgICAgICAgICAgICAgICAgInN0cmluZ19wYXJhbSI6IHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ2YWx1ZSI6IHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAidmFsdWUiOiAiQHBpcGVsaW5lKCkucGFyYW1ldGVycy5zdHJpbmdfcGFyYW0iLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ0eXBlIjogIkV4cHJlc3Npb24iCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgInR5cGUiOiAic3RyaW5nIgogICAgICAgICAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgICAgICAgICAiaW50X3BhcmFtIjogewogICAgICAgICAgICAgICAgICAgICAgICAgICAgInZhbHVlIjogewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ2YWx1ZSI6ICJAcGlwZWxpbmUoKS5wYXJhbWV0ZXJzLmludF9wYXJhbSIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInR5cGUiOiAiRXhwcmVzc2lvbiIKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAidHlwZSI6ICJpbnQiCiAgICAgICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAgICAgICAgICJmbG9hdF9wYXJhbSI6IHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ2YWx1ZSI6IHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAidmFsdWUiOiAiQHBpcGVsaW5lKCkucGFyYW1ldGVycy5mbG9hdF9wYXJhbSIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInR5cGUiOiAiRXhwcmVzc2lvbiIKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAidHlwZSI6ICJmbG9hdCIKICAgICAgICAgICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgICAgICAgICAgImJvb2xfcGFyYW0iOiB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAidmFsdWUiOiB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInZhbHVlIjogIkBwaXBlbGluZSgpLnBhcmFtZXRlcnMuYm9vbF9wYXJhbSIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInR5cGUiOiAiRXhwcmVzc2lvbiIKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAidHlwZSI6ICJib29sIgogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAibmFtZSI6ICJTZXQgb2JqIiwKICAgICAgICAgICAgICAgICJ0eXBlIjogIlNldFZhcmlhYmxlIiwKICAgICAgICAgICAgICAgICJkZXBlbmRzT24iOiBbXSwKICAgICAgICAgICAgICAgICJwb2xpY3kiOiB7CiAgICAgICAgICAgICAgICAgICAgInNlY3VyZU91dHB1dCI6IGZhbHNlLAogICAgICAgICAgICAgICAgICAgICJzZWN1cmVJbnB1dCI6IGZhbHNlCiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgInR5cGVQcm9wZXJ0aWVzIjogewogICAgICAgICAgICAgICAgICAgICJ2YXJpYWJsZU5hbWUiOiAib2JqX3ZhciIsCiAgICAgICAgICAgICAgICAgICAgInZhbHVlIjogewogICAgICAgICAgICAgICAgICAgICAgICAidmFsdWUiOiAiQHN0cmluZyhwaXBlbGluZSgpLnBhcmFtZXRlcnMub2JqX3BhcmFtKSIsCiAgICAgICAgICAgICAgICAgICAgICAgICJ0eXBlIjogIkV4cHJlc3Npb24iCiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAibmFtZSI6ICJTZXQgYXJyYXkiLAogICAgICAgICAgICAgICAgInR5cGUiOiAiU2V0VmFyaWFibGUiLAogICAgICAgICAgICAgICAgImRlcGVuZHNPbiI6IFtdLAogICAgICAgICAgICAgICAgInBvbGljeSI6IHsKICAgICAgICAgICAgICAgICAgICAic2VjdXJlT3V0cHV0IjogZmFsc2UsCiAgICAgICAgICAgICAgICAgICAgInNlY3VyZUlucHV0IjogZmFsc2UKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAidHlwZVByb3BlcnRpZXMiOiB7CiAgICAgICAgICAgICAgICAgICAgInZhcmlhYmxlTmFtZSI6ICJhcnJheV92YXIiLAogICAgICAgICAgICAgICAgICAgICJ2YWx1ZSI6IHsKICAgICAgICAgICAgICAgICAgICAgICAgInZhbHVlIjogIkBwaXBlbGluZSgpLnBhcmFtZXRlcnMuYXJyYXlfcGFyYW0iLAogICAgICAgICAgICAgICAgICAgICAgICAidHlwZSI6ICJFeHByZXNzaW9uIgogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgIm5hbWUiOiAiU2V0IHNlY3N0ciIsCiAgICAgICAgICAgICAgICAidHlwZSI6ICJTZXRWYXJpYWJsZSIsCiAgICAgICAgICAgICAgICAiZGVwZW5kc09uIjogW10sCiAgICAgICAgICAgICAgICAicG9saWN5IjogewogICAgICAgICAgICAgICAgICAgICJzZWN1cmVPdXRwdXQiOiBmYWxzZSwKICAgICAgICAgICAgICAgICAgICAic2VjdXJlSW5wdXQiOiBmYWxzZQogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgICJ0eXBlUHJvcGVydGllcyI6IHsKICAgICAgICAgICAgICAgICAgICAidmFyaWFibGVOYW1lIjogInNlY3N0cl92YXIiLAogICAgICAgICAgICAgICAgICAgICJ2YWx1ZSI6IHsKICAgICAgICAgICAgICAgICAgICAgICAgInZhbHVlIjogIkBzdHJpbmcocGlwZWxpbmUoKS5wYXJhbWV0ZXJzLnNlY3N0cl9wYXJhbSkiLAogICAgICAgICAgICAgICAgICAgICAgICAidHlwZSI6ICJFeHByZXNzaW9uIgogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInBhcmFtZXRlcnMiOiB7CiAgICAgICAgICAgICJzdHJpbmdfcGFyYW0iOiB7CiAgICAgICAgICAgICAgICAidHlwZSI6ICJzdHJpbmciCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJpbnRfcGFyYW0iOiB7CiAgICAgICAgICAgICAgICAidHlwZSI6ICJpbnQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJmbG9hdF9wYXJhbSI6IHsKICAgICAgICAgICAgICAgICJ0eXBlIjogImZsb2F0IgogICAgICAgICAgICB9LAogICAgICAgICAgICAiYm9vbF9wYXJhbSI6IHsKICAgICAgICAgICAgICAgICJ0eXBlIjogImJvb2wiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJvYmpfcGFyYW0iOiB7CiAgICAgICAgICAgICAgICAidHlwZSI6ICJvYmplY3QiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJhcnJheV9wYXJhbSI6IHsKICAgICAgICAgICAgICAgICJ0eXBlIjogImFycmF5IgogICAgICAgICAgICB9LAogICAgICAgICAgICAic2Vjc3RyX3BhcmFtIjogewogICAgICAgICAgICAgICAgInR5cGUiOiAic2VjdXJlc3RyaW5nIgogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAidmFyaWFibGVzIjogewogICAgICAgICAgICAib2JqX3ZhciI6IHsKICAgICAgICAgICAgICAgICJ0eXBlIjogIlN0cmluZyIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgImFycmF5X3ZhciI6IHsKICAgICAgICAgICAgICAgICJ0eXBlIjogIkFycmF5IgogICAgICAgICAgICB9LAogICAgICAgICAgICAic2Vjc3RyX3ZhciI6IHsKICAgICAgICAgICAgICAgICJ0eXBlIjogIlN0cmluZyIKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '6594' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"id": "f2742b8a-e40c-4292-9488-ab1e55945d97", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:17 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 64116218-2c70-4037-820b-77f0fd318249 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:16 GMT + Pragma: + - no-cache + RequestId: + - 957014ce-b6bc-40bd-912e-c76a1d38f5d7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "f2742b8a-e40c-4292-9488-ab1e55945d97", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:17 GMT + Pragma: + - no-cache + RequestId: + - 6d6d97e7-41c2-440a-85ae-9ef3e7754a87 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"enabled": true, "configuration": {"type": "Cron", "startDateTime": "2024-01-23T00:00:00", + "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": "Central Standard Time", + "interval": 10}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '190' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/f2742b8a-e40c-4292-9488-ab1e55945d97/jobs/Pipeline/schedules + response: + body: + string: '{"id": "83b13e5e-3eac-408a-9a18-ddb8c8cce14c", "enabled": true, "createdDateTime": + "2025-11-23T22:13:18.1333333", "configuration": {"type": "Cron", "startDateTime": + "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": + "Central Standard Time", "interval": 10}, "owner": {"id": "00000000-0000-0000-0000-000000000003", + "type": "ServicePrincipal"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '256' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:19 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/f2742b8a-e40c-4292-9488-ab1e55945d97/jobs/Pipeline/schedules/83b13e5e-3eac-408a-9a18-ddb8c8cce14c + Pragma: + - no-cache + RequestId: + - ad1bf33a-a436-4598-98cf-4d767fb29c71 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:20 GMT + Pragma: + - no-cache + RequestId: + - 3d034cf2-09dd-4db4-8f96-ba3cf4127021 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "f2742b8a-e40c-4292-9488-ab1e55945d97", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:20 GMT + Pragma: + - no-cache + RequestId: + - c202f8a6-8a69-43d4-b6ef-9748406d0b33 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/f2742b8a-e40c-4292-9488-ab1e55945d97/jobs/Pipeline/schedules + response: + body: + string: '{"value": [{"id": "83b13e5e-3eac-408a-9a18-ddb8c8cce14c", "enabled": + true, "createdDateTime": "2025-11-23T22:13:18.1333333", "configuration": {"type": + "Cron", "startDateTime": "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", + "localTimeZoneId": "Central Standard Time", "interval": 10}, "owner": {"id": + "00000000-0000-0000-0000-000000000003", "type": "ServicePrincipal"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '266' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:20 GMT + Pragma: + - no-cache + RequestId: + - e9a1ce8a-1733-4432-bed7-7af6f256c93c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:21 GMT + Pragma: + - no-cache + RequestId: + - f8a5e72d-a2e0-4a12-a636-ede35f45b0ae + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "f2742b8a-e40c-4292-9488-ab1e55945d97", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:21 GMT + Pragma: + - no-cache + RequestId: + - cc3a12f4-9380-4c6c-bb3e-8b0a7b4b4687 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/f2742b8a-e40c-4292-9488-ab1e55945d97/jobs/Pipeline/schedules/83b13e5e-3eac-408a-9a18-ddb8c8cce14c + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:13:22 GMT + Pragma: + - no-cache + RequestId: + - 25c9d2a8-1c3a-42c5-b572-2f1bbf7e7836 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:22 GMT + Pragma: + - no-cache + RequestId: + - c13c91ff-beae-4b0c-9287-d501985af320 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "f2742b8a-e40c-4292-9488-ab1e55945d97", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:22 GMT + Pragma: + - no-cache + RequestId: + - 706b46d1-db10-4be1-ac4d-9abc36799f4f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/f2742b8a-e40c-4292-9488-ab1e55945d97/jobs/Pipeline/schedules + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:24 GMT + Pragma: + - no-cache + RequestId: + - 4e66d5aa-ceec-4b6d-b18b-51f9675b0142 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:24 GMT + Pragma: + - no-cache + RequestId: + - a1b90f7b-7b06-4ce4-bb50-8c6c71d229de + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "f2742b8a-e40c-4292-9488-ab1e55945d97", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:24 GMT + Pragma: + - no-cache + RequestId: + - a772dd0f-96b0-4b99-a91b-58bd1901b99c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/f2742b8a-e40c-4292-9488-ab1e55945d97 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:13:24 GMT + Pragma: + - no-cache + RequestId: + - 6a3327ca-8458-4660-91b1-917705c4bb79 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[Notebook].yaml b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[Notebook].yaml new file mode 100644 index 000000000..2da00fb65 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[Notebook].yaml @@ -0,0 +1,1065 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:12:44 GMT + Pragma: + - no-cache + RequestId: + - e441ac72-1d1c-4c40-a4ee-18abdbdd69d8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:12:45 GMT + Pragma: + - no-cache + RequestId: + - e8f5a480-c446-41e7-b300-af077e2e2357 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:12:44 GMT + Pragma: + - no-cache + RequestId: + - ca57f00b-42d4-47ee-9328-a4e0cabf05b8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "Notebook", "description": "Imported from fab", "folderId": null, + "displayName": "fabcli000001", "definition": {"format": "ipynb", "parts": [{"path": + ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiTm90ZWJvb2siLAogICAgICAgICJkaXNwbGF5TmFtZSI6ICJleGFtcGxlIiwKICAgICAgICAiZGVzY3JpcHRpb24iOiAiQ3JlYXRlZCBieSBmYWIiCiAgICB9LAogICAgImNvbmZpZyI6IHsKICAgICAgICAidmVyc2lvbiI6ICIyLjAiLAogICAgICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogICAgfQp9", + "payloadType": "InlineBase64"}, {"path": "notebook-content.ipynb", "payload": + "ewogICAgImNlbGxzIjogWwogICAgICAgIHsKICAgICAgICAgICAgImNlbGxfdHlwZSI6ICJjb2RlIiwKICAgICAgICAgICAgImV4ZWN1dGlvbl9jb3VudCI6IG51bGwsCiAgICAgICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlIjogInB5dGhvbiIsCiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgIm91dHB1dHMiOiBbXSwKICAgICAgICAgICAgInNvdXJjZSI6IFsKICAgICAgICAgICAgICAgICIjIFdlbGNvbWUgdG8geW91ciBuZXcgbm90ZWJvb2tcbiIsCiAgICAgICAgICAgICAgICAiIyBUeXBlIGhlcmUgaW4gdGhlIGNlbGwgZWRpdG9yIHRvIGFkZCBjb2RlIVxuIiwKICAgICAgICAgICAgICAgICJmcm9tIHRpbWUgaW1wb3J0IHNsZWVwXG4iLAogICAgICAgICAgICAgICAgInNsZWVwKDEwKSIKICAgICAgICAgICAgXQogICAgICAgIH0KICAgIF0sCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgImRlcGVuZGVuY2llcyI6IHt9LAogICAgICAgICJrZXJuZWxfaW5mbyI6IHsKICAgICAgICAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgogICAgICAgIH0sCiAgICAgICAgImtlcm5lbHNwZWMiOiB7CiAgICAgICAgICAgICJkaXNwbGF5X25hbWUiOiAic3luYXBzZV9weXNwYXJrIiwKICAgICAgICAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgogICAgICAgIH0sCiAgICAgICAgImxhbmd1YWdlX2luZm8iOiB7CiAgICAgICAgICAgICJuYW1lIjogInB5dGhvbiIKICAgICAgICB9LAogICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICJsYW5ndWFnZSI6ICJweXRob24iLAogICAgICAgICAgICAibGFuZ3VhZ2VfZ3JvdXAiOiAic3luYXBzZV9weXNwYXJrIiwKICAgICAgICAgICAgIm1zX3NwZWxsX2NoZWNrIjogewogICAgICAgICAgICAgICAgIm1zX3NwZWxsX2NoZWNrX2xhbmd1YWdlIjogImVuIgogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAibnRlcmFjdCI6IHsKICAgICAgICAgICAgInZlcnNpb24iOiAibnRlcmFjdC1mcm9udC1lbmRAMS4wLjAiCiAgICAgICAgfSwKICAgICAgICAic3BhcmtfY29tcHV0ZSI6IHsKICAgICAgICAgICAgImNvbXB1dGVfaWQiOiAiL3RyaWRlbnQvZGVmYXVsdCIsCiAgICAgICAgICAgICJzZXNzaW9uX29wdGlvbnMiOiB7CiAgICAgICAgICAgICAgICAiY29uZiI6IHsKICAgICAgICAgICAgICAgICAgICAic3Bhcmsuc3luYXBzZS5uYnMuc2Vzc2lvbi50aW1lb3V0IjogIjEyMDAwMDAiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9LAogICAgIm5iZm9ybWF0IjogNCwKICAgICJuYmZvcm1hdF9taW5vciI6IDUKfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2718' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:12:46 GMT + ETag: + - '""' + Location: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/d5bee079-4b59-4779-b070-901a60d593a5 + Pragma: + - no-cache + RequestId: + - 2d76a22e-34e3-4463-b1b9-f83c174c6dd7 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - d5bee079-4b59-4779-b070-901a60d593a5 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/d5bee079-4b59-4779-b070-901a60d593a5 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2025-11-23T22:12:45.5070568", + "lastUpdatedTimeUtc": "2025-11-23T22:12:49.93003", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:06 GMT + Location: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/d5bee079-4b59-4779-b070-901a60d593a5/result + Pragma: + - no-cache + RequestId: + - 79e711d4-016d-4547-b7b3-446c860f332b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - d5bee079-4b59-4779-b070-901a60d593a5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/d5bee079-4b59-4779-b070-901a60d593a5/result + response: + body: + string: '{"id": "70b67b3c-779e-4fee-a841-aebbaefb779d", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sun, 23 Nov 2025 22:13:06 GMT + Pragma: + - no-cache + RequestId: + - 05ce94c6-b731-46c4-ba03-2cbf4b1ec4bd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:07 GMT + Pragma: + - no-cache + RequestId: + - c7c8e71c-14da-40f0-b7aa-be3b3129f8b0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "70b67b3c-779e-4fee-a841-aebbaefb779d", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:07 GMT + Pragma: + - no-cache + RequestId: + - 6408e16f-3b55-49a7-a115-08057aeb8a9d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"enabled": true, "configuration": {"type": "Cron", "startDateTime": "2024-01-23T00:00:00", + "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": "Central Standard Time", + "interval": 10}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '190' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/70b67b3c-779e-4fee-a841-aebbaefb779d/jobs/RunNotebook/schedules + response: + body: + string: '{"id": "d02eb3d5-0f2b-42f3-bf3c-bf1d5d14eeab", "enabled": true, "createdDateTime": + "2025-11-23T22:13:07.8066667", "configuration": {"type": "Cron", "startDateTime": + "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": + "Central Standard Time", "interval": 10}, "owner": {"id": "00000000-0000-0000-0000-000000000003", + "type": "ServicePrincipal"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '257' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:07 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/70b67b3c-779e-4fee-a841-aebbaefb779d/jobs/RunNotebook/schedules/d02eb3d5-0f2b-42f3-bf3c-bf1d5d14eeab + Pragma: + - no-cache + RequestId: + - cf852834-c8a5-4c8c-a015-6cfdd6637631 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:09 GMT + Pragma: + - no-cache + RequestId: + - 3b3e6092-0f1f-42d1-8747-87d531fb5e10 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "70b67b3c-779e-4fee-a841-aebbaefb779d", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:09 GMT + Pragma: + - no-cache + RequestId: + - b53cf5f9-e9e6-4a28-a400-bf3dc64c632d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/70b67b3c-779e-4fee-a841-aebbaefb779d/jobs/RunNotebook/schedules + response: + body: + string: '{"value": [{"id": "d02eb3d5-0f2b-42f3-bf3c-bf1d5d14eeab", "enabled": + true, "createdDateTime": "2025-11-23T22:13:07.8066667", "configuration": {"type": + "Cron", "startDateTime": "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", + "localTimeZoneId": "Central Standard Time", "interval": 10}, "owner": {"id": + "00000000-0000-0000-0000-000000000003", "type": "ServicePrincipal"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '267' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:09 GMT + Pragma: + - no-cache + RequestId: + - e8dd42d1-84a6-4b80-a3f1-1c67cf2c5ef7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:10 GMT + Pragma: + - no-cache + RequestId: + - 18e66ed6-48cb-42d3-a185-42e60ecccf5a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "70b67b3c-779e-4fee-a841-aebbaefb779d", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:10 GMT + Pragma: + - no-cache + RequestId: + - efaec2c3-6dde-4b3a-8f31-78ba248a0b15 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/70b67b3c-779e-4fee-a841-aebbaefb779d/jobs/RunNotebook/schedules/d02eb3d5-0f2b-42f3-bf3c-bf1d5d14eeab + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:13:09 GMT + Pragma: + - no-cache + RequestId: + - 80b706f7-9f4d-4fc2-88e6-4ad578bcbc40 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:10 GMT + Pragma: + - no-cache + RequestId: + - 300a1868-6873-49c9-8757-2e738cbc6d14 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "70b67b3c-779e-4fee-a841-aebbaefb779d", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:10 GMT + Pragma: + - no-cache + RequestId: + - 4c20ad11-3d2a-4126-a484-99d489a9d8b1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/70b67b3c-779e-4fee-a841-aebbaefb779d/jobs/RunNotebook/schedules + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:11 GMT + Pragma: + - no-cache + RequestId: + - 3d891375-4ae1-43de-b5bb-5b83f501df33 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:10 GMT + Pragma: + - no-cache + RequestId: + - 9f39641a-61a1-4f2f-b49f-d756bc062357 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "70b67b3c-779e-4fee-a841-aebbaefb779d", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:11 GMT + Pragma: + - no-cache + RequestId: + - e1cdcc24-a6af-4c90-9998-a7e62551600f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/70b67b3c-779e-4fee-a841-aebbaefb779d + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:13:11 GMT + Pragma: + - no-cache + RequestId: + - c472b862-8413-445a-aff6-7e52db5b7b76 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[SparkJobDefinition].yaml b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[SparkJobDefinition].yaml new file mode 100644 index 000000000..4a5dde73f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_success[SparkJobDefinition].yaml @@ -0,0 +1,965 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:24 GMT + Pragma: + - no-cache + RequestId: + - aef69b25-f5f1-4c8d-bb92-516a4c6f6acf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:25 GMT + Pragma: + - no-cache + RequestId: + - b9f6628a-298e-4f6e-af46-bec733a251bd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:25 GMT + Pragma: + - no-cache + RequestId: + - 73fb887b-6287-495e-b9ec-d3e076bf51e3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "SparkJobDefinition", "description": "Imported from fab", "folderId": + null, "displayName": "fabcli000001", "definition": {"format": "SparkJobDefinitionV1", + "parts": [{"path": ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiU3BhcmtKb2JEZWZpbml0aW9uIiwKICAgICAgICAiZGlzcGxheU5hbWUiOiAiUGFyYW1fVGVzdF9TcGFya0pvYiIsCiAgICAgICAgImRlc2NyaXB0aW9uIjogIlNwYXJrIGpvYiBkZWZpbml0aW9uIgogICAgfSwKICAgICJjb25maWciOiB7CiAgICAgICAgInZlcnNpb24iOiAiMi4wIiwKICAgICAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICAgIH0KfQ==", + "payloadType": "InlineBase64"}, {"path": "SparkJobDefinitionV1.json", "payload": + "ewogICAgImV4ZWN1dGFibGVGaWxlIjogIiIsCiAgICAiZGVmYXVsdExha2Vob3VzZUFydGlmYWN0SWQiOiAiIiwKICAgICJtYWluQ2xhc3MiOiAiIiwKICAgICJhZGRpdGlvbmFsTGFrZWhvdXNlSWRzIjogW10sCiAgICAicmV0cnlQb2xpY3kiOiBudWxsLAogICAgImNvbW1hbmRMaW5lQXJndW1lbnRzIjogIiIsCiAgICAiYWRkaXRpb25hbExpYnJhcnlVcmlzIjogW10sCiAgICAibGFuZ3VhZ2UiOiAiUHl0aG9uIiwKICAgICJlbnZpcm9ubWVudEFydGlmYWN0SWQiOiBudWxsCn0=", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1218' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"id": "399cde9a-c1c5-4ba8-9eb7-b83d37113085", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:27 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - ff2fa10c-6d46-433c-8ca2-e4523ff3f273 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:27 GMT + Pragma: + - no-cache + RequestId: + - ea4aafef-9cd2-41c2-ad83-d36e01702026 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "399cde9a-c1c5-4ba8-9eb7-b83d37113085", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '187' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:27 GMT + Pragma: + - no-cache + RequestId: + - 196bb186-344e-4012-88b4-b09fc8b20fdb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"enabled": true, "configuration": {"type": "Cron", "startDateTime": "2024-01-23T00:00:00", + "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": "Central Standard Time", + "interval": 10}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '190' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/399cde9a-c1c5-4ba8-9eb7-b83d37113085/jobs/sparkjob/schedules + response: + body: + string: '{"id": "b64e346c-d17e-4278-990d-34a3a4803771", "enabled": true, "createdDateTime": + "2025-11-23T22:13:27.88", "configuration": {"type": "Cron", "startDateTime": + "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": + "Central Standard Time", "interval": 10}, "owner": {"id": "00000000-0000-0000-0000-000000000003", + "type": "ServicePrincipal"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '255' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:27 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/399cde9a-c1c5-4ba8-9eb7-b83d37113085/jobs/sparkjob/schedules/b64e346c-d17e-4278-990d-34a3a4803771 + Pragma: + - no-cache + RequestId: + - e94f28ef-f7dd-4a1d-a0e1-6e1937c38b6b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:29 GMT + Pragma: + - no-cache + RequestId: + - 6f803ba9-0279-401f-b206-2fa04200f4db + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "399cde9a-c1c5-4ba8-9eb7-b83d37113085", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '187' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:29 GMT + Pragma: + - no-cache + RequestId: + - d8741144-2b95-4bb5-bd13-e12c6a54f944 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/399cde9a-c1c5-4ba8-9eb7-b83d37113085/jobs/sparkjob/schedules + response: + body: + string: '{"value": [{"id": "b64e346c-d17e-4278-990d-34a3a4803771", "enabled": + true, "createdDateTime": "2025-11-23T22:13:27.88", "configuration": {"type": + "Cron", "startDateTime": "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", + "localTimeZoneId": "Central Standard Time", "interval": 10}, "owner": {"id": + "00000000-0000-0000-0000-000000000003", "type": "ServicePrincipal"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '264' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:29 GMT + Pragma: + - no-cache + RequestId: + - 40695d16-ff08-4d48-89ad-ef6401879b52 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:29 GMT + Pragma: + - no-cache + RequestId: + - 17fd94c1-622c-489e-b2e8-6d82aef9894f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "399cde9a-c1c5-4ba8-9eb7-b83d37113085", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '187' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:30 GMT + Pragma: + - no-cache + RequestId: + - 43cd5397-cd45-40ef-931d-80e50c88978f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/399cde9a-c1c5-4ba8-9eb7-b83d37113085/jobs/sparkjob/schedules/b64e346c-d17e-4278-990d-34a3a4803771 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:13:30 GMT + Pragma: + - no-cache + RequestId: + - bbbe4c39-15c0-4218-ae34-d635aac96362 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:30 GMT + Pragma: + - no-cache + RequestId: + - 3f8fb614-7af7-4f81-9ee1-94247270513b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "399cde9a-c1c5-4ba8-9eb7-b83d37113085", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '187' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:30 GMT + Pragma: + - no-cache + RequestId: + - ab29fcd4-6ab9-4eab-9868-dfcabd611e36 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/399cde9a-c1c5-4ba8-9eb7-b83d37113085/jobs/sparkjob/schedules + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:30 GMT + Pragma: + - no-cache + RequestId: + - 533b1862-31c2-4e20-8fb4-69990cf867a0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "55cefca4-1b08-4576-8af9-fd80d28d06b1", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3088' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:30 GMT + Pragma: + - no-cache + RequestId: + - 2c9377d4-22d6-4747-a2c3-72fd5cbac989 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items + response: + body: + string: '{"value": [{"id": "399cde9a-c1c5-4ba8-9eb7-b83d37113085", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "55cefca4-1b08-4576-8af9-fd80d28d06b1"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '187' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:13:31 GMT + Pragma: + - no-cache + RequestId: + - 97abf958-a7eb-444f-b3bf-e0f66ce10b49 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/55cefca4-1b08-4576-8af9-fd80d28d06b1/items/399cde9a-c1c5-4ba8-9eb7-b83d37113085 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:13:31 GMT + Pragma: + - no-cache + RequestId: + - 8e4f920a-1125-4c93-a494-5a9496d2f02c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_without_force_cancel_operation_success.yaml b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_without_force_cancel_operation_success.yaml new file mode 100644 index 000000000..27e65e84b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_without_force_cancel_operation_success.yaml @@ -0,0 +1,1019 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "d2edd9d5-cbf4-4480-b663-057e78cc51e6", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3086' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:14:39 GMT + Pragma: + - no-cache + RequestId: + - 1ab1a1d6-f46a-48ef-a13e-46c75923566b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:14:40 GMT + Pragma: + - no-cache + RequestId: + - 3bad97b6-e7b9-42f0-bcc4-1a81c941cdb9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:14:40 GMT + Pragma: + - no-cache + RequestId: + - f99b8985-52a0-4b8a-b9e7-da1f85865086 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "Notebook", "description": "Imported from fab", "folderId": null, + "displayName": "fabcli000001", "definition": {"format": "ipynb", "parts": [{"path": + ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiTm90ZWJvb2siLAogICAgICAgICJkaXNwbGF5TmFtZSI6ICJleGFtcGxlIiwKICAgICAgICAiZGVzY3JpcHRpb24iOiAiQ3JlYXRlZCBieSBmYWIiCiAgICB9LAogICAgImNvbmZpZyI6IHsKICAgICAgICAidmVyc2lvbiI6ICIyLjAiLAogICAgICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogICAgfQp9", + "payloadType": "InlineBase64"}, {"path": "notebook-content.ipynb", "payload": + "ewogICAgImNlbGxzIjogWwogICAgICAgIHsKICAgICAgICAgICAgImNlbGxfdHlwZSI6ICJjb2RlIiwKICAgICAgICAgICAgImV4ZWN1dGlvbl9jb3VudCI6IG51bGwsCiAgICAgICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlIjogInB5dGhvbiIsCiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgIm91dHB1dHMiOiBbXSwKICAgICAgICAgICAgInNvdXJjZSI6IFsKICAgICAgICAgICAgICAgICIjIFdlbGNvbWUgdG8geW91ciBuZXcgbm90ZWJvb2tcbiIsCiAgICAgICAgICAgICAgICAiIyBUeXBlIGhlcmUgaW4gdGhlIGNlbGwgZWRpdG9yIHRvIGFkZCBjb2RlIVxuIiwKICAgICAgICAgICAgICAgICJmcm9tIHRpbWUgaW1wb3J0IHNsZWVwXG4iLAogICAgICAgICAgICAgICAgInNsZWVwKDEwKSIKICAgICAgICAgICAgXQogICAgICAgIH0KICAgIF0sCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgImRlcGVuZGVuY2llcyI6IHt9LAogICAgICAgICJrZXJuZWxfaW5mbyI6IHsKICAgICAgICAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgogICAgICAgIH0sCiAgICAgICAgImtlcm5lbHNwZWMiOiB7CiAgICAgICAgICAgICJkaXNwbGF5X25hbWUiOiAic3luYXBzZV9weXNwYXJrIiwKICAgICAgICAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgogICAgICAgIH0sCiAgICAgICAgImxhbmd1YWdlX2luZm8iOiB7CiAgICAgICAgICAgICJuYW1lIjogInB5dGhvbiIKICAgICAgICB9LAogICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICJsYW5ndWFnZSI6ICJweXRob24iLAogICAgICAgICAgICAibGFuZ3VhZ2VfZ3JvdXAiOiAic3luYXBzZV9weXNwYXJrIiwKICAgICAgICAgICAgIm1zX3NwZWxsX2NoZWNrIjogewogICAgICAgICAgICAgICAgIm1zX3NwZWxsX2NoZWNrX2xhbmd1YWdlIjogImVuIgogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAibnRlcmFjdCI6IHsKICAgICAgICAgICAgInZlcnNpb24iOiAibnRlcmFjdC1mcm9udC1lbmRAMS4wLjAiCiAgICAgICAgfSwKICAgICAgICAic3BhcmtfY29tcHV0ZSI6IHsKICAgICAgICAgICAgImNvbXB1dGVfaWQiOiAiL3RyaWRlbnQvZGVmYXVsdCIsCiAgICAgICAgICAgICJzZXNzaW9uX29wdGlvbnMiOiB7CiAgICAgICAgICAgICAgICAiY29uZiI6IHsKICAgICAgICAgICAgICAgICAgICAic3Bhcmsuc3luYXBzZS5uYnMuc2Vzc2lvbi50aW1lb3V0IjogIjEyMDAwMDAiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9LAogICAgIm5iZm9ybWF0IjogNCwKICAgICJuYmZvcm1hdF9taW5vciI6IDUKfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2718' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:14:43 GMT + ETag: + - '""' + Location: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/bb451b69-72f7-4167-bce0-d36b3cf6e37d + Pragma: + - no-cache + RequestId: + - bf3dd9e8-45fb-4a2b-9d40-88f3f1a418d8 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - bb451b69-72f7-4167-bce0-d36b3cf6e37d + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/bb451b69-72f7-4167-bce0-d36b3cf6e37d + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2025-11-23T22:14:41.6090081", + "lastUpdatedTimeUtc": "2025-11-23T22:14:44.5938788", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:03 GMT + Location: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/bb451b69-72f7-4167-bce0-d36b3cf6e37d/result + Pragma: + - no-cache + RequestId: + - 2ba00f6d-ed1b-4c0f-b2a8-2cf9498ad632 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - bb451b69-72f7-4167-bce0-d36b3cf6e37d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/bb451b69-72f7-4167-bce0-d36b3cf6e37d/result + response: + body: + string: '{"id": "47520d7d-13e5-4c37-978a-6650359bf82e", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "d2edd9d5-cbf4-4480-b663-057e78cc51e6"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sun, 23 Nov 2025 22:15:03 GMT + Pragma: + - no-cache + RequestId: + - 220662c8-7885-4953-94a0-59ba8f391fef + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "d2edd9d5-cbf4-4480-b663-057e78cc51e6", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3086' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:03 GMT + Pragma: + - no-cache + RequestId: + - f1cc2ed7-68e0-4009-be4b-66399beb6968 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items + response: + body: + string: '{"value": [{"id": "47520d7d-13e5-4c37-978a-6650359bf82e", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "d2edd9d5-cbf4-4480-b663-057e78cc51e6"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:03 GMT + Pragma: + - no-cache + RequestId: + - 4066b5c8-1466-4501-942e-cfe6c9a21324 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"enabled": true, "configuration": {"type": "Cron", "startDateTime": "2024-01-23T00:00:00", + "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": "Central Standard Time", + "interval": 10}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '190' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items/47520d7d-13e5-4c37-978a-6650359bf82e/jobs/RunNotebook/schedules + response: + body: + string: '{"id": "db581240-14f6-4a1c-ad45-a05a724c23c0", "enabled": true, "createdDateTime": + "2025-11-23T22:15:04.3233333", "configuration": {"type": "Cron", "startDateTime": + "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": + "Central Standard Time", "interval": 10}, "owner": {"id": "00000000-0000-0000-0000-000000000003", + "type": "ServicePrincipal"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '257' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:04 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items/47520d7d-13e5-4c37-978a-6650359bf82e/jobs/RunNotebook/schedules/db581240-14f6-4a1c-ad45-a05a724c23c0 + Pragma: + - no-cache + RequestId: + - 6937f4bd-cf78-45fe-a88a-cc823431a5ff + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "d2edd9d5-cbf4-4480-b663-057e78cc51e6", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3086' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:06 GMT + Pragma: + - no-cache + RequestId: + - c4b5ef69-ca6b-4df8-b77c-ab36556a988f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items + response: + body: + string: '{"value": [{"id": "47520d7d-13e5-4c37-978a-6650359bf82e", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "d2edd9d5-cbf4-4480-b663-057e78cc51e6"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:05 GMT + Pragma: + - no-cache + RequestId: + - faa89a67-9511-4e42-b4bc-2d32c8faa70d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items/47520d7d-13e5-4c37-978a-6650359bf82e/jobs/RunNotebook/schedules + response: + body: + string: '{"value": [{"id": "db581240-14f6-4a1c-ad45-a05a724c23c0", "enabled": + true, "createdDateTime": "2025-11-23T22:15:04.3233333", "configuration": {"type": + "Cron", "startDateTime": "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", + "localTimeZoneId": "Central Standard Time", "interval": 10}, "owner": {"id": + "00000000-0000-0000-0000-000000000003", "type": "ServicePrincipal"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '267' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:06 GMT + Pragma: + - no-cache + RequestId: + - 134fb8ac-9977-434b-8f55-671881487c0b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "d2edd9d5-cbf4-4480-b663-057e78cc51e6", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3086' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:06 GMT + Pragma: + - no-cache + RequestId: + - 41452b20-c507-4498-9340-4e8294de771e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items + response: + body: + string: '{"value": [{"id": "47520d7d-13e5-4c37-978a-6650359bf82e", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "d2edd9d5-cbf4-4480-b663-057e78cc51e6"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:06 GMT + Pragma: + - no-cache + RequestId: + - 88d41f9d-db21-4e1e-9f61-885be3593a01 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "d2edd9d5-cbf4-4480-b663-057e78cc51e6", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3086' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:06 GMT + Pragma: + - no-cache + RequestId: + - 2dc1b163-16df-444b-8e58-5edd7baf7e48 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items + response: + body: + string: '{"value": [{"id": "47520d7d-13e5-4c37-978a-6650359bf82e", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "d2edd9d5-cbf4-4480-b663-057e78cc51e6"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:07 GMT + Pragma: + - no-cache + RequestId: + - bff4fa2a-ea5d-461b-8289-d8d197cf9081 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items/47520d7d-13e5-4c37-978a-6650359bf82e/jobs/RunNotebook/schedules + response: + body: + string: '{"value": [{"id": "db581240-14f6-4a1c-ad45-a05a724c23c0", "enabled": + true, "createdDateTime": "2025-11-23T22:15:04.3233333", "configuration": {"type": + "Cron", "startDateTime": "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", + "localTimeZoneId": "Central Standard Time", "interval": 10}, "owner": {"id": + "00000000-0000-0000-0000-000000000003", "type": "ServicePrincipal"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '267' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:07 GMT + Pragma: + - no-cache + RequestId: + - 37aba518-2123-40d9-b82f-cf7613f1e6ae + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "d2edd9d5-cbf4-4480-b663-057e78cc51e6", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3086' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:07 GMT + Pragma: + - no-cache + RequestId: + - 6e30e3e2-4d8d-45c9-a926-906c78a31599 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items + response: + body: + string: '{"value": [{"id": "47520d7d-13e5-4c37-978a-6650359bf82e", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "d2edd9d5-cbf4-4480-b663-057e78cc51e6"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:15:07 GMT + Pragma: + - no-cache + RequestId: + - 19b2892f-7b60-41a9-abfc-53357b9c3e7c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/d2edd9d5-cbf4-4480-b663-057e78cc51e6/items/47520d7d-13e5-4c37-978a-6650359bf82e + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:15:07 GMT + Pragma: + - no-cache + RequestId: + - 94e34ffb-874f-4253-89c4-8e554974f7d3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_without_force_success.yaml b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_without_force_success.yaml new file mode 100644 index 000000000..22205caaa --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_jobs/test_run_schedule_rm_without_force_success.yaml @@ -0,0 +1,1065 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "08fd69b8-d200-4889-96eb-1dea478a19e0", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3083' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:21 GMT + Pragma: + - no-cache + RequestId: + - 988f15ac-2b2c-48db-b2de-b0a875881e98 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:21 GMT + Pragma: + - no-cache + RequestId: + - fce02447-0f5c-4f49-b201-23e2b5a8f59e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:21 GMT + Pragma: + - no-cache + RequestId: + - e27991b8-e74f-448c-9b21-fcae3f37d91b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "Notebook", "description": "Imported from fab", "folderId": null, + "displayName": "fabcli000001", "definition": {"format": "ipynb", "parts": [{"path": + ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiTm90ZWJvb2siLAogICAgICAgICJkaXNwbGF5TmFtZSI6ICJleGFtcGxlIiwKICAgICAgICAiZGVzY3JpcHRpb24iOiAiQ3JlYXRlZCBieSBmYWIiCiAgICB9LAogICAgImNvbmZpZyI6IHsKICAgICAgICAidmVyc2lvbiI6ICIyLjAiLAogICAgICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogICAgfQp9", + "payloadType": "InlineBase64"}, {"path": "notebook-content.ipynb", "payload": + "ewogICAgImNlbGxzIjogWwogICAgICAgIHsKICAgICAgICAgICAgImNlbGxfdHlwZSI6ICJjb2RlIiwKICAgICAgICAgICAgImV4ZWN1dGlvbl9jb3VudCI6IG51bGwsCiAgICAgICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlIjogInB5dGhvbiIsCiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgIm91dHB1dHMiOiBbXSwKICAgICAgICAgICAgInNvdXJjZSI6IFsKICAgICAgICAgICAgICAgICIjIFdlbGNvbWUgdG8geW91ciBuZXcgbm90ZWJvb2tcbiIsCiAgICAgICAgICAgICAgICAiIyBUeXBlIGhlcmUgaW4gdGhlIGNlbGwgZWRpdG9yIHRvIGFkZCBjb2RlIVxuIiwKICAgICAgICAgICAgICAgICJmcm9tIHRpbWUgaW1wb3J0IHNsZWVwXG4iLAogICAgICAgICAgICAgICAgInNsZWVwKDEwKSIKICAgICAgICAgICAgXQogICAgICAgIH0KICAgIF0sCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgImRlcGVuZGVuY2llcyI6IHt9LAogICAgICAgICJrZXJuZWxfaW5mbyI6IHsKICAgICAgICAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgogICAgICAgIH0sCiAgICAgICAgImtlcm5lbHNwZWMiOiB7CiAgICAgICAgICAgICJkaXNwbGF5X25hbWUiOiAic3luYXBzZV9weXNwYXJrIiwKICAgICAgICAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgogICAgICAgIH0sCiAgICAgICAgImxhbmd1YWdlX2luZm8iOiB7CiAgICAgICAgICAgICJuYW1lIjogInB5dGhvbiIKICAgICAgICB9LAogICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICJsYW5ndWFnZSI6ICJweXRob24iLAogICAgICAgICAgICAibGFuZ3VhZ2VfZ3JvdXAiOiAic3luYXBzZV9weXNwYXJrIiwKICAgICAgICAgICAgIm1zX3NwZWxsX2NoZWNrIjogewogICAgICAgICAgICAgICAgIm1zX3NwZWxsX2NoZWNrX2xhbmd1YWdlIjogImVuIgogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAibnRlcmFjdCI6IHsKICAgICAgICAgICAgInZlcnNpb24iOiAibnRlcmFjdC1mcm9udC1lbmRAMS4wLjAiCiAgICAgICAgfSwKICAgICAgICAic3BhcmtfY29tcHV0ZSI6IHsKICAgICAgICAgICAgImNvbXB1dGVfaWQiOiAiL3RyaWRlbnQvZGVmYXVsdCIsCiAgICAgICAgICAgICJzZXNzaW9uX29wdGlvbnMiOiB7CiAgICAgICAgICAgICAgICAiY29uZiI6IHsKICAgICAgICAgICAgICAgICAgICAic3Bhcmsuc3luYXBzZS5uYnMuc2Vzc2lvbi50aW1lb3V0IjogIjEyMDAwMDAiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9LAogICAgIm5iZm9ybWF0IjogNCwKICAgICJuYmZvcm1hdF9taW5vciI6IDUKfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2718' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:22 GMT + ETag: + - '""' + Location: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/5dff0ea3-709b-443a-a8dd-9a18c31140cf + Pragma: + - no-cache + RequestId: + - 9d025594-01e0-4f9b-9ef0-539e0a30f6fd + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 5dff0ea3-709b-443a-a8dd-9a18c31140cf + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/5dff0ea3-709b-443a-a8dd-9a18c31140cf + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2025-11-23T22:11:22.5857794", + "lastUpdatedTimeUtc": "2025-11-23T22:11:24.8201686", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:43 GMT + Location: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/5dff0ea3-709b-443a-a8dd-9a18c31140cf/result + Pragma: + - no-cache + RequestId: + - 854a89dd-3016-4838-84d9-c4f99f3c1cfe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 5dff0ea3-709b-443a-a8dd-9a18c31140cf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1/operations/5dff0ea3-709b-443a-a8dd-9a18c31140cf/result + response: + body: + string: '{"id": "c41432d7-0776-4655-999c-092f00d36d16", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "08fd69b8-d200-4889-96eb-1dea478a19e0"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sun, 23 Nov 2025 22:11:43 GMT + Pragma: + - no-cache + RequestId: + - bccaaefe-f2c8-4767-8797-b4b035585417 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "08fd69b8-d200-4889-96eb-1dea478a19e0", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3083' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:43 GMT + Pragma: + - no-cache + RequestId: + - c6c12a92-c2ff-4ab4-9c7a-e9dad8ce197e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items + response: + body: + string: '{"value": [{"id": "c41432d7-0776-4655-999c-092f00d36d16", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "08fd69b8-d200-4889-96eb-1dea478a19e0"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:43 GMT + Pragma: + - no-cache + RequestId: + - a83e0ee6-60fe-4e4c-8465-634c80fc9446 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"enabled": true, "configuration": {"type": "Cron", "startDateTime": "2024-01-23T00:00:00", + "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": "Central Standard Time", + "interval": 10}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '190' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items/c41432d7-0776-4655-999c-092f00d36d16/jobs/RunNotebook/schedules + response: + body: + string: '{"id": "2fa40698-9069-4a11-9044-3eba370e1929", "enabled": true, "createdDateTime": + "2025-11-23T22:11:44.8966667", "configuration": {"type": "Cron", "startDateTime": + "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", "localTimeZoneId": + "Central Standard Time", "interval": 10}, "owner": {"id": "00000000-0000-0000-0000-000000000003", + "type": "ServicePrincipal"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '255' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:44 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items/c41432d7-0776-4655-999c-092f00d36d16/jobs/RunNotebook/schedules/2fa40698-9069-4a11-9044-3eba370e1929 + Pragma: + - no-cache + RequestId: + - d0ded132-9966-4419-a7de-86b9536cc970 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "08fd69b8-d200-4889-96eb-1dea478a19e0", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3083' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:46 GMT + Pragma: + - no-cache + RequestId: + - bb64696f-10c2-4f9d-bd80-9e04ece9a3db + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items + response: + body: + string: '{"value": [{"id": "c41432d7-0776-4655-999c-092f00d36d16", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "08fd69b8-d200-4889-96eb-1dea478a19e0"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:47 GMT + Pragma: + - no-cache + RequestId: + - 208c0b20-cafc-49e4-8b95-cde5b529cb0e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items/c41432d7-0776-4655-999c-092f00d36d16/jobs/RunNotebook/schedules + response: + body: + string: '{"value": [{"id": "2fa40698-9069-4a11-9044-3eba370e1929", "enabled": + true, "createdDateTime": "2025-11-23T22:11:44.8966667", "configuration": {"type": + "Cron", "startDateTime": "2024-01-23T00:00:00", "endDateTime": "2024-10-07T23:59:00", + "localTimeZoneId": "Central Standard Time", "interval": 10}, "owner": {"id": + "00000000-0000-0000-0000-000000000003", "type": "ServicePrincipal"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '265' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:46 GMT + Pragma: + - no-cache + RequestId: + - 4299b2f2-b05c-4faa-b2b2-a14bdd8783db + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "08fd69b8-d200-4889-96eb-1dea478a19e0", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3083' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:47 GMT + Pragma: + - no-cache + RequestId: + - 145c32cc-d457-43ec-95b1-b7537ea8c830 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items + response: + body: + string: '{"value": [{"id": "c41432d7-0776-4655-999c-092f00d36d16", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "08fd69b8-d200-4889-96eb-1dea478a19e0"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:47 GMT + Pragma: + - no-cache + RequestId: + - 586bce5a-6dc5-4d1c-b5ee-77f3f5d08a5e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items/c41432d7-0776-4655-999c-092f00d36d16/jobs/RunNotebook/schedules/2fa40698-9069-4a11-9044-3eba370e1929 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:11:47 GMT + Pragma: + - no-cache + RequestId: + - bc0548e4-a10f-488a-a7c2-d3f4613d8924 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "08fd69b8-d200-4889-96eb-1dea478a19e0", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3083' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:47 GMT + Pragma: + - no-cache + RequestId: + - de7c4a00-01d0-4fb4-9ac7-7e47403cd88b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items + response: + body: + string: '{"value": [{"id": "c41432d7-0776-4655-999c-092f00d36d16", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "08fd69b8-d200-4889-96eb-1dea478a19e0"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:48 GMT + Pragma: + - no-cache + RequestId: + - 881a758c-425b-4ed7-8b44-170935904777 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items/c41432d7-0776-4655-999c-092f00d36d16/jobs/RunNotebook/schedules + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:47 GMT + Pragma: + - no-cache + RequestId: + - 881958c9-ff05-4c40-9c0d-b4b953789bf5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "08fd69b8-d200-4889-96eb-1dea478a19e0", "displayName": + "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3083' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:48 GMT + Pragma: + - no-cache + RequestId: + - da56720a-8f4c-4afb-9754-bc78f0e5e2de + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items + response: + body: + string: '{"value": [{"id": "c41432d7-0776-4655-999c-092f00d36d16", "type": "Notebook", + "displayName": "fabcli000001", "description": "Imported from fab", "workspaceId": + "08fd69b8-d200-4889-96eb-1dea478a19e0"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 23 Nov 2025 22:11:48 GMT + Pragma: + - no-cache + RequestId: + - a18ae0c1-ecf7-45dd-abca-0123480e3b09 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.2.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/08fd69b8-d200-4889-96eb-1dea478a19e0/items/c41432d7-0776-4655-999c-092f00d36d16 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Sun, 23 Nov 2025 22:11:48 GMT + Pragma: + - no-cache + RequestId: + - c233a657-864d-4ed1-b8e2-807b7a0ba44f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-north-europe-f-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/test_jobs.py b/tests/test_commands/test_jobs.py index 6d30786f6..952d07724 100644 --- a/tests/test_commands/test_jobs.py +++ b/tests/test_commands/test_jobs.py @@ -6,6 +6,10 @@ import os import re import time +import shutil +from unittest.mock import patch + +import pytest import fabric_cli.commands.fs.fab_fs_set as fab_fs_set import fabric_cli.commands.jobs.fab_jobs_run as fab_jobs_run @@ -14,6 +18,7 @@ import fabric_cli.commands.jobs.fab_jobs_run_sch as fab_jobs_run_sch import fabric_cli.commands.jobs.fab_jobs_run_status as fab_jobs_run_status import fabric_cli.commands.jobs.fab_jobs_run_update as fab_jobs_run_update +import fabric_cli.commands.jobs.fab_jobs_run_rm as fab_jobs_run_rm import fabric_cli.core.fab_state_config as state_config import fabric_cli.utils.fab_cmd_job_utils as utils_job from fabric_cli.core import fab_constant as constant @@ -22,7 +27,6 @@ from fabric_cli.core.hiearchy.fab_item import Item from fabric_cli.utils import fab_storage as utils_storage - class TestJobs: # region JOB RUN def test_run_job_notebook(self, item_factory, cli_executor, mock_questionary_print): @@ -501,7 +505,7 @@ def test_run_spark_job(self, item_factory, cli_executor, mock_questionary_print) mock_questionary_print.assert_called() assert calls[-1].args[0] == "∟ Job instance status: Completed" - def test_run_pipeline(self, item_factory, cli_executor, mock_questionary_print): + def test_run_pipeline(self, item_factory, cli_executor, mock_questionary_print, tmp_path): # Setup lakehouse = item_factory(ItemType.LAKEHOUSE) fb_lakehouse = handle_context.get_command_context(lakehouse.full_path) @@ -519,30 +523,36 @@ def test_run_pipeline(self, item_factory, cli_executor, mock_questionary_print): "default_lakehouse_workspace_id": workspace_id, } nb_path = os.path.join(items_path, "example.Notebook") - nb_content_path = os.path.join(nb_path, "notebook-content.ipynb") - nb_json = json.loads(open(nb_content_path).read()) - nb_json["metadata"]["dependencies"]["lakehouse"] = lakehouse_dependency - json.dump(nb_json, open(nb_content_path, "w")) - notebook = item_factory(ItemType.NOTEBOOK, content_path=nb_path) + temp_nb_path = os.path.join(tmp_path, "example.Notebook") + temp_nb_content_path = os.path.join(temp_nb_path, "notebook-content.ipynb") + shutil.copytree(nb_path, temp_nb_path, dirs_exist_ok=True) + + nb_json = json.loads(open(temp_nb_content_path).read()) + nb_json["metadata"]["dependencies"]["lakehouse"] = lakehouse_dependency + json.dump(nb_json, open(temp_nb_content_path, "w")) + notebook = item_factory(ItemType.NOTEBOOK, content_path=temp_nb_path) fb_notebook = handle_context.get_command_context(notebook.full_path) notebook_id = fb_notebook.id ws_id = fb_notebook.parent.id pipeline_path = os.path.join(items_path, "example.DataPipeline") - pipeline_content_path = os.path.join(pipeline_path, "pipeline-content.json") - pipeline_json = json.loads(open(pipeline_content_path).read()) + temp_pipeline_path = os.path.join(tmp_path, "example.DataPipeline") + temp_pipeline_content_path = os.path.join(temp_pipeline_path, "pipeline-content.json") + shutil.copytree(pipeline_path, temp_pipeline_path, dirs_exist_ok=True) + + pipeline_json = json.loads(open(temp_pipeline_content_path).read()) pipeline_json["properties"]["activities"][0]["typeProperties"][ "notebookId" ] = notebook_id pipeline_json["properties"]["activities"][0]["typeProperties"][ "workspaceId" ] = ws_id - json.dump(pipeline_json, open(pipeline_content_path, "w")) + json.dump(pipeline_json, open(temp_pipeline_content_path, "w")) - pipeline = item_factory(ItemType.DATA_PIPELINE, content_path=pipeline_path) + pipeline = item_factory(ItemType.DATA_PIPELINE, content_path=temp_pipeline_path) # Execute command cli_executor.exec_command(f"job run {pipeline.full_path}") @@ -552,7 +562,7 @@ def test_run_pipeline(self, item_factory, cli_executor, mock_questionary_print): mock_questionary_print.assert_called() assert calls[-1].args[0] == "∟ Job instance status: Completed" - def test_run_param_job(self, item_factory, cli_executor, mock_questionary_print): + def test_run_param_job(self, item_factory, cli_executor, mock_questionary_print, tmp_path): # Setup lakehouse = item_factory(ItemType.LAKEHOUSE) fb_lakehouse = handle_context.get_command_context(lakehouse.full_path) @@ -568,12 +578,15 @@ def test_run_param_job(self, item_factory, cli_executor, mock_questionary_print) os.path.dirname(os.path.realpath(__file__)), "data/sample_items/example.Notebook", ) - nb_content_path = os.path.join(nb_path, "notebook-content.ipynb") - nb_json = json.loads(open(nb_content_path).read()) - nb_json["metadata"]["dependencies"]["lakehouse"] = lakehouse_dependency - json.dump(nb_json, open(nb_content_path, "w")) - notebook = item_factory(ItemType.NOTEBOOK, content_path=nb_path) + temp_nb_path = os.path.join(tmp_path, "example.Notebook") + temp_nb_content_path = os.path.join(temp_nb_path, "notebook-content.ipynb") + shutil.copytree(nb_path, temp_nb_path, dirs_exist_ok=True) + + nb_json = json.loads(open(temp_nb_content_path).read()) + nb_json["metadata"]["dependencies"]["lakehouse"] = lakehouse_dependency + json.dump(nb_json, open(temp_nb_content_path, "w")) + notebook = item_factory(ItemType.NOTEBOOK, content_path=temp_nb_path) _params = [ "string_param:string=new_value", @@ -602,18 +615,21 @@ def test_run_param_job(self, item_factory, cli_executor, mock_questionary_print) os.path.dirname(os.path.realpath(__file__)), "data/sample_items/example.DataPipeline", ) - pipeline_content_path = os.path.join(pipeline_path, "pipeline-content.json") - pipeline_json = json.loads(open(pipeline_content_path).read()) + temp_pipeline_path = os.path.join(tmp_path, "example.DataPipeline") + temp_pipeline_content_path = os.path.join(temp_pipeline_path, "pipeline-content.json") + shutil.copytree(pipeline_path, temp_pipeline_path, dirs_exist_ok=True) + + pipeline_json = json.loads(open(temp_pipeline_content_path).read()) pipeline_json["properties"]["activities"][0]["typeProperties"][ "notebookId" ] = notebook_id pipeline_json["properties"]["activities"][0]["typeProperties"][ "workspaceId" ] = ws_id - json.dump(pipeline_json, open(pipeline_content_path, "w")) + json.dump(pipeline_json, open(temp_pipeline_content_path, "w")) - pipeline = item_factory(ItemType.DATA_PIPELINE, content_path=pipeline_path) + pipeline = item_factory(ItemType.DATA_PIPELINE, content_path=temp_pipeline_path) _params = [ "string_param:string=new_value", @@ -641,6 +657,7 @@ def test_run_invalid_param_types_failure( cli_executor, assert_fabric_cli_error, mock_fab_ui_print_error, + tmp_path ): # Setup lakehouse = item_factory(ItemType.LAKEHOUSE) @@ -657,12 +674,14 @@ def test_run_invalid_param_types_failure( os.path.dirname(os.path.realpath(__file__)), "data/sample_items/example.Notebook", ) - nb_content_path = os.path.join(nb_path, "notebook-content.ipynb") - nb_json = json.loads(open(nb_content_path).read()) - nb_json["metadata"]["dependencies"]["lakehouse"] = lakehouse_dependency - json.dump(nb_json, open(nb_content_path, "w")) + temp_nb_path = os.path.join(tmp_path, "example.Notebook") + temp_nb_content_path = os.path.join(temp_nb_path, "notebook-content.ipynb") + shutil.copytree(nb_path, temp_nb_path, dirs_exist_ok=True) - notebook = item_factory(ItemType.NOTEBOOK, content_path=nb_path) + nb_json = json.loads(open(temp_nb_content_path).read()) + nb_json["metadata"]["dependencies"]["lakehouse"] = lakehouse_dependency + json.dump(nb_json, open(temp_nb_content_path, "w")) + notebook = item_factory(ItemType.NOTEBOOK, content_path=temp_nb_path) _params = ["string_param:string=new_value", "wrong_param:nonvalid=10"] # Execute command @@ -699,18 +718,20 @@ def test_run_invalid_param_types_failure( os.path.dirname(os.path.realpath(__file__)), "data/sample_items/example.DataPipeline", ) - pipeline_content_path = os.path.join(pipeline_path, "pipeline-content.json") + temp_pipeline_path = os.path.join(tmp_path, "example.DataPipeline") + temp_pipeline_content_path = os.path.join(temp_pipeline_path, "pipeline-content.json") + shutil.copytree(pipeline_path, temp_pipeline_path, dirs_exist_ok=True) - pipeline_json = json.loads(open(pipeline_content_path).read()) + pipeline_json = json.loads(open(temp_pipeline_content_path).read()) pipeline_json["properties"]["activities"][0]["typeProperties"][ "notebookId" ] = notebook_id pipeline_json["properties"]["activities"][0]["typeProperties"][ "workspaceId" ] = ws_id - json.dump(pipeline_json, open(pipeline_content_path, "w")) + json.dump(pipeline_json, open(temp_pipeline_content_path, "w")) - pipeline = item_factory(ItemType.DATA_PIPELINE, content_path=pipeline_path) + pipeline = item_factory(ItemType.DATA_PIPELINE, content_path=temp_pipeline_path) # Execute command _params = ["string_param:string=new_value", "wrong_param:nonvalid=10"] @@ -802,6 +823,131 @@ def test_run_table_maintenance( calls = mock_questionary_print.call_args_list assert calls[-1].args[0] == "∟ Job instance status: Completed" + def test_run_schedule_rm_invalid_param_types_failure( + self, + item_factory, + cli_executor, + assert_fabric_cli_error, + ): + # Setup notebook and without schedule + nb_path = os.path.join( + os.path.dirname(os.path.realpath(__file__)), + "data/sample_items/example.Notebook", + ) + notebook = item_factory(ItemType.NOTEBOOK, content_path=nb_path) + + # Test unexisting schedule removal + cli_executor.exec_command(f"job run-rm {notebook.full_path} --id 00000000-0000-0000-0000-000000000000 --force") + + assert_fabric_cli_error( + constant.ERROR_NOT_FOUND, + "The requested resource could not be found", + ) + + # Test bad item path + cli_executor.exec_command(f"job run-rm /bad_path/ --id 00000000-0000-0000-0000-000000000000 --force") + + assert_fabric_cli_error( + constant.ERROR_NOT_FOUND, + "The requested resource could not be found", + ) + + + @pytest.mark.parametrize("item_type", + [(ItemType.NOTEBOOK), + (ItemType.DATA_PIPELINE), + (ItemType.SPARK_JOB_DEFINITION)]) + def test_run_schedule_rm_success(self, cli_executor, item_factory, mock_questionary_print, item_type): + # Create item + item_full_path = os.path.join( + os.path.dirname(os.path.realpath(__file__)), + f"data/sample_items/example.{item_type.value}", + ) + fabric_item = item_factory(item_type, content_path=item_full_path) + + # Init schedule + config = "{'type': 'Cron', 'startDateTime': '2024-01-23T00:00:00', 'endDateTime': '2024-10-07T23:59:00', 'localTimeZoneId': 'Central Standard Time', 'interval': 10}" + input_config = "{'enabled': true, 'configuration': " + config + "}" + + cli_executor.exec_command(f"job run-sch {fabric_item.full_path} -i {input_config}") + + time.sleep(2) + job_run_list(fabric_item.full_path, schedule=True) + scheduled_id = mock_questionary_print.call_args_list[-1].args[0].split()[0] + + # Remove schedules with rm command + cli_executor.exec_command(f"job run-rm {fabric_item.full_path} --id {scheduled_id} --force") + + # Check schedule removal + mock_questionary_print.reset_mock() + job_run_list(fabric_item.full_path, schedule=True) + assert len(mock_questionary_print.call_args_list) == 0 + + def test_run_schedule_rm_without_force_success(self, cli_executor, item_factory, mock_questionary_confirm, mock_questionary_print, mock_print_warning): + # Setup notebook and without schedule + nb_path = os.path.join( + os.path.dirname(os.path.realpath(__file__)), + "data/sample_items/example.Notebook", + ) + fabric_item = item_factory(ItemType.NOTEBOOK, content_path=nb_path) + + # Init schedules for notebook + config = "{'type': 'Cron', 'startDateTime': '2024-01-23T00:00:00', 'endDateTime': '2024-10-07T23:59:00', 'localTimeZoneId': 'Central Standard Time', 'interval': 10}" + input_config = "{'enabled': true, 'configuration': " + config + "}" + + cli_executor.exec_command(f"job run-sch {fabric_item.full_path} -i {input_config}") + + time.sleep(2) + job_run_list(fabric_item.full_path, schedule=True) + scheduled_id = mock_questionary_print.call_args_list[-1].args[0].split()[0] + + # Execute command without --force + cli_executor.exec_command(f"job run-rm {fabric_item.full_path} --id {scheduled_id}") + + # Ask confirmation + mock_questionary_confirm.assert_called() + + # Check confirmation message + assert mock_print_warning.call_args_list[0][0][0] == f"You are about to delete schedule '{scheduled_id}' from '{fabric_item.name}'. This action cannot be undone." + + # Check schedule removal + mock_questionary_print.reset_mock() + job_run_list(fabric_item.full_path, schedule=True) + assert len(mock_questionary_print.call_args_list) == 0 + + def test_run_schedule_rm_without_force_cancel_operation_success(self, cli_executor, item_factory, assert_fabric_cli_error, mock_questionary_print, mock_print_warning): + # Setup notebook and without schedule + nb_path = os.path.join( + os.path.dirname(os.path.realpath(__file__)), + "data/sample_items/example.Notebook", + ) + fabric_item = item_factory(ItemType.NOTEBOOK, content_path=nb_path) + + # Init schedules for notebook + config = "{'type': 'Cron', 'startDateTime': '2024-01-23T00:00:00', 'endDateTime': '2024-10-07T23:59:00', 'localTimeZoneId': 'Central Standard Time', 'interval': 10}" + input_config = "{'enabled': true, 'configuration': " + config + "}" + + cli_executor.exec_command(f"job run-sch {fabric_item.full_path} -i {input_config}") + + time.sleep(2) + job_run_list(fabric_item.full_path, schedule=True) + scheduled_id = mock_questionary_print.call_args_list[-1].args[0].split()[0] + + with patch("questionary.confirm") as mock_confirm: + mock_confirm.return_value.ask.return_value = False + + # Execute command without --force + cli_executor.exec_command(f"job run-rm {fabric_item.full_path} --id {scheduled_id}") + + mock_print_warning.assert_called_once() + + # Check confirmation message + assert mock_print_warning.call_args_list[0][0][0] == f"You are about to delete schedule '{scheduled_id}' from '{fabric_item.name}'. This action cannot be undone." + + # The schedule should still exist + mock_questionary_print.reset_mock() + job_run_list(fabric_item.full_path, schedule=True) + assert len(mock_questionary_print.call_args_list) != 0 # region Helper Methods def job_run(path, params=None, config=None, input=None, timeout=None):