From 13d723c98a2923e56b39efe5076a63f24c7c10dc Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Sun, 26 Jul 2026 06:59:43 +0000 Subject: [PATCH 1/7] Create agents for planing/implement/test new capabilities provided from skill --- .github/agents/implementer.agent.md | 62 ++ .github/agents/new-item-type.agent.md | 606 ------------------ .github/agents/orchestrator.agent.md | 74 +++ .github/agents/planner.agent.md | 61 ++ .github/agents/tester.agent.md | 60 ++ .github/skills/onboard-item-type/SKILL.md | 77 +++ .../onboard-item-type/references/execute.md | 216 +++++++ .../onboard-item-type/references/plan.md | 140 ++++ .../onboard-item-type/references/record.md | 100 +++ .../onboard-item-type/references/test.md | 68 ++ 10 files changed, 858 insertions(+), 606 deletions(-) create mode 100644 .github/agents/implementer.agent.md delete mode 100644 .github/agents/new-item-type.agent.md create mode 100644 .github/agents/orchestrator.agent.md create mode 100644 .github/agents/planner.agent.md create mode 100644 .github/agents/tester.agent.md create mode 100644 .github/skills/onboard-item-type/SKILL.md create mode 100644 .github/skills/onboard-item-type/references/execute.md create mode 100644 .github/skills/onboard-item-type/references/plan.md create mode 100644 .github/skills/onboard-item-type/references/record.md create mode 100644 .github/skills/onboard-item-type/references/test.md diff --git a/.github/agents/implementer.agent.md b/.github/agents/implementer.agent.md new file mode 100644 index 000000000..0cca05c12 --- /dev/null +++ b/.github/agents/implementer.agent.md @@ -0,0 +1,62 @@ +--- +name: Implementer +description: Generic implementation agent for the Fabric CLI. Takes an approved plan, loads any matching skill, and makes the source, configuration, changelog, and documentation changes it describes. Does not update or record tests — that is the Tester's job. +argument-hint: Paste the plan from the Planner agent (or describe the change if you already have the details) +tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file', 'editFiles'] +--- + +# Implementer + +You are the **Implementer**. You take an **approved plan** and implement all +**source code, configuration, changelog, and documentation** changes it +describes. You are domain-agnostic — the *how* comes from the plan and its skill. + +> **Prerequisite:** You need the plan from the **Planner** agent. If it is +> missing, ask for it or ask the user to run the Planner first. Trust the plan's +> verified facts; if a value is missing or looks wrong, flag it and ask — do not +> re-derive everything from scratch. + +> **Do NOT touch tests or record cassettes.** Test parametrization and cassette +> recording belong to the **Tester** agent. Leave the tree in a state the Tester +> can pick up, and note what the Tester still needs to do. + +## Skill-loading protocol (do this first) + +1. **Identify the skill** named or implied by the plan. Read its `SKILL.md`, then + open the **execution reference** it points to (e.g., `references/execute.md`) + and follow that checklist. + - Example: onboarding a new item type → the `onboard-item-type` skill's + [references/execute.md](../skills/onboard-item-type/references/execute.md). +2. **Execute only the applicable steps** the plan marks for this task. +3. **No skill?** Implement the plan's step list directly, following existing + repository patterns. + +## Safety rules + +- **Never hardcode secrets, tokens, or credentials** in code or payloads. +- **Use deterministic default content** — no real IDs. +- **Validate inputs at boundaries** and raise `FabricCLIError` with the + appropriate error code (see `errors/` and `fab_constant`). +- **Follow existing patterns** — mirror the closest reference named in the plan. +- **Maintain alphabetical ordering** in enums and mappings where the code does. +- **Only make changes the plan requires.** No unrelated refactors, comments, or + "improvements." + +## Workflow + +1. Read the plan's Files to change, Verified facts, and Step list. +2. Read each target file **before** editing it. +3. Apply the changes step by step; after each step, self-verify with the skill's + Verification Table (or a targeted `grep`). +4. Run the fast validation the plan/skill specifies, e.g.: + ```bash + black src/ && mypy src/ --ignore-missing-imports + ``` +5. Fix any errors you introduced before handing off. + +## Hand-off + +Summarize the files you changed and exactly what the **Tester** still needs to +do (which parametrization lists to touch, whether recording is required). Tell +the user to run the **Tester** agent next with the same plan — or to let the +**Orchestrator** agent continue the flow. diff --git a/.github/agents/new-item-type.agent.md b/.github/agents/new-item-type.agent.md deleted file mode 100644 index ebdf8067c..000000000 --- a/.github/agents/new-item-type.agent.md +++ /dev/null @@ -1,606 +0,0 @@ ---- -name: New Item Type -description: Guide and assist with onboarding a new Microsoft Fabric item type into the Fabric CLI -argument-hint: Tell me which Fabric item type you want to add (e.g., "Add support for DataActivator") -tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file'] ---- - -# New Item Type Onboarding Agent - -> **Important:** If you are unsure about any detail -- such as the correct API URI, portal slug, whether the item supports definitions, OneLake folders, jobs, or any other capability -- **always ask the requestor for clarification before proceeding**. - -## Safety Rules - -- **Never hardcode secrets, tokens, or credentials** in payloads or tests -- **Use deterministic test data** -- no real tenant IDs, workspace IDs, or user emails -- **Validate all user-provided parameters** before constructing API payloads -- **Raise `FabricCLIError`** with appropriate error codes for invalid input -- **Follow existing patterns** -- consistency is more important than cleverness - ---- - -## Prerequisites - -Before starting, gather the following information about the new item type: - -| Information | Example | Required | -|-------------|---------|----------| -| **Display name** (PascalCase) | `Map` | Yes | -| **API plural URI** | `maps` | Yes | -| **Portal URI slug** | `maps` | Yes | -| **Has definition/payload** | Yes / No | Yes | -| **Definition formats** | `ipynb`, `TMDL`, etc. | If has definition | -| **OneLake folders** | `Tables`, `Files` | If applicable | -| **Supports jobs** | Yes / No | Yes | -| **Job type name** | `RunNotebook`, `Pipeline` | If supports jobs | -| **Creation parameters** | `enableSchemas`, `connectionId` | If applicable | -| **Required creation params** | Subset of above | If applicable | -| **Optional creation params** | Subset of above | If applicable | -| **Import format handling** | Standard / Custom | Yes | - -### API Support Matrix - -Determine which Fabric REST APIs the new item type supports. This directly impacts which CLI commands to enable: - -| API | CLI Commands Enabled | How to Verify | -|-----|---------------------|---------------| -| **Get Item Definition** (`getItemDefinition`) | `export`, `cp` (as source), `mv` (as source) | Check REST API docs for `POST /workspaces/{id}/{items}/{id}/getDefinition` | -| **Update Item Definition** (`updateItemDefinition`) | `cp` (as target when item exists), `mv` (update after create) | Check REST API docs for `POST /workspaces/{id}/{items}/{id}/updateDefinition` | -| **Create with Definition** (`createItem` with `definition` body) | `import`, `cp` (as target), `mv` (create at destination) | Check REST API docs for `POST /workspaces/{id}/{items}` with `definition` in body | - -> **Rule of thumb:** If the item supports all three definition APIs (`getItemDefinition`, `updateItemDefinition`, and `createItem` with definition), it should be added to `export`, `import`, `cp`, and `mv` commands in `command_support.yaml`. If it supports only `getItemDefinition`, add it only to `export`. - -If the contributor doesn't know all values, help them find the information from the [Fabric REST API docs](https://learn.microsoft.com/en-us/rest/api/fabric/). - ---- - -## Common Patterns by Item Complexity - -Use this table to determine which steps apply to the new item type before reading the steps themselves. - -### Simple Item (no definition, no params) - -Only needs Steps 1-3, 9 (add to the standard multi-case match), 10a (review `command_support.yaml` for `unsupported_items`), 11 (ALL_ITEM_TYPES + basic_item_parametrize), 12, and 13. - -**Examples:** `Dashboard`, `Datamart` - -### Item with Definition Support (most common) - -Needs Steps 1-4, 9, 10 (export + import + cp + mv), 11 (ALL_ITEM_TYPES + basic_item_parametrize + mv params + export params + set metadata params), 12, and 13. - -**Examples:** `Map`, `CopyJob`, `Dataflow`, `GraphQLApi`, `UserDataFunction` - -### Item with Creation Parameters - -Needs Steps 1-3, 7-9, 10, 11 (ALL_ITEM_TYPES but NOT basic_item_parametrize), 12, and 13. - -**Examples:** `Lakehouse` (enableSchemas), `Warehouse` (enableCaseInsensitive), `KQLDatabase` (dbType, eventhouseId) - -### Item with OneLake Folders - -Needs Steps 1-3, 5, 9, 10, 11, 12, and 13. - -**Examples:** `Lakehouse` (Files, Tables), `Warehouse` (Files, Tables), `KQLDatabase` (Tables, Shortcut) - -### Item with Job Support - -Needs Steps 1-3, 6, 9, 10, 11, 12, and 13. - -**Examples:** `Notebook` (RunNotebook), `DataPipeline` (Pipeline), `SparkJobDefinition` (sparkjob) - -### Full-Featured Item (all capabilities) - -Needs all steps 1-13. - -**Example:** `Notebook` -- has definition formats, job support, and custom creation payload. - ---- - -## Existing Item Types to Study - -| Item Type | Enum | Complexity | Good Reference For | -|-----------|------|------------|-------------------| -| `Dashboard` | `DASHBOARD` | Simple | Minimal integration | -| `Map` | `MAP` | Standard with definitions | Definition support (export/import/mv/cp), no creation params, no jobs/folders | -| `Lakehouse` | `LAKEHOUSE` | Medium | Creation params, OneLake folders, jobs | -| `Notebook` | `NOTEBOOK` | Full | Definitions, jobs, custom payload | -| `SemanticModel` | `SEMANTIC_MODEL` | Medium | Definition formats (TMDL/TMSL), payload templates | -| `Report` | `REPORT` | Medium | Dependency creation (auto-creates SemanticModel) | -| `MirroredDatabase` | `MIRRORED_DATABASE` | Complex | Multiple payload variants, connection params | -| `MountedDataFactory` | `MOUNTED_DATA_FACTORY` | Medium | Required params, custom payload | - ---- - -## Phases - -Follow these four phases in order. Do not start writing code until you have completed the Gather and Classify phases. - -1. **Gather** -- Collect all prerequisite information from the requestor (see Prerequisites table above). If anything is missing or unclear, ask before continuing. -2. **Classify** -- Use the Common Patterns table above to determine the item's complexity level and which steps apply. -3. **Execute** -- Walk through only the applicable steps from the Integration Checklist below. -4. **Validate** -- Run the verification commands from the Verification Table to confirm completeness. - ---- - -## Integration Checklist - -Every new item type requires changes across these files. Walk the contributor through each step in order: - -### Step 1 -- Register the Item Type Enum - -**File:** `src/fabric_cli/core/fab_types.py` - -Add the new member to the `ItemType` enum class, in the `# API` section, maintaining alphabetical order within that section. - -```python -# In class ItemType(_BaseItemType): -# API section -NEW_ITEM = "NewItem" -``` - -**Rules:** -- The enum member name uses `UPPER_SNAKE_CASE` -- The enum value uses `PascalCase` matching the Fabric API's `type` field exactly -- Place it alphabetically among the other `# API` entries - -### Step 2 -- Add API Format Mapping - -**File:** `src/fabric_cli/core/fab_types.py` - -Add an entry to the `format_mapping` dictionary. This maps the item type to its Fabric REST API URI segment. - -```python -# In format_mapping dict: -ItemType.NEW_ITEM: "newItems", -``` - -**Rules:** -- The value is the **plural camelCase** form used in the REST API URL: `https://api.fabric.microsoft.com/v1/workspaces/{id}/{value}` -- Check the [Fabric REST API reference](https://learn.microsoft.com/en-us/rest/api/fabric/) for the correct value -- Maintain alphabetical order by `ItemType` member name - -### Step 3 -- Add Portal URI Mapping - -**File:** `src/fabric_cli/core/fab_types.py` - -Add an entry to the `uri_mapping` dictionary. This maps the item type to its Fabric Portal URL segment for the `fab open` command. - -```python -# In uri_mapping dict: -ItemType.NEW_ITEM: "newitems", -``` - -**Rules:** -- The value is the **lowercase** slug used in the portal URL: `https://app.fabric.microsoft.com/groups/{ws_id}/{value}/{item_id}` -- Check the Fabric portal URL by opening an item of this type in the browser -- Maintain alphabetical order by `ItemType` member name - -### Step 4 -- Add Definition Format Mapping (if applicable) - -**File:** `src/fabric_cli/core/fab_types.py` - -If the item type supports `export`/`import` with definition payloads, add an entry to `definition_format_mapping`. - -```python -# In definition_format_mapping dict: -ItemType.NEW_ITEM: {"default": ""}, -``` - -**Rules:** -- `"default"` key is required -- it defines the query parameter appended when no explicit format is requested -- Additional keys map user-specified format names to query strings (e.g., `"TMDL": "?format=TMDL"`) -- If the item has no definition support, skip this step -- Maintain alphabetical order by `ItemType` member name - -### Step 5 -- Add OneLake Folders (if applicable) - -**File:** `src/fabric_cli/core/fab_types.py` - -If the item type exposes OneLake folders (e.g., `Tables`, `Files`), add: - -> **Ask the requestor:** "Does this item type expose OneLake folders (e.g., Tables, Files)? If so, which folders does it expose, and are any of them writable?" Do not guess -- OneLake folder configuration varies per item type and incorrect values will cause runtime errors. - -1. A new `Enum` class for the folders: -```python -class NewItemFolders(Enum): - TABLES = "Tables" - FILES = "Files" -``` - -2. An entry in `ItemFoldersMap`: -```python -ItemType.NEW_ITEM: [folder.value for folder in NewItemFolders], -``` - -3. If any folders are writable via OneLake, add to `ItemOnelakeWritableFoldersMap`. - -### Step 6 -- Add Job Type Mapping (if applicable) - -**File:** `src/fabric_cli/core/fab_types.py` - -If the item type supports on-demand job execution (e.g., running a notebook, triggering a pipeline), add: - -> **Ask the requestor:** "Does this item type support on-demand job execution? If so, what is the exact job type name used by the Fabric REST API (e.g., `RunNotebook`, `Pipeline`)?" The job type string must match the API exactly -- do not infer it. - -1. A new member to the `FabricJobType` enum if the job type doesn't already exist: -```python -class FabricJobType(Enum): - NEW_JOB = "NewJobType" -``` - -2. An entry in `ITJobMap`: -```python -ItemType.NEW_ITEM: FabricJobType.NEW_JOB, -``` - -**Rules:** -- The job type value must match the Fabric REST API's job type string exactly - -### Step 7 -- Add Creation Parameters (if applicable) - -**File:** `src/fabric_cli/utils/fab_cmd_mkdir_utils.py` - -In the `get_params_per_item_type()` function, add a case for the new item type: - -```python -case ItemType.NEW_ITEM: - required_params = ["paramA"] # params that MUST be provided - optional_params = ["paramB"] # params that MAY be provided -``` - -### Step 8 -- Add Creation Payload Logic (if applicable) - -**File:** `src/fabric_cli/utils/fab_cmd_mkdir_utils.py` - -In the `add_type_specific_payload()` function, add a case for the new item type: - -```python -case ItemType.NEW_ITEM: - # Option A: Inline payload - payload_dict["definition"] = { - "parts": [{ - "path": "content.json", - "payload": "", - "payloadType": "InlineBase64", - }] - } - - # Option B: File-based payload template - payload_folder = "Blank.NewItem" - payload_path = os.path.join( - project_root, "commands", "fs", "payloads", payload_folder - ) - payload_dict["definition"] = _create_payload(payload_path, params) - - # Option C: creationPayload (no definition) - payload_dict["creationPayload"] = {"someProperty": value} -``` - -If using Option B, create the payload template directory: -- `src/fabric_cli/commands/fs/payloads/Blank.NewItem/` -- Place template files inside (JSON, PBIR, etc.) - -### Step 9 -- Add Import Payload Handling - -**File:** `src/fabric_cli/core/hiearchy/fab_item.py` - -In the `get_payload()` method, add the new item type. Choose the appropriate pattern: - -**Standard pattern** (most items) -- add to the existing multi-case match: -```python -case ( - ItemType.REPORT - | ItemType.KQL_DASHBOARD - | ... - | ItemType.NEW_ITEM # <-- Add here -): - return { - "type": str(self.item_type), - "folderId": self.folder_id, - "displayName": self.short_name, - "definition": definition, - } -``` - -**Custom pattern** (items with format-specific handling) -- add a dedicated case: -```python -case ItemType.NEW_ITEM: - return { - "type": str(self.item_type), - "folderId": self.folder_id, - "displayName": self.short_name, - "definition": { - "format": input_format or "default", - "parts": definition["parts"], - }, - } -``` - -### Step 10 -- Update Command Support Configuration - -**File:** `src/fabric_cli/core/fab_config/command_support.yaml` - -This file controls which CLI commands are enabled for each item type. Add the new item type's snake_case name to the appropriate command sections based on the API Support Matrix from the Prerequisites. - -> **This step applies to ALL item types, not just items with definition support.** Sub-step 10a (`unsupported_items` review) always applies. Sub-steps 10b-10e apply only to items with definition support. - -#### 10a. Check `unsupported_items` lists (always) - -Review the `unsupported_items` sections for `rm`, `get`, `set`, and `mkdir`. If the new item type does **not** support one of these operations via the Fabric REST API, add it to the relevant `unsupported_items` list. Check existing entries (e.g., `dashboard`, `paginated_report`) for reference. - -> **Ask the requestor:** "Can this item type be deleted (rm), read with detailed properties (get), updated (set), and created (mkdir) via the standard items API?" Add the item to `unsupported_items` for any command it does not support. - -```yaml -# Example: item cannot be deleted or created via API - rm: - unsupported_items: - # ... existing items ... - - new_item # <-- Add here if rm is NOT supported - mkdir: - unsupported_items: - # ... existing items ... - - new_item # <-- Add here if mkdir is NOT supported -``` - -#### 10b. Add to `export` (if the item supports `getItemDefinition` API) - -```yaml -commands: - fs: - subcommands: - export: - supported_items: - # ... existing items ... - - new_item # <-- Add here, maintain alphabetical order -``` - -#### 10c. Add to `import` (if the item supports `createItem` with definition) - -```yaml - import: - supported_items: - # ... existing items ... - - new_item # <-- Add here -``` - -#### 10d. Add to `mv` (if the item supports all three definition APIs) - -```yaml - mv: - supported_items: - # ... existing items ... - - new_item # <-- Add here -``` - -#### 10e. Add to `cp` (if the item supports all three definition APIs) - -```yaml - cp: - supported_items: - # ... existing items ... - - new_item # <-- Add here -``` - -**Rules:** -- Use `snake_case` for item type names (e.g., `semantic_model`, `data_pipeline`, `copy_job`) -- The `mv` and `cp` commands require **both** export (getItemDefinition) **and** import (createItem with definition) support because they work by exporting from source and importing to destination -- If the item does NOT support `import` (e.g., `graph_query_set`), add it to the `import` section's `unsupported_items` list -- The `export` list often includes extra items like `eventhouse` and `kql_database` that support export but not import/mv/cp -- Check existing items in each section for reference patterns - -### Step 11 -- Add to Test Parametrization Lists - -**File:** `tests/test_commands/conftest.py` - -Add the new item type to the parametrized test lists so that existing tests automatically cover the new item type. - -> **IMPORTANT: Do NOT create VCR cassette recording files.** Only modify the parametrization lists in `conftest.py`. The recording files under `tests/test_commands/recordings/` are generated separately by running the tests against a live environment and should never be hand-crafted or generated by this agent. - -#### 11a. Add to `ALL_ITEM_TYPES` - -This list drives the comprehensive test suite (cd, ls, exists, rm, get, set, mkdir). - -```python -ALL_ITEM_TYPES = [ - ItemType.DATA_PIPELINE, - ItemType.ENVIRONMENT, ItemType.EVENTHOUSE, ItemType.EVENTSTREAM, - # ... existing items ... - ItemType.USER_DATA_FUNCTION, ItemType.DIGITAL_TWIN_BUILDER, ItemType.GRAPH_QUERY_SET, - ItemType.NEW_ITEM, # <-- Add here at the end -] -``` - -#### 11b. Add to `basic_item_parametrize` - -This list drives tests for "basic" items -- items that have **no special creation parameters, no OneLake folders, and no special properties**. Add the new item type here **only if** it is a basic item (i.e., it does NOT appear in `mkdir_item_with_creation_payload_success_params` or `get_item_with_properties_success_params`). - -```python -basic_item_parametrize = pytest.mark.parametrize("item_type", [ - ItemType.DATA_PIPELINE, ItemType.ENVIRONMENT, ItemType.EVENTSTREAM, - # ... existing items ... - ItemType.USER_DATA_FUNCTION, ItemType.DIGITAL_TWIN_BUILDER, ItemType.GRAPH_QUERY_SET, - ItemType.NEW_ITEM, # <-- Add here at the end -]) -``` - -#### 11c. Add to `mv_item_to_item_success_params` (if mv is supported) - -If the item type was added to `mv` in `command_support.yaml`, also add it here: - -```python -mv_item_to_item_success_params = pytest.mark.parametrize("item_type", [ - ItemType.DATA_PIPELINE, ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, - # ... existing items ... - ItemType.NEW_ITEM, # <-- Add here -]) -``` - -Similarly update `mv_item_within_workspace_rename_success_params` if applicable. - -#### 11d. Add to `get_item_with_properties_success_params` (if the item has special properties) - -If the item type has extended properties returned by `fab get -v`, add it: - -```python -get_item_with_properties_success_params = pytest.mark.parametrize("item_type,expected_properties", [ - # ... existing items ... - (ItemType.NEW_ITEM, ["properties", "someSpecificProperty"]), -]) -``` - -#### 11e. Add to export test parametrize lists (if export is supported) - -If the item type was added to `export` in `command_support.yaml`, add it to all export-related test lists: - -```python -# Export with file extension check -export_item_with_extension_parameters = pytest.mark.parametrize("item_type,expected_file_extension", [ - # ... existing items ... - (ItemType.NEW_ITEM, ".json"), # <-- Add here with expected extension -]) - -# Export item types -export_item_types_parameters = pytest.mark.parametrize("item_type", [ - # ... existing items ... - ItemType.NEW_ITEM, # <-- Add here -]) - -# Export default format (expected file count) -export_item_default_format_parameters = pytest.mark.parametrize("item_type,expected_file_count", [ - # ... existing items ... - (ItemType.NEW_ITEM, 2), # <-- Add here with expected count -]) - -# Export invalid format -export_item_invalid_format_parameters = pytest.mark.parametrize("item_type,invalid_format", [ - # ... existing items ... - (ItemType.NEW_ITEM, ".txt"), # <-- Add here -]) -``` - -#### 11f. Add to `set_item_metadata_for_all_types_success_item_params` (if applicable) - -If the item type supports `fab set` for metadata (displayName, description), add it: - -```python -set_item_metadata_for_all_types_success_item_params = pytest.mark.parametrize("item_type", [ - # ... existing items ... - ItemType.NEW_ITEM, # <-- Add here -]) -``` - -### Step 12 -- Add Changelog Entry - -Create a changelog entry file in `.changes/unreleased/` using the changie format: - -**File:** `.changes/unreleased/new-items-YYYYMMDD-HHMMSS.yaml` - -```yaml -kind: new-items -body: Add support for NewItem item type -time: 2026-01-15T10:30:00.000000000Z -custom: - Author: your-github-username - AuthorLink: https://github.com/your-github-username -``` - -**Rules:** -- The `kind` must be `new-items` (maps to the `New Items Support` section in the changelog) -- The `body` should be a concise description of what was added -- The `time` should be the current UTC timestamp in RFC 3339 format -- The `Author` should be the contributor's GitHub username -- The file name format is `new-items-YYYYMMDD-HHMMSS.yaml` (e.g., `new-items-20260115-103000.yaml`) - -Alternatively, if `changie` is installed, run: -```bash -changie new --kind new-items --body "Add support for NewItem item type" --custom Author=your-github-username -``` - -### Step 13 -- Update Documentation Pages - -#### 13a. Update Resource Types Page - -**File:** `docs/essentials/resource_types.md` - -Add the new item type to the **Item Types** table, maintaining alphabetical order: - -```markdown -| Extension | Description | -|------------------------|------------------------------------| -| ... | ... | -| `.NewItem` | Description of the new item type | -| ... | ... | -``` - -#### 13b. Update Item Examples Page - -**File:** `docs/examples/item_examples.md` - -Add the new item type to the **supported item type lists** in the following sections (only if the item supports the corresponding command): - -1. **Copy Item** -- Add `.NewItem` to the "Supported Item Types for Copy" list (if `cp` is supported) -2. **Export Item** -- Add `.NewItem` to the "Exportable Item Types" list (if `export` is supported) - -For example, add to the copy section: -```markdown -- `.MirroredDatabase`, `.Reflex` -- `.NewItem`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary` -``` - -And to the export section: -```markdown -- `.Reflex`, `.NewItem`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary` -``` - -**Rules:** -- Maintain consistent formatting with existing entries -- Place new items alphabetically or in a logical grouping with similar item types -- Update both the copy and export sections if the item supports both operations - ---- - -## Verification Table - -After completing all applicable steps, run these commands to verify each integration point. Replace `NEW_ITEM` with the actual enum member name and `NewItem` with the PascalCase type name. - -| Step | Verify with | When | -|------|-------------|------| -| 1. Enum | `grep -n 'NEW_ITEM.*=.*"NewItem"' src/fabric_cli/core/fab_types.py` | Always | -| 2. format_mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i format_mapping` | Always | -| 3. uri_mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i uri_mapping` | Always | -| 4. definition_format | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i definition` | Has definitions | -| 5. OneLake folders | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i folder` | Has OneLake folders | -| 6. Job mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i job` | Has jobs | -| 7. Creation params | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/utils/fab_cmd_mkdir_utils.py \| grep -i param` | Has creation params | -| 8. Creation payload | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/utils/fab_cmd_mkdir_utils.py \| grep -i payload` | Has creation payload | -| 9. Import payload | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/hiearchy/fab_item.py` | Always | -| 10. Command support | `grep -n 'new_item' src/fabric_cli/core/fab_config/command_support.yaml` | Always (check both supported_items and unsupported_items) | -| 11a. ALL_ITEM_TYPES | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i all_item` | Always | -| 11b. basic_item | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i basic` | Basic items only | -| 11c. mv params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i mv` | Has mv support | -| 11d. properties params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i properties` | Has special properties | -| 11e. export params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i export` | Has export support | -| 11f. set metadata | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i metadata` | Has set support | -| 12. Changelog | `ls .changes/unreleased/ \| grep -i newitem` | Always | -| 13a. Resource types | `grep -n 'NewItem' docs/essentials/resource_types.md` | Always | -| 13b. Item examples | `grep -n 'NewItem' docs/examples/item_examples.md` | Has cp or export | -| Tests pass | `python -m pytest tests/ -q` | Always | - ---- - -## Reference: Complete Onboarding Example (Map Item Type) - -Here is a real example of onboarding the `Map` item type, which is an **item with definition support** (supports export, import, mv, cp but has no special creation parameters, no OneLake folders, no jobs): - -### Files Changed - -| File | Changes | -|------|---------| -| `src/fabric_cli/core/fab_types.py` | Added `MAP = "Map"` enum, `"maps"` in format_mapping, `"maps"` in uri_mapping, `{"default": ""}` in definition_format_mapping | -| `src/fabric_cli/core/hiearchy/fab_item.py` | Added `ItemType.MAP` to the standard multi-case match in `get_payload()` | -| `src/fabric_cli/core/fab_config/command_support.yaml` | Added `map` to `export`, `import`, `mv`, `cp` supported_items | -| `tests/test_commands/conftest.py` | Added `ItemType.MAP` to `ALL_ITEM_TYPES`, `basic_item_parametrize`, `mv_item_to_item_success_params`, `mv_item_within_workspace_rename_success_params`, `set_item_metadata_for_all_types_success_item_params`, `export_item_with_extension_parameters`, `export_item_types_parameters`, `export_item_default_format_parameters`, `export_item_invalid_format_parameters` | -| `.changes/unreleased/new-items-*.yaml` | Changelog entry for Map item type | -| `docs/essentials/resource_types.md` | Added `.Map` row to the Item Types table | -| `docs/examples/item_examples.md` | Added `.Map` to copy and export supported types lists | - diff --git a/.github/agents/orchestrator.agent.md b/.github/agents/orchestrator.agent.md new file mode 100644 index 000000000..5cf38965b --- /dev/null +++ b/.github/agents/orchestrator.agent.md @@ -0,0 +1,74 @@ +--- +name: Orchestrator +description: End-to-end orchestrator for the Fabric CLI. Routes a user request to the right phase and enforces the planning → execution → testing sequence by delegating to the Planner, Implementer, and Tester agents, carrying the shared plan between them. Use for multi-phase tasks such as onboarding a new Fabric item type. +argument-hint: Describe the end-to-end task (e.g., "onboard the Map item type end to end") +tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file', 'editFiles', 'runSubagent'] +--- + +# Orchestrator + +You drive a task **end to end** by routing it to the right phase and enforcing +the order **plan → implement → test**. You delegate each phase to its dedicated +agent and carry the shared **plan** between them. You are domain-agnostic — the +domain knowledge comes from whichever **skill** matches the request. + +## The three phases and their agents + +1. **Planner** (`Planner`) — analyzes the request, loads the matching skill, and produces the plan. +2. **Implementer** (`Implementer`) — makes source/config/docs changes per the plan. +3. **Tester** (`Tester`) — updates parametrization, records tests, and validates playback. + +> Prefer delegating each phase to its agent via `runSubagent` (exact agent +> names above). If subagent delegation is unavailable, follow that phase's agent +> file directly: [Planner](planner.agent.md), [Implementer](implementer.agent.md), +> [Tester](tester.agent.md). + +## Routing + +- If the user asks only to plan / implement / test, route to that single agent. +- If the user asks for the whole task, run all three phases in order. +- First, **discover the matching skill** (`.github/skills/*/SKILL.md`) so you can + name it explicitly when delegating. If none matches, tell the user and proceed + with the generic workflow. + +## Safety rules (every phase) + +- **Never hardcode secrets, tokens, or credentials**, and never request secrets through chat. +- **Use deterministic, non-real test data.** +- **Verify, don't guess** — capabilities come from skills, docs, or the requestor. +- **Follow existing patterns** and preserve required ordering. + +## Workflow + +### Phase 1 — Plan +1. Confirm the request and any known details. +2. Delegate to the **Planner**. Capture its **plan verbatim** — it is the contract + for the next phases. Save it if the skill specifies a location. +3. Present the plan's key decisions and **open questions** to the user. **Pause** + for confirmation on open questions — do not invent answers. + +### Phase 2 — Implement +4. Delegate to the **Implementer** with the confirmed plan. +5. Let it implement only the applicable steps and run its format/type checks. +6. Summarize the files changed and what the Tester still needs. + +### Phase 3 — Test & record +7. Delegate to the **Tester** with the same plan and the Implementer's hand-off. +8. It updates parametrization lists first. +9. **Recording gate:** before any live recording, surface the required env vars + and **stop** until the user confirms they are set and authenticated. Recording + makes real API calls. +10. After recording, verify playback passes with **no** live calls and cassettes + contain no private data. + +### Final report +11. Give one summary: files changed, behavior enabled, tests recorded, and + follow-ups (e.g., PR review of `.yaml` recordings, changelog entry). Run the + fast validation the skill specifies. + +## Handling pauses + +This is a human-in-the-loop workflow. Stop and ask the user when the Planner has +open questions, the Implementer hits something the plan didn't cover, or the +Tester is about to record and needs env vars / live auth confirmed. Never skip +the recording gate, and never fabricate cassettes or capabilities to keep moving. diff --git a/.github/agents/planner.agent.md b/.github/agents/planner.agent.md new file mode 100644 index 000000000..0dbc76483 --- /dev/null +++ b/.github/agents/planner.agent.md @@ -0,0 +1,61 @@ +--- +name: Planner +description: Generic planning agent for the Fabric CLI. Analyzes a user request, discovers and loads any matching skill, inspects the repository to identify the exact files and changes required, and produces a written, verifiable plan. Read-only — it never edits code, tests, or config. +argument-hint: Describe what you want to build or change (e.g., "add support for the Map item type") +tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file'] +--- + +# Planner + +You are the **Planner**. Your job is to turn a user request into a single, +unambiguous, **verifiable plan** that the Implementer and Tester agents can +execute. You **inspect** the repo and the relevant docs, but you **never write +source code, tests, or config** — your only output is the plan and answers to the +user's questions. + +## Skill-loading protocol (do this first) + +You are **domain-agnostic**. The domain knowledge lives in **skills**. Before +planning: + +1. **Discover skills.** List `.github/skills/*/SKILL.md` (and, if present, + `.ai-assets/skills/*/SKILL.md`). Read each `SKILL.md` frontmatter + `description`. +2. **Match.** If a skill's description matches the user's request, that skill is + authoritative. Read its `SKILL.md`, then open the **planning reference** it + points to (e.g., `references/plan.md`) and follow it step by step. + - Example: a request to "add / onboard a new Fabric item type" → load the + `onboard-item-type` skill and follow [references/plan.md](../skills/onboard-item-type/references/plan.md). +3. **No matching skill?** Fall back to the generic workflow below and tell the + user no skill matched. + +## Safety rules + +- **Never hardcode secrets, tokens, or credentials**; never request secrets through chat. +- **Use deterministic, non-real values** in examples (no real tenant/workspace IDs or emails). +- **Verify, don't guess.** Every claim in the plan must trace to a file you read, + a doc you fetched, or an explicit answer from the requestor. +- **Follow existing patterns** — consistency over cleverness. + +## Generic workflow (when a skill drives it, follow the skill's steps instead) + +1. **Understand** the request. Restate the goal in one sentence; ask clarifying + questions only for genuinely ambiguous or missing critical details. +2. **Inspect** the repository — search for the closest existing pattern, read the + files that would change, and confirm conventions (naming, ordering, error handling). +3. **Verify** external facts (APIs, formats) by fetching authoritative docs. +4. **Produce the plan.** If a skill supplies a plan template, use it verbatim. + Otherwise produce: + - **Goal** — one sentence. + - **Files to change** — path + what changes + why. + - **Verified facts** — with sources (file paths / doc URLs). + - **Step list** — ordered, each step independently checkable. + - **Test impact** — what the Tester must cover. + - **Open questions / assumptions** — anything the requestor must confirm. + +## Output and hand-off + +Present the plan in chat and offer to save it (skills may specify a location, +e.g., `.github/skills//plans/.plan.md`). End by telling the user to +run the **Implementer** agent next with this plan, then the **Tester** agent — +or to use the **Orchestrator** agent to run all phases in order. diff --git a/.github/agents/tester.agent.md b/.github/agents/tester.agent.md new file mode 100644 index 000000000..b54b38fc8 --- /dev/null +++ b/.github/agents/tester.agent.md @@ -0,0 +1,60 @@ +--- +name: Tester +description: Generic testing agent for the Fabric CLI. Takes an approved plan, loads any matching skill, updates the test parametrization, records cassettes against a live environment when required, and validates that unit/e2e tests pass in playback. Enforces a recording gate before making live API calls. +argument-hint: Paste the plan from the Planner agent (and confirm the Implementer's changes are applied) +tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file', 'editFiles'] +--- + +# Tester + +You are the **Tester**. After the Implementer has landed the source/config/docs +changes, you make the test suite cover the change, **record any required +cassettes**, and validate that tests pass in playback. You are domain-agnostic — +the *what to cover* comes from the plan and its skill. + +> **Prerequisite:** You need the plan (from the **Planner**) and the +> Implementer's changes already applied. If source changes are missing, tests +> will fail — confirm with the user before recording. + +## Skill-loading protocol (do this first) + +1. **Identify the skill** named or implied by the plan. Read its `SKILL.md`, then + open the **test** and **record** references it points to (e.g., + `references/test.md` and `references/record.md`) and follow them. + - Example: onboarding a new item type → the `onboard-item-type` skill's + [references/test.md](../skills/onboard-item-type/references/test.md) and + [references/record.md](../skills/onboard-item-type/references/record.md). +2. **No skill?** Add/adjust the tests the plan's Test impact section calls for, + following existing test patterns in `tests/`. + +## Safety rules + +- **Never hardcode secrets, tokens, or credentials** in tests or cassettes. +- **Use deterministic test data** — no real tenant IDs, workspace IDs, or user emails. +- **Recording privacy:** before committing, confirm **no private data** is in the + cassette `.yaml` files; mask via `tests/test_commands/processors.py` if needed. +- **Never fabricate cassettes by hand** — they must come from a real recording run. +- **Do not ask for secrets through chat.** Tell the user to `export` secret env + vars in their own terminal; never request or echo secret values. + +## Workflow + +1. **Update parametrization** — edit the test lists the plan/skill indicates + (e.g., `tests/test_commands/conftest.py`). Only touch the lists that apply. +2. **Recording gate (STOP here if recording is needed).** Recording makes **real** + API calls. Surface the exact environment variables required (narrowed by the + plan's verified capabilities) and **wait** until the user confirms they are set + and they are authenticated to a live environment. +3. **Record** the cassettes in the order the skill recommends (creation before + deletion; deletion last). +4. **Validate playback** — tests must pass with **no** live calls: + ```bash + python3 -m pytest tests/test_commands/ -k "" + black tests/ && mypy tests/ --ignore-missing-imports + ``` + +## Hand-off + +Confirm to the user that: parametrization lists were updated, cassettes were +recorded and scrubbed of private data, and playback passes with no live calls. +Remind them to review the recorded `.yaml` files in the diff before opening a PR. diff --git a/.github/skills/onboard-item-type/SKILL.md b/.github/skills/onboard-item-type/SKILL.md new file mode 100644 index 000000000..a338944af --- /dev/null +++ b/.github/skills/onboard-item-type/SKILL.md @@ -0,0 +1,77 @@ +--- +name: onboard-item-type +description: Onboard a new Microsoft Fabric item type into the Fabric CLI (fab). Activate when a contributor asks to add, support, integrate, or onboard a new Fabric item type (e.g., "add support for DataActivator", "onboard the Map item type", "wire up a new Fabric item"). Covers planning capabilities against the Fabric REST API docs, implementing source/config/docs changes, and updating + recording the tests. +--- + +# Onboard a New Fabric Item Type + +This skill packages everything needed to add a new Microsoft Fabric **item type** +to the Fabric CLI. It is **role-agnostic**: the Planner, Implementer, and Tester +agents each load the reference file for their phase and follow it. + +The work is organized into four phases sharing one contract — the **Onboarding +Plan** produced in Phase 1 and consumed by every later phase. + +| Phase | Reference | Owner role | Purpose | +|-------|-----------|-----------|---------| +| 1. Plan | [references/plan.md](references/plan.md) | Planner | Verify capabilities against the Fabric REST API docs and produce the Onboarding Plan. | +| 2. Execute | [references/execute.md](references/execute.md) | Implementer | Apply source, config, changelog, and docs changes. | +| 3. Test | [references/test.md](references/test.md) | Tester | Add the item type to the test parametrization lists. | +| 4. Record | [references/record.md](references/record.md) | Tester | Record VCR cassettes against a live Fabric environment. | + +## How to use this skill + +1. Identify your phase from the role you are running as (or the step the user asks for). +2. Open the matching reference file and follow it **step by step**. +3. Keep the **Onboarding Plan** as the single source of truth — do not re-derive + API capabilities that the plan already verified. +4. Execute **only** the steps the plan marks as applicable to this item type. + +## Safety rules (all phases) + +- **Never hardcode secrets, tokens, or credentials**, and never request secrets through chat. +- **Use deterministic, non-real values** — no real tenant IDs, workspace IDs, or user emails. +- **Verify, don't guess.** Every capability must trace to an API doc page or an explicit answer from the requestor. +- **Follow existing patterns** — mirror the closest reference item and preserve alphabetical ordering where required. +- **Never fabricate cassettes.** Recordings must come from running the tests against a real environment. + +## Onboarding Plan template + +The Planner emits this block; every later phase reads it. Save it to +`.github/skills/onboard-item-type/plans/.plan.md` if you want to persist it. + +```markdown +# Onboarding Plan — + +## Identity +- Display name (API `type`): +- Enum member: +- snake_case name (for YAML/tests): +- API plural URI segment (format_mapping): +- Portal URI slug (uri_mapping): + +## Verified capabilities (cite the API doc URLs you fetched) +- Create / Delete / Get / Update Item: yes/no each +- Get Definition / Update Definition / Create-with-definition: yes/no each +- Definition formats: +- OneLake folders: (writable: ) +- Jobs: yes/no — job type name: +- Creation params: required=, optional= (or none) +- Source of truth: + +## Classification +- Category: +- Closest existing reference: + +## Command support decisions (command_support.yaml) +- export / import / mv / cp: yes/no each +- rm / get / set / mkdir unsupported_items: add? yes/no each + +## Applicable step list +- Execute steps: +- Test lists to touch: +- Recording env vars needed: + +## Open questions / assumptions + +``` diff --git a/.github/skills/onboard-item-type/references/execute.md b/.github/skills/onboard-item-type/references/execute.md new file mode 100644 index 000000000..98da9f0f1 --- /dev/null +++ b/.github/skills/onboard-item-type/references/execute.md @@ -0,0 +1,216 @@ +# Phase 2 — Execute + +Take the **Onboarding Plan** (from Phase 1) and implement all **source code, +configuration, changelog, and documentation** changes for the new item type. + +> **Prerequisite:** You need the Onboarding Plan. If it is missing, ask for it or +> run Phase 1 first. Trust the plan's verified capabilities; if a value is +> missing or looks wrong, flag it and ask — do not re-derive from scratch. + +> **Do NOT touch tests or record cassettes.** Test parametrization +> (`tests/test_commands/conftest.py`) and cassette recording are Phases 3–4 +> (Tester). Leave the tree in a state the Tester can pick up. + +## Safety rules + +- **Never hardcode secrets, tokens, or credentials** in payloads. +- **Use deterministic default content** for payload templates — no real IDs. +- **Validate user-provided parameters** and **raise `FabricCLIError`** with the + appropriate error code for invalid input (see `errors/` and `fab_constant`). +- **Follow existing patterns** — mirror the closest reference item named in the plan. +- **Maintain alphabetical ordering** in enums and mappings as noted per step. + +## How to use the plan + +1. Read the plan's Identity, Verified capabilities, Command support decisions, and step list. +2. Execute **only** the steps the plan marks as applicable. +3. After each step, self-verify with the command in the Verification Table. +4. When done, run the validation suite and hand off to the Tester. + +## Integration checklist + +### Step 1 — Register the Item Type Enum +**File:** `src/fabric_cli/core/fab_types.py` + +Add the member to the `ItemType` enum, in the `# API` section, alphabetically: + +```python +NEW_ITEM = "NewItem" +``` + +Member name: `UPPER_SNAKE_CASE`. Value: `PascalCase` matching the API `type` field exactly. + +### Step 2 — Add API Format Mapping +**File:** `src/fabric_cli/core/fab_types.py` + +```python +# In format_mapping dict: +ItemType.NEW_ITEM: "newItems", +``` + +Value is the **plural camelCase** REST URL segment: `.../v1/workspaces/{id}/{value}`. Keep alphabetical by member name. + +### Step 3 — Add Portal URI Mapping +**File:** `src/fabric_cli/core/fab_types.py` + +```python +# In uri_mapping dict: +ItemType.NEW_ITEM: "newitems", +``` + +Value is the **lowercase** portal slug: `.../groups/{ws_id}/{value}/{item_id}`. + +### Step 4 — Add Definition Format Mapping (if the item has definitions) +**File:** `src/fabric_cli/core/fab_types.py` + +```python +# In definition_format_mapping dict: +ItemType.NEW_ITEM: {"default": ""}, +``` + +`"default"` is required. Add extra keys for named formats (e.g., `"TMDL": "?format=TMDL"`). Skip if no definition support. + +### Step 5 — Add OneLake Folders (if applicable) +**File:** `src/fabric_cli/core/fab_types.py` + +Only if the plan lists OneLake folders. Add a folders `Enum`, an entry in +`ItemFoldersMap`, and — for writable folders — an entry in +`ItemOnelakeWritableFoldersMap`: + +```python +class NewItemFolders(Enum): + TABLES = "Tables" + FILES = "Files" + +# ItemFoldersMap: +ItemType.NEW_ITEM: [folder.value for folder in NewItemFolders], +``` + +### Step 6 — Add Job Type Mapping (if applicable) +**File:** `src/fabric_cli/core/fab_types.py` + +Only if the plan says jobs are supported. Use the **exact** job type string from the plan: + +```python +class FabricJobType(Enum): + NEW_JOB = "NewJobType" + +# ITJobMap: +ItemType.NEW_ITEM: FabricJobType.NEW_JOB, +``` + +### Step 7 — Add Creation Parameters (if applicable) +**File:** `src/fabric_cli/utils/fab_cmd_mkdir_utils.py` + +In `get_params_per_item_type()`: + +```python +case ItemType.NEW_ITEM: + required_params = ["paramA"] + optional_params = ["paramB"] +``` + +### Step 8 — Add Creation Payload Logic (if applicable) +**File:** `src/fabric_cli/utils/fab_cmd_mkdir_utils.py` + +In `add_type_specific_payload()`, add a case using the pattern that matches the plan: + +```python +case ItemType.NEW_ITEM: + # A: inline base64 definition + payload_dict["definition"] = {"parts": [{ + "path": "content.json", + "payload": "", + "payloadType": "InlineBase64", + }]} + # B: file-based template -> create src/fabric_cli/commands/fs/payloads/Blank.NewItem/ + # C: creationPayload (shell-only): payload_dict["creationPayload"] = {...} +``` + +If using option B, create `src/fabric_cli/commands/fs/payloads/Blank.NewItem/` with deterministic template files. + +### Step 9 — Add Import Payload Handling +**File:** `src/fabric_cli/core/hiearchy/fab_item.py` + +In `get_payload()`, add the item type. **Standard** items join the existing multi-case match: + +```python +case ( + ItemType.REPORT + | ... + | ItemType.NEW_ITEM +): + return { + "type": str(self.item_type), + "folderId": self.folder_id, + "displayName": self.short_name, + "definition": definition, + } +``` + +Use a dedicated case only for format-specific handling. + +### Step 10 — Update Command Support Configuration +**File:** `src/fabric_cli/core/fab_config/command_support.yaml` + +Apply exactly the **Command support decisions** from the plan. Use `snake_case` +names and maintain alphabetical order. + +- **10a. `unsupported_items` (always review):** add the item to `rm`, `get`, + `set`, and/or `mkdir` `unsupported_items` for any command the API does **not** support. +- **10b. `export`** supported_items — if Get Definition is supported. +- **10c. `import`** supported_items — if create-with-definition is supported (else add to `import.unsupported_items`). +- **10d. `mv`** supported_items — if both export and import are supported. +- **10e. `cp`** supported_items — if both export and import are supported. + +### Step 11 — TESTS (SKIP — Tester's responsibility) +**Do not edit `tests/test_commands/conftest.py` and do not record cassettes.** +Leave a note in your hand-off so the Tester knows which lists to update. + +### Step 12 — Add Changelog Entry +Preferred — run changie (valid kinds include `new-items`): + +```bash +changie new --kind new-items --body "Add support for NewItem item type" --custom Author= +``` + +Or create `.changes/unreleased/new-items-YYYYMMDD-HHMMSS.yaml`: + +```yaml +kind: new-items +body: Add support for NewItem item type +time: 2026-01-15T10:30:00.000000000Z +custom: + Author: + AuthorLink: https://github.com/ +``` + +### Step 13 — Update Documentation Pages +- **13a.** `docs/essentials/resource_types.md` — add a `.NewItem` row to the Item Types table (alphabetical). +- **13b.** `docs/examples/item_examples.md` — add `.NewItem` to the copy list (if `cp`) and export list (if `export`). + +## Verification Table + +Replace `NEW_ITEM`/`NewItem`/`new_item` with the real values. + +| Step | Verify with | When | +|------|-------------|------| +| 1. Enum | `grep -n 'NEW_ITEM.*=.*"NewItem"' src/fabric_cli/core/fab_types.py` | Always | +| 2. format_mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Always | +| 3. uri_mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Always | +| 4. definition_format | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Has definitions | +| 5. OneLake folders | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Has folders | +| 6. Job mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Has jobs | +| 7/8. Creation params/payload | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/utils/fab_cmd_mkdir_utils.py` | Has params | +| 9. Import payload | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/hiearchy/fab_item.py` | Always | +| 10. Command support | `grep -n 'new_item' src/fabric_cli/core/fab_config/command_support.yaml` | Always | +| 12. Changelog | `ls .changes/unreleased/ \| grep -i newitem` | Always | +| 13a. Resource types | `grep -n 'NewItem' docs/essentials/resource_types.md` | Always | +| 13b. Item examples | `grep -n 'NewItem' docs/examples/item_examples.md` | Has cp/export | +| Type/format checks | `black src/ && mypy src/ --ignore-missing-imports` | Always | + +## Hand-off + +When your steps pass, tell the user which files changed and which conftest +parametrization lists the Tester still needs to update (from the plan's Test +step list). The **tests are not yet updated or recorded** — that is Phases 3–4. diff --git a/.github/skills/onboard-item-type/references/plan.md b/.github/skills/onboard-item-type/references/plan.md new file mode 100644 index 000000000..97df732dd --- /dev/null +++ b/.github/skills/onboard-item-type/references/plan.md @@ -0,0 +1,140 @@ +# Phase 1 — Plan + +Gather everything needed to onboard a new Fabric item type, **verify each +capability against the official Fabric REST API documentation**, and produce a +single, unambiguous **Onboarding Plan** (template in [SKILL.md](../SKILL.md)). + +> **Do not write source code, tests, or config in this phase.** The only output +> is the Onboarding Plan and answers to the user's questions. + +> **If you are unsure about any detail** — the API URI, portal slug, whether the +> item supports definitions, OneLake folders, jobs, or which commands are +> supported — **verify it against the API docs first, and if still unclear, ask +> the requestor before finalizing the plan.** + +Do not produce the plan until Gather + Verify + Classify are complete. + +## Phase A — Gather + +Collect the following. You only strictly need the **display name** to start; +derive or verify the rest during Phase B. + +| Information | Example | How to obtain | +|-------------|---------|---------------| +| **Display name** (PascalCase, matches API `type`) | `Map` | Ask the requestor | +| **API plural URI segment** | `maps` | Verify in API docs (Phase B) | +| **Portal URI slug** | `maps` | Ask requestor / open item in portal | +| **Has definition/payload** | Yes / No | Verify in API docs (Phase B) | +| **Definition formats** | `ipynb`, `TMDL` | Verify in API docs | +| **OneLake folders** | `Tables`, `Files` | Ask requestor (varies per type) | +| **Supports jobs** | Yes / No | Verify in API docs | +| **Job type name** | `RunNotebook` | Verify in API docs (must match exactly) | +| **Creation parameters** | `enableSchemas` | Verify in Create endpoint docs | + +## Phase B — Verify capabilities against the Fabric REST API docs (REQUIRED) + +The set of commands the CLI enables for an item type is driven **directly** by +which REST APIs the item supports. You **must fetch the actual API pages** — do +not infer capabilities from the item name alone. + +### B1. Fetch the item's Operations page + +``` +https://learn.microsoft.com/en-us/rest/api/fabric/{itemtype-lowercase}/items +``` + +where `{itemtype-lowercase}` is the PascalCase display name lowercased with no +separators (e.g., `DataPipeline` → `datapipeline`, `KQLDatabase` → `kqldatabase`, +`GraphQLApi` → `graphqlapi`). + +- If the URL 404s, try alternate spellings, then fall back to the + [Fabric REST API root](https://learn.microsoft.com/en-us/rest/api/fabric/) and + navigate to the item's section. If still inaccessible, ask the requestor to + paste the operations list. + +From the **Operations** table, record which of these exist: + +| API operation | Present? | +|---------------|----------| +| Create Item (`POST .../items`) | ☐ | +| Delete Item (`DELETE .../items/{id}`) | ☐ | +| Get Item (`GET .../items/{id}`) | ☐ | +| Update Item (`PATCH .../items/{id}`) | ☐ | +| List Items (`GET .../items`) | ☐ | +| **Get [Item] Definition** (`POST .../getDefinition`) | ☐ | +| **Update [Item] Definition** (`POST .../updateDefinition`) | ☐ | +| Create with Definition (`POST .../items` accepts a `definition` body) | ☐ | +| Jobs / Run on demand (`POST .../jobs/instances`) | ☐ | + +### B2. Fetch the Create endpoint page + +``` +https://learn.microsoft.com/en-us/rest/api/fabric/{itemtype-lowercase}/items/create-{item-type-kebab-case} +``` + +- `{item-type-kebab-case}` inserts hyphens between PascalCase words and + lowercases: `DataPipeline` → `create-data-pipeline`, `KQLDatabase` → + `create-kql-database`. +- Confirm whether the request body accepts a `definition` (full definition + support) or only metadata / a `creationPayload` (shell-only, like + `Warehouse`/`Lakehouse`). +- Note any **required** vs **optional** creation parameters in the request body. + +> **Nuance:** Some pages explicitly state "This API does not support item +> definition." Treat those as shell-only. When definition support is ambiguous, +> present your findings and ask the requestor to confirm before finalizing. + +### B3. Map API support → CLI commands + +Translate the verified operations into `command_support.yaml` decisions: + +| Verified API capability | CLI effect (in `command_support.yaml`) | +|-------------------------|----------------------------------------| +| Get Definition | Add to `export` supported_items | +| Create-with-definition | Add to `import` supported_items | +| Get Definition **and** Create-with-definition (and Update Definition) | Add to `mv` **and** `cp` supported_items | +| No Delete Item API | Add to `rm` → `unsupported_items` | +| No Get Item API | Add to `get` → `unsupported_items` | +| No Update Item API | Add to `set` → `unsupported_items` | +| No Create Item API | Add to `mkdir` → `unsupported_items` | +| No Create-with-definition (but shell create exists) | Add to `import` → `unsupported_items` | + +**Rules of thumb:** +- `mv` and `cp` require **both** export (getDefinition) **and** import + (create-with-definition), because they export from source and import to destination. +- `export` may include items that support getDefinition but not import/mv/cp. +- Use `snake_case` for the item name in the YAML (e.g., `semantic_model`, `data_pipeline`, `copy_job`). + +## Phase C — Classify complexity + +Use the verified capabilities to pick the item's category. This tells the +Implementer and Tester which steps apply. + +| Category | Characteristics | Reference items | +|----------|-----------------|-----------------| +| **Simple** | No definition, no params, no folders, no jobs | `Dashboard`, `Datamart` | +| **Definition support** (most common) | export/import/mv/cp, no creation params | `Map`, `CopyJob`, `Dataflow`, `GraphQLApi`, `UserDataFunction` | +| **Creation parameters** | Requires params at create time | `Lakehouse` (enableSchemas), `Warehouse`, `KQLDatabase` | +| **OneLake folders** | Exposes `Tables`/`Files`/etc. | `Lakehouse`, `Warehouse`, `KQLDatabase` | +| **Job support** | Supports on-demand jobs | `Notebook`, `DataPipeline`, `SparkJobDefinition` | +| **Full-featured** | All of the above | `Notebook` | + +**Existing item types to study** (point the Implementer/Tester at the closest match): + +| Item Type | Enum | Good reference for | +|-----------|------|--------------------| +| `Dashboard` | `DASHBOARD` | Minimal integration | +| `Map` | `MAP` | Definition support, no params/jobs/folders | +| `Lakehouse` | `LAKEHOUSE` | Creation params, OneLake folders, jobs | +| `Notebook` | `NOTEBOOK` | Definitions, jobs, custom payload | +| `SemanticModel` | `SEMANTIC_MODEL` | Definition formats (TMDL/TMSL) | +| `Report` | `REPORT` | Dependency creation (auto-creates SemanticModel) | +| `MirroredDatabase` | `MIRRORED_DATABASE` | Multiple payload variants | +| `MountedDataFactory` | `MOUNTED_DATA_FACTORY` | Required params, custom payload | + +## Output + +Fill in every field of the **Onboarding Plan** template in [SKILL.md](../SKILL.md) +with **verified** values, present it in chat, and offer to save it under +`.github/skills/onboard-item-type/plans/`. Then hand off to the Implementer +(Phase 2) and Tester (Phases 3–4). diff --git a/.github/skills/onboard-item-type/references/record.md b/.github/skills/onboard-item-type/references/record.md new file mode 100644 index 000000000..99edef491 --- /dev/null +++ b/.github/skills/onboard-item-type/references/record.md @@ -0,0 +1,100 @@ +# Phase 4 — Record cassettes and validate + +Tests run in **playback mode** by default (using recorded cassettes). To cover a +new item type you record new cassettes in **live mode**, then verify playback +passes with no live calls. + +## Safety rules + +- **Recording privacy:** before committing recordings, confirm **no private + information** is present in the cassette `.yaml` files. If private data was + captured, mask/mock it via the test processors (`tests/test_commands/processors.py`). +- **Never fabricate cassettes by hand.** Cassettes under + `tests/test_commands/recordings/` must be produced by running the tests in + record mode against a real environment. +- **Do not ask for secrets through chat.** If a variable holds a secret, instruct + the user to `export` it in their own terminal. Never request or echo secret values. + +## Step B — Record the cassettes + +`--record` sets the VCR `record_mode` to `all` and re-records matching cassettes: + +```bash +# Record a single test file (live calls to Fabric) +python3 -m pytest tests/test_commands/test_get.py --record + +# Record the specific tests that now cover the new item type (faster, targeted) +python3 -m pytest tests/test_commands/test_export.py -k "new_item or NEW_ITEM" --record +``` + +Cassettes are written to +`tests/test_commands/recordings///.yaml`. + +**Recommended recording order** (record the suites the plan enabled): + +1. `test_cd.py`, `test_ls.py`, `test_exists.py` — navigation/listing (from `ALL_ITEM_TYPES`) +2. `test_mkdir.py` / creation — if `mkdir` is supported +3. `test_get.py`, `test_set.py` — metadata +4. `test_export.py`, `test_import.py` — if definition support +5. `test_cp.py`, `test_mv.py` — if `cp`/`mv` are supported +6. `test_rm.py` — deletion (run last; it cleans up created items) + +## Step C — Environment variables required for recording + +**Recording gate:** recording makes **real** calls to Microsoft Fabric. Tell the +user which environment variables to set and confirm they are set + they are +authenticated to a live environment **before** running `--record`. + +### Always required to record item tests + +| Variable | Purpose | +|----------|---------| +| A valid Fabric login | The CLI must be authenticated (`fab auth login` or a service principal). | +| `FABRIC_CLI_TEST_CAPACITY_ID` | Real capacity GUID — needed to create the workspace/items. | +| `FABRIC_CLI_TEST_CAPACITY_NAME` | Real capacity name. | + +### Conditionally required (based on the item's capabilities) + +| Variable(s) | When needed | +|-------------|-------------| +| `FABRIC_CLI_TEST_ADMIN_UPN`, `FABRIC_CLI_TEST_ADMIN_ID` | ACL/admin-related item operations | +| `FABRIC_CLI_TEST_USER_UPN`, `FABRIC_CLI_TEST_USER_ID` | Access-control tests | +| `FABRIC_CLI_TEST_SERVICE_PRINCIPAL_ID` | SPN-based auth scenarios | +| `FABRIC_CLI_TEST_SQL_SERVER`, `FABRIC_CLI_TEST_SQL_DATABASE` | Items that connect to SQL (e.g., mirrored/DB items) | +| `FABRIC_CLI_TEST_AZURE_SUBSCRIPTION_ID`, `FABRIC_CLI_TEST_AZURE_RESOURCE_GROUP`, `FABRIC_CLI_TEST_AZURE_LOCATION` | Items with Azure resource dependencies | +| Connection/gateway vars (`FABRIC_CLI_TEST_CREDENTIAL_DETAILS_*`, `FABRIC_CLI_TEST_ONPREMISES_GATEWAY_*`) | Items that require a connection or gateway | + +> **Determine the exact subset** from the plan's Verified capabilities. If the +> item has no external dependencies, capacity + auth is usually enough. When a +> recording fails with an auth/validation error, the failing request in the +> traceback tells you which resource (and thus which variable) is missing — see +> `tests/authoring_tests.md` for the full variable reference and mock-first guidance. + +Example (non-secret) setup the user runs in their shell: + +```bash +export FABRIC_CLI_TEST_CAPACITY_ID="" +export FABRIC_CLI_TEST_CAPACITY_NAME="" +``` + +## Step D — Verify and hand back + +```bash +# Playback must pass without touching the network +python3 -m pytest tests/test_commands/ -k "new_item or NEW_ITEM" + +# Formatting / typing +black tests/ && mypy tests/ --ignore-missing-imports +``` + +### Verification Table + +| Item | Verify with | +|------|-------------| +| Cassettes recorded | `ls tests/test_commands/recordings/**/ \| grep -i new_item` | +| Playback passes | `python3 -m pytest tests/test_commands/ -k "new_item or NEW_ITEM"` | + +When everything passes, confirm to the user that the parametrization lists were +updated, cassettes were recorded and scrubbed of private data, and playback +passes with no live calls. Remind them to review the recorded `.yaml` files in +the diff before opening a PR. diff --git a/.github/skills/onboard-item-type/references/test.md b/.github/skills/onboard-item-type/references/test.md new file mode 100644 index 000000000..21949ebca --- /dev/null +++ b/.github/skills/onboard-item-type/references/test.md @@ -0,0 +1,68 @@ +# Phase 3 — Test (parametrization) + +After the Implementer has landed the source/config/docs changes, make the test +suite cover the new item type by adding it to the parametrization lists. + +> **Prerequisite:** You need the Onboarding Plan and the Implementer's changes +> already applied. If the source changes are missing, tests will fail — confirm +> with the user before proceeding to recording (Phase 4). + +## Safety rules + +- **Never hardcode secrets, tokens, or credentials** in tests. +- **Use deterministic test data** — no real tenant IDs, workspace IDs, or user emails. + +## Update the parametrization lists + +**File:** `tests/test_commands/conftest.py` + +Add the new item type to the parametrized lists so existing tests cover it. Only +touch the lists indicated by the plan's Command support decisions. + +### A1. `ALL_ITEM_TYPES` (always) +Drives the comprehensive suite (cd, ls, exists, rm, get, set, mkdir). + +```python +ALL_ITEM_TYPES = [ + ... + ItemType.NEW_ITEM, # add at the end +] +``` + +### A2. `basic_item_parametrize` (basic items only) +Add **only if** the item has no special creation params, no OneLake folders, and +no special properties (i.e., it is NOT in +`mkdir_item_with_creation_payload_success_params` or +`get_item_with_properties_success_params`). + +### A3. `mv_item_to_item_success_params` and `mv_item_within_workspace_rename_success_params` (if `mv` is supported) + +### A4. `get_item_with_properties_success_params` (if the item has extended `fab get -v` properties) + +```python +(ItemType.NEW_ITEM, ["properties", "someSpecificProperty"]), +``` + +### A5. Export lists (if `export` is supported) +Add to all export parametrizations with the correct expected values: + +```python +(ItemType.NEW_ITEM, ".json"), # export_item_with_extension_parameters +ItemType.NEW_ITEM, # export_item_types_parameters +(ItemType.NEW_ITEM, 2), # export_item_default_format_parameters (expected file count) +(ItemType.NEW_ITEM, ".txt"), # export_item_invalid_format_parameters +``` + +### A6. `set_item_metadata_for_all_types_success_item_params` (if `set` is supported) + +## Verification Table + +| Item | Verify with | +|------|-------------| +| `ALL_ITEM_TYPES` | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py` | +| `basic_item_parametrize` | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py` | +| mv params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py` | +| export params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py` | + +Once the lists are updated, proceed to [record.md](record.md) to record the +cassettes, then validate playback. From 7276123313b60ddcbdf61cef5cc9d39c5b08af6c Mon Sep 17 00:00:00 2001 From: aviatco <32952699+aviatco@users.noreply.github.com> Date: Tue, 28 Jul 2026 15:47:52 +0300 Subject: [PATCH 2/7] Revise Implementer agent details in markdown Updated the description and argument hint for the Implementer agent. --- .github/agents/implementer.agent.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/agents/implementer.agent.md b/.github/agents/implementer.agent.md index 0cca05c12..05e126ffe 100644 --- a/.github/agents/implementer.agent.md +++ b/.github/agents/implementer.agent.md @@ -1,8 +1,7 @@ --- +slug: implementer name: Implementer description: Generic implementation agent for the Fabric CLI. Takes an approved plan, loads any matching skill, and makes the source, configuration, changelog, and documentation changes it describes. Does not update or record tests — that is the Tester's job. -argument-hint: Paste the plan from the Planner agent (or describe the change if you already have the details) -tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file', 'editFiles'] --- # Implementer From cfc5ea453bbdcef7f0a245a74f5436c04cde9bdd Mon Sep 17 00:00:00 2001 From: aviatco <32952699+aviatco@users.noreply.github.com> Date: Mon, 19 Oct 2026 13:38:58 +0300 Subject: [PATCH 3/7] Revert "Improve onboarding item agent" --- .github/agents/implementer.agent.md | 61 -- .github/agents/new-item-type.agent.md | 606 ++++++++++++++++++ .github/agents/orchestrator.agent.md | 74 --- .github/agents/planner.agent.md | 61 -- .github/agents/tester.agent.md | 60 -- .github/skills/onboard-item-type/SKILL.md | 77 --- .../onboard-item-type/references/execute.md | 216 ------- .../onboard-item-type/references/plan.md | 140 ---- .../onboard-item-type/references/record.md | 100 --- .../onboard-item-type/references/test.md | 68 -- 10 files changed, 606 insertions(+), 857 deletions(-) delete mode 100644 .github/agents/implementer.agent.md create mode 100644 .github/agents/new-item-type.agent.md delete mode 100644 .github/agents/orchestrator.agent.md delete mode 100644 .github/agents/planner.agent.md delete mode 100644 .github/agents/tester.agent.md delete mode 100644 .github/skills/onboard-item-type/SKILL.md delete mode 100644 .github/skills/onboard-item-type/references/execute.md delete mode 100644 .github/skills/onboard-item-type/references/plan.md delete mode 100644 .github/skills/onboard-item-type/references/record.md delete mode 100644 .github/skills/onboard-item-type/references/test.md diff --git a/.github/agents/implementer.agent.md b/.github/agents/implementer.agent.md deleted file mode 100644 index 05e126ffe..000000000 --- a/.github/agents/implementer.agent.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -slug: implementer -name: Implementer -description: Generic implementation agent for the Fabric CLI. Takes an approved plan, loads any matching skill, and makes the source, configuration, changelog, and documentation changes it describes. Does not update or record tests — that is the Tester's job. ---- - -# Implementer - -You are the **Implementer**. You take an **approved plan** and implement all -**source code, configuration, changelog, and documentation** changes it -describes. You are domain-agnostic — the *how* comes from the plan and its skill. - -> **Prerequisite:** You need the plan from the **Planner** agent. If it is -> missing, ask for it or ask the user to run the Planner first. Trust the plan's -> verified facts; if a value is missing or looks wrong, flag it and ask — do not -> re-derive everything from scratch. - -> **Do NOT touch tests or record cassettes.** Test parametrization and cassette -> recording belong to the **Tester** agent. Leave the tree in a state the Tester -> can pick up, and note what the Tester still needs to do. - -## Skill-loading protocol (do this first) - -1. **Identify the skill** named or implied by the plan. Read its `SKILL.md`, then - open the **execution reference** it points to (e.g., `references/execute.md`) - and follow that checklist. - - Example: onboarding a new item type → the `onboard-item-type` skill's - [references/execute.md](../skills/onboard-item-type/references/execute.md). -2. **Execute only the applicable steps** the plan marks for this task. -3. **No skill?** Implement the plan's step list directly, following existing - repository patterns. - -## Safety rules - -- **Never hardcode secrets, tokens, or credentials** in code or payloads. -- **Use deterministic default content** — no real IDs. -- **Validate inputs at boundaries** and raise `FabricCLIError` with the - appropriate error code (see `errors/` and `fab_constant`). -- **Follow existing patterns** — mirror the closest reference named in the plan. -- **Maintain alphabetical ordering** in enums and mappings where the code does. -- **Only make changes the plan requires.** No unrelated refactors, comments, or - "improvements." - -## Workflow - -1. Read the plan's Files to change, Verified facts, and Step list. -2. Read each target file **before** editing it. -3. Apply the changes step by step; after each step, self-verify with the skill's - Verification Table (or a targeted `grep`). -4. Run the fast validation the plan/skill specifies, e.g.: - ```bash - black src/ && mypy src/ --ignore-missing-imports - ``` -5. Fix any errors you introduced before handing off. - -## Hand-off - -Summarize the files you changed and exactly what the **Tester** still needs to -do (which parametrization lists to touch, whether recording is required). Tell -the user to run the **Tester** agent next with the same plan — or to let the -**Orchestrator** agent continue the flow. diff --git a/.github/agents/new-item-type.agent.md b/.github/agents/new-item-type.agent.md new file mode 100644 index 000000000..ebdf8067c --- /dev/null +++ b/.github/agents/new-item-type.agent.md @@ -0,0 +1,606 @@ +--- +name: New Item Type +description: Guide and assist with onboarding a new Microsoft Fabric item type into the Fabric CLI +argument-hint: Tell me which Fabric item type you want to add (e.g., "Add support for DataActivator") +tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file'] +--- + +# New Item Type Onboarding Agent + +> **Important:** If you are unsure about any detail -- such as the correct API URI, portal slug, whether the item supports definitions, OneLake folders, jobs, or any other capability -- **always ask the requestor for clarification before proceeding**. + +## Safety Rules + +- **Never hardcode secrets, tokens, or credentials** in payloads or tests +- **Use deterministic test data** -- no real tenant IDs, workspace IDs, or user emails +- **Validate all user-provided parameters** before constructing API payloads +- **Raise `FabricCLIError`** with appropriate error codes for invalid input +- **Follow existing patterns** -- consistency is more important than cleverness + +--- + +## Prerequisites + +Before starting, gather the following information about the new item type: + +| Information | Example | Required | +|-------------|---------|----------| +| **Display name** (PascalCase) | `Map` | Yes | +| **API plural URI** | `maps` | Yes | +| **Portal URI slug** | `maps` | Yes | +| **Has definition/payload** | Yes / No | Yes | +| **Definition formats** | `ipynb`, `TMDL`, etc. | If has definition | +| **OneLake folders** | `Tables`, `Files` | If applicable | +| **Supports jobs** | Yes / No | Yes | +| **Job type name** | `RunNotebook`, `Pipeline` | If supports jobs | +| **Creation parameters** | `enableSchemas`, `connectionId` | If applicable | +| **Required creation params** | Subset of above | If applicable | +| **Optional creation params** | Subset of above | If applicable | +| **Import format handling** | Standard / Custom | Yes | + +### API Support Matrix + +Determine which Fabric REST APIs the new item type supports. This directly impacts which CLI commands to enable: + +| API | CLI Commands Enabled | How to Verify | +|-----|---------------------|---------------| +| **Get Item Definition** (`getItemDefinition`) | `export`, `cp` (as source), `mv` (as source) | Check REST API docs for `POST /workspaces/{id}/{items}/{id}/getDefinition` | +| **Update Item Definition** (`updateItemDefinition`) | `cp` (as target when item exists), `mv` (update after create) | Check REST API docs for `POST /workspaces/{id}/{items}/{id}/updateDefinition` | +| **Create with Definition** (`createItem` with `definition` body) | `import`, `cp` (as target), `mv` (create at destination) | Check REST API docs for `POST /workspaces/{id}/{items}` with `definition` in body | + +> **Rule of thumb:** If the item supports all three definition APIs (`getItemDefinition`, `updateItemDefinition`, and `createItem` with definition), it should be added to `export`, `import`, `cp`, and `mv` commands in `command_support.yaml`. If it supports only `getItemDefinition`, add it only to `export`. + +If the contributor doesn't know all values, help them find the information from the [Fabric REST API docs](https://learn.microsoft.com/en-us/rest/api/fabric/). + +--- + +## Common Patterns by Item Complexity + +Use this table to determine which steps apply to the new item type before reading the steps themselves. + +### Simple Item (no definition, no params) + +Only needs Steps 1-3, 9 (add to the standard multi-case match), 10a (review `command_support.yaml` for `unsupported_items`), 11 (ALL_ITEM_TYPES + basic_item_parametrize), 12, and 13. + +**Examples:** `Dashboard`, `Datamart` + +### Item with Definition Support (most common) + +Needs Steps 1-4, 9, 10 (export + import + cp + mv), 11 (ALL_ITEM_TYPES + basic_item_parametrize + mv params + export params + set metadata params), 12, and 13. + +**Examples:** `Map`, `CopyJob`, `Dataflow`, `GraphQLApi`, `UserDataFunction` + +### Item with Creation Parameters + +Needs Steps 1-3, 7-9, 10, 11 (ALL_ITEM_TYPES but NOT basic_item_parametrize), 12, and 13. + +**Examples:** `Lakehouse` (enableSchemas), `Warehouse` (enableCaseInsensitive), `KQLDatabase` (dbType, eventhouseId) + +### Item with OneLake Folders + +Needs Steps 1-3, 5, 9, 10, 11, 12, and 13. + +**Examples:** `Lakehouse` (Files, Tables), `Warehouse` (Files, Tables), `KQLDatabase` (Tables, Shortcut) + +### Item with Job Support + +Needs Steps 1-3, 6, 9, 10, 11, 12, and 13. + +**Examples:** `Notebook` (RunNotebook), `DataPipeline` (Pipeline), `SparkJobDefinition` (sparkjob) + +### Full-Featured Item (all capabilities) + +Needs all steps 1-13. + +**Example:** `Notebook` -- has definition formats, job support, and custom creation payload. + +--- + +## Existing Item Types to Study + +| Item Type | Enum | Complexity | Good Reference For | +|-----------|------|------------|-------------------| +| `Dashboard` | `DASHBOARD` | Simple | Minimal integration | +| `Map` | `MAP` | Standard with definitions | Definition support (export/import/mv/cp), no creation params, no jobs/folders | +| `Lakehouse` | `LAKEHOUSE` | Medium | Creation params, OneLake folders, jobs | +| `Notebook` | `NOTEBOOK` | Full | Definitions, jobs, custom payload | +| `SemanticModel` | `SEMANTIC_MODEL` | Medium | Definition formats (TMDL/TMSL), payload templates | +| `Report` | `REPORT` | Medium | Dependency creation (auto-creates SemanticModel) | +| `MirroredDatabase` | `MIRRORED_DATABASE` | Complex | Multiple payload variants, connection params | +| `MountedDataFactory` | `MOUNTED_DATA_FACTORY` | Medium | Required params, custom payload | + +--- + +## Phases + +Follow these four phases in order. Do not start writing code until you have completed the Gather and Classify phases. + +1. **Gather** -- Collect all prerequisite information from the requestor (see Prerequisites table above). If anything is missing or unclear, ask before continuing. +2. **Classify** -- Use the Common Patterns table above to determine the item's complexity level and which steps apply. +3. **Execute** -- Walk through only the applicable steps from the Integration Checklist below. +4. **Validate** -- Run the verification commands from the Verification Table to confirm completeness. + +--- + +## Integration Checklist + +Every new item type requires changes across these files. Walk the contributor through each step in order: + +### Step 1 -- Register the Item Type Enum + +**File:** `src/fabric_cli/core/fab_types.py` + +Add the new member to the `ItemType` enum class, in the `# API` section, maintaining alphabetical order within that section. + +```python +# In class ItemType(_BaseItemType): +# API section +NEW_ITEM = "NewItem" +``` + +**Rules:** +- The enum member name uses `UPPER_SNAKE_CASE` +- The enum value uses `PascalCase` matching the Fabric API's `type` field exactly +- Place it alphabetically among the other `# API` entries + +### Step 2 -- Add API Format Mapping + +**File:** `src/fabric_cli/core/fab_types.py` + +Add an entry to the `format_mapping` dictionary. This maps the item type to its Fabric REST API URI segment. + +```python +# In format_mapping dict: +ItemType.NEW_ITEM: "newItems", +``` + +**Rules:** +- The value is the **plural camelCase** form used in the REST API URL: `https://api.fabric.microsoft.com/v1/workspaces/{id}/{value}` +- Check the [Fabric REST API reference](https://learn.microsoft.com/en-us/rest/api/fabric/) for the correct value +- Maintain alphabetical order by `ItemType` member name + +### Step 3 -- Add Portal URI Mapping + +**File:** `src/fabric_cli/core/fab_types.py` + +Add an entry to the `uri_mapping` dictionary. This maps the item type to its Fabric Portal URL segment for the `fab open` command. + +```python +# In uri_mapping dict: +ItemType.NEW_ITEM: "newitems", +``` + +**Rules:** +- The value is the **lowercase** slug used in the portal URL: `https://app.fabric.microsoft.com/groups/{ws_id}/{value}/{item_id}` +- Check the Fabric portal URL by opening an item of this type in the browser +- Maintain alphabetical order by `ItemType` member name + +### Step 4 -- Add Definition Format Mapping (if applicable) + +**File:** `src/fabric_cli/core/fab_types.py` + +If the item type supports `export`/`import` with definition payloads, add an entry to `definition_format_mapping`. + +```python +# In definition_format_mapping dict: +ItemType.NEW_ITEM: {"default": ""}, +``` + +**Rules:** +- `"default"` key is required -- it defines the query parameter appended when no explicit format is requested +- Additional keys map user-specified format names to query strings (e.g., `"TMDL": "?format=TMDL"`) +- If the item has no definition support, skip this step +- Maintain alphabetical order by `ItemType` member name + +### Step 5 -- Add OneLake Folders (if applicable) + +**File:** `src/fabric_cli/core/fab_types.py` + +If the item type exposes OneLake folders (e.g., `Tables`, `Files`), add: + +> **Ask the requestor:** "Does this item type expose OneLake folders (e.g., Tables, Files)? If so, which folders does it expose, and are any of them writable?" Do not guess -- OneLake folder configuration varies per item type and incorrect values will cause runtime errors. + +1. A new `Enum` class for the folders: +```python +class NewItemFolders(Enum): + TABLES = "Tables" + FILES = "Files" +``` + +2. An entry in `ItemFoldersMap`: +```python +ItemType.NEW_ITEM: [folder.value for folder in NewItemFolders], +``` + +3. If any folders are writable via OneLake, add to `ItemOnelakeWritableFoldersMap`. + +### Step 6 -- Add Job Type Mapping (if applicable) + +**File:** `src/fabric_cli/core/fab_types.py` + +If the item type supports on-demand job execution (e.g., running a notebook, triggering a pipeline), add: + +> **Ask the requestor:** "Does this item type support on-demand job execution? If so, what is the exact job type name used by the Fabric REST API (e.g., `RunNotebook`, `Pipeline`)?" The job type string must match the API exactly -- do not infer it. + +1. A new member to the `FabricJobType` enum if the job type doesn't already exist: +```python +class FabricJobType(Enum): + NEW_JOB = "NewJobType" +``` + +2. An entry in `ITJobMap`: +```python +ItemType.NEW_ITEM: FabricJobType.NEW_JOB, +``` + +**Rules:** +- The job type value must match the Fabric REST API's job type string exactly + +### Step 7 -- Add Creation Parameters (if applicable) + +**File:** `src/fabric_cli/utils/fab_cmd_mkdir_utils.py` + +In the `get_params_per_item_type()` function, add a case for the new item type: + +```python +case ItemType.NEW_ITEM: + required_params = ["paramA"] # params that MUST be provided + optional_params = ["paramB"] # params that MAY be provided +``` + +### Step 8 -- Add Creation Payload Logic (if applicable) + +**File:** `src/fabric_cli/utils/fab_cmd_mkdir_utils.py` + +In the `add_type_specific_payload()` function, add a case for the new item type: + +```python +case ItemType.NEW_ITEM: + # Option A: Inline payload + payload_dict["definition"] = { + "parts": [{ + "path": "content.json", + "payload": "", + "payloadType": "InlineBase64", + }] + } + + # Option B: File-based payload template + payload_folder = "Blank.NewItem" + payload_path = os.path.join( + project_root, "commands", "fs", "payloads", payload_folder + ) + payload_dict["definition"] = _create_payload(payload_path, params) + + # Option C: creationPayload (no definition) + payload_dict["creationPayload"] = {"someProperty": value} +``` + +If using Option B, create the payload template directory: +- `src/fabric_cli/commands/fs/payloads/Blank.NewItem/` +- Place template files inside (JSON, PBIR, etc.) + +### Step 9 -- Add Import Payload Handling + +**File:** `src/fabric_cli/core/hiearchy/fab_item.py` + +In the `get_payload()` method, add the new item type. Choose the appropriate pattern: + +**Standard pattern** (most items) -- add to the existing multi-case match: +```python +case ( + ItemType.REPORT + | ItemType.KQL_DASHBOARD + | ... + | ItemType.NEW_ITEM # <-- Add here +): + return { + "type": str(self.item_type), + "folderId": self.folder_id, + "displayName": self.short_name, + "definition": definition, + } +``` + +**Custom pattern** (items with format-specific handling) -- add a dedicated case: +```python +case ItemType.NEW_ITEM: + return { + "type": str(self.item_type), + "folderId": self.folder_id, + "displayName": self.short_name, + "definition": { + "format": input_format or "default", + "parts": definition["parts"], + }, + } +``` + +### Step 10 -- Update Command Support Configuration + +**File:** `src/fabric_cli/core/fab_config/command_support.yaml` + +This file controls which CLI commands are enabled for each item type. Add the new item type's snake_case name to the appropriate command sections based on the API Support Matrix from the Prerequisites. + +> **This step applies to ALL item types, not just items with definition support.** Sub-step 10a (`unsupported_items` review) always applies. Sub-steps 10b-10e apply only to items with definition support. + +#### 10a. Check `unsupported_items` lists (always) + +Review the `unsupported_items` sections for `rm`, `get`, `set`, and `mkdir`. If the new item type does **not** support one of these operations via the Fabric REST API, add it to the relevant `unsupported_items` list. Check existing entries (e.g., `dashboard`, `paginated_report`) for reference. + +> **Ask the requestor:** "Can this item type be deleted (rm), read with detailed properties (get), updated (set), and created (mkdir) via the standard items API?" Add the item to `unsupported_items` for any command it does not support. + +```yaml +# Example: item cannot be deleted or created via API + rm: + unsupported_items: + # ... existing items ... + - new_item # <-- Add here if rm is NOT supported + mkdir: + unsupported_items: + # ... existing items ... + - new_item # <-- Add here if mkdir is NOT supported +``` + +#### 10b. Add to `export` (if the item supports `getItemDefinition` API) + +```yaml +commands: + fs: + subcommands: + export: + supported_items: + # ... existing items ... + - new_item # <-- Add here, maintain alphabetical order +``` + +#### 10c. Add to `import` (if the item supports `createItem` with definition) + +```yaml + import: + supported_items: + # ... existing items ... + - new_item # <-- Add here +``` + +#### 10d. Add to `mv` (if the item supports all three definition APIs) + +```yaml + mv: + supported_items: + # ... existing items ... + - new_item # <-- Add here +``` + +#### 10e. Add to `cp` (if the item supports all three definition APIs) + +```yaml + cp: + supported_items: + # ... existing items ... + - new_item # <-- Add here +``` + +**Rules:** +- Use `snake_case` for item type names (e.g., `semantic_model`, `data_pipeline`, `copy_job`) +- The `mv` and `cp` commands require **both** export (getItemDefinition) **and** import (createItem with definition) support because they work by exporting from source and importing to destination +- If the item does NOT support `import` (e.g., `graph_query_set`), add it to the `import` section's `unsupported_items` list +- The `export` list often includes extra items like `eventhouse` and `kql_database` that support export but not import/mv/cp +- Check existing items in each section for reference patterns + +### Step 11 -- Add to Test Parametrization Lists + +**File:** `tests/test_commands/conftest.py` + +Add the new item type to the parametrized test lists so that existing tests automatically cover the new item type. + +> **IMPORTANT: Do NOT create VCR cassette recording files.** Only modify the parametrization lists in `conftest.py`. The recording files under `tests/test_commands/recordings/` are generated separately by running the tests against a live environment and should never be hand-crafted or generated by this agent. + +#### 11a. Add to `ALL_ITEM_TYPES` + +This list drives the comprehensive test suite (cd, ls, exists, rm, get, set, mkdir). + +```python +ALL_ITEM_TYPES = [ + ItemType.DATA_PIPELINE, + ItemType.ENVIRONMENT, ItemType.EVENTHOUSE, ItemType.EVENTSTREAM, + # ... existing items ... + ItemType.USER_DATA_FUNCTION, ItemType.DIGITAL_TWIN_BUILDER, ItemType.GRAPH_QUERY_SET, + ItemType.NEW_ITEM, # <-- Add here at the end +] +``` + +#### 11b. Add to `basic_item_parametrize` + +This list drives tests for "basic" items -- items that have **no special creation parameters, no OneLake folders, and no special properties**. Add the new item type here **only if** it is a basic item (i.e., it does NOT appear in `mkdir_item_with_creation_payload_success_params` or `get_item_with_properties_success_params`). + +```python +basic_item_parametrize = pytest.mark.parametrize("item_type", [ + ItemType.DATA_PIPELINE, ItemType.ENVIRONMENT, ItemType.EVENTSTREAM, + # ... existing items ... + ItemType.USER_DATA_FUNCTION, ItemType.DIGITAL_TWIN_BUILDER, ItemType.GRAPH_QUERY_SET, + ItemType.NEW_ITEM, # <-- Add here at the end +]) +``` + +#### 11c. Add to `mv_item_to_item_success_params` (if mv is supported) + +If the item type was added to `mv` in `command_support.yaml`, also add it here: + +```python +mv_item_to_item_success_params = pytest.mark.parametrize("item_type", [ + ItemType.DATA_PIPELINE, ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, + # ... existing items ... + ItemType.NEW_ITEM, # <-- Add here +]) +``` + +Similarly update `mv_item_within_workspace_rename_success_params` if applicable. + +#### 11d. Add to `get_item_with_properties_success_params` (if the item has special properties) + +If the item type has extended properties returned by `fab get -v`, add it: + +```python +get_item_with_properties_success_params = pytest.mark.parametrize("item_type,expected_properties", [ + # ... existing items ... + (ItemType.NEW_ITEM, ["properties", "someSpecificProperty"]), +]) +``` + +#### 11e. Add to export test parametrize lists (if export is supported) + +If the item type was added to `export` in `command_support.yaml`, add it to all export-related test lists: + +```python +# Export with file extension check +export_item_with_extension_parameters = pytest.mark.parametrize("item_type,expected_file_extension", [ + # ... existing items ... + (ItemType.NEW_ITEM, ".json"), # <-- Add here with expected extension +]) + +# Export item types +export_item_types_parameters = pytest.mark.parametrize("item_type", [ + # ... existing items ... + ItemType.NEW_ITEM, # <-- Add here +]) + +# Export default format (expected file count) +export_item_default_format_parameters = pytest.mark.parametrize("item_type,expected_file_count", [ + # ... existing items ... + (ItemType.NEW_ITEM, 2), # <-- Add here with expected count +]) + +# Export invalid format +export_item_invalid_format_parameters = pytest.mark.parametrize("item_type,invalid_format", [ + # ... existing items ... + (ItemType.NEW_ITEM, ".txt"), # <-- Add here +]) +``` + +#### 11f. Add to `set_item_metadata_for_all_types_success_item_params` (if applicable) + +If the item type supports `fab set` for metadata (displayName, description), add it: + +```python +set_item_metadata_for_all_types_success_item_params = pytest.mark.parametrize("item_type", [ + # ... existing items ... + ItemType.NEW_ITEM, # <-- Add here +]) +``` + +### Step 12 -- Add Changelog Entry + +Create a changelog entry file in `.changes/unreleased/` using the changie format: + +**File:** `.changes/unreleased/new-items-YYYYMMDD-HHMMSS.yaml` + +```yaml +kind: new-items +body: Add support for NewItem item type +time: 2026-01-15T10:30:00.000000000Z +custom: + Author: your-github-username + AuthorLink: https://github.com/your-github-username +``` + +**Rules:** +- The `kind` must be `new-items` (maps to the `New Items Support` section in the changelog) +- The `body` should be a concise description of what was added +- The `time` should be the current UTC timestamp in RFC 3339 format +- The `Author` should be the contributor's GitHub username +- The file name format is `new-items-YYYYMMDD-HHMMSS.yaml` (e.g., `new-items-20260115-103000.yaml`) + +Alternatively, if `changie` is installed, run: +```bash +changie new --kind new-items --body "Add support for NewItem item type" --custom Author=your-github-username +``` + +### Step 13 -- Update Documentation Pages + +#### 13a. Update Resource Types Page + +**File:** `docs/essentials/resource_types.md` + +Add the new item type to the **Item Types** table, maintaining alphabetical order: + +```markdown +| Extension | Description | +|------------------------|------------------------------------| +| ... | ... | +| `.NewItem` | Description of the new item type | +| ... | ... | +``` + +#### 13b. Update Item Examples Page + +**File:** `docs/examples/item_examples.md` + +Add the new item type to the **supported item type lists** in the following sections (only if the item supports the corresponding command): + +1. **Copy Item** -- Add `.NewItem` to the "Supported Item Types for Copy" list (if `cp` is supported) +2. **Export Item** -- Add `.NewItem` to the "Exportable Item Types" list (if `export` is supported) + +For example, add to the copy section: +```markdown +- `.MirroredDatabase`, `.Reflex` +- `.NewItem`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary` +``` + +And to the export section: +```markdown +- `.Reflex`, `.NewItem`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary` +``` + +**Rules:** +- Maintain consistent formatting with existing entries +- Place new items alphabetically or in a logical grouping with similar item types +- Update both the copy and export sections if the item supports both operations + +--- + +## Verification Table + +After completing all applicable steps, run these commands to verify each integration point. Replace `NEW_ITEM` with the actual enum member name and `NewItem` with the PascalCase type name. + +| Step | Verify with | When | +|------|-------------|------| +| 1. Enum | `grep -n 'NEW_ITEM.*=.*"NewItem"' src/fabric_cli/core/fab_types.py` | Always | +| 2. format_mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i format_mapping` | Always | +| 3. uri_mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i uri_mapping` | Always | +| 4. definition_format | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i definition` | Has definitions | +| 5. OneLake folders | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i folder` | Has OneLake folders | +| 6. Job mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py \| grep -i job` | Has jobs | +| 7. Creation params | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/utils/fab_cmd_mkdir_utils.py \| grep -i param` | Has creation params | +| 8. Creation payload | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/utils/fab_cmd_mkdir_utils.py \| grep -i payload` | Has creation payload | +| 9. Import payload | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/hiearchy/fab_item.py` | Always | +| 10. Command support | `grep -n 'new_item' src/fabric_cli/core/fab_config/command_support.yaml` | Always (check both supported_items and unsupported_items) | +| 11a. ALL_ITEM_TYPES | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i all_item` | Always | +| 11b. basic_item | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i basic` | Basic items only | +| 11c. mv params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i mv` | Has mv support | +| 11d. properties params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i properties` | Has special properties | +| 11e. export params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i export` | Has export support | +| 11f. set metadata | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py \| grep -i metadata` | Has set support | +| 12. Changelog | `ls .changes/unreleased/ \| grep -i newitem` | Always | +| 13a. Resource types | `grep -n 'NewItem' docs/essentials/resource_types.md` | Always | +| 13b. Item examples | `grep -n 'NewItem' docs/examples/item_examples.md` | Has cp or export | +| Tests pass | `python -m pytest tests/ -q` | Always | + +--- + +## Reference: Complete Onboarding Example (Map Item Type) + +Here is a real example of onboarding the `Map` item type, which is an **item with definition support** (supports export, import, mv, cp but has no special creation parameters, no OneLake folders, no jobs): + +### Files Changed + +| File | Changes | +|------|---------| +| `src/fabric_cli/core/fab_types.py` | Added `MAP = "Map"` enum, `"maps"` in format_mapping, `"maps"` in uri_mapping, `{"default": ""}` in definition_format_mapping | +| `src/fabric_cli/core/hiearchy/fab_item.py` | Added `ItemType.MAP` to the standard multi-case match in `get_payload()` | +| `src/fabric_cli/core/fab_config/command_support.yaml` | Added `map` to `export`, `import`, `mv`, `cp` supported_items | +| `tests/test_commands/conftest.py` | Added `ItemType.MAP` to `ALL_ITEM_TYPES`, `basic_item_parametrize`, `mv_item_to_item_success_params`, `mv_item_within_workspace_rename_success_params`, `set_item_metadata_for_all_types_success_item_params`, `export_item_with_extension_parameters`, `export_item_types_parameters`, `export_item_default_format_parameters`, `export_item_invalid_format_parameters` | +| `.changes/unreleased/new-items-*.yaml` | Changelog entry for Map item type | +| `docs/essentials/resource_types.md` | Added `.Map` row to the Item Types table | +| `docs/examples/item_examples.md` | Added `.Map` to copy and export supported types lists | + diff --git a/.github/agents/orchestrator.agent.md b/.github/agents/orchestrator.agent.md deleted file mode 100644 index 5cf38965b..000000000 --- a/.github/agents/orchestrator.agent.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -name: Orchestrator -description: End-to-end orchestrator for the Fabric CLI. Routes a user request to the right phase and enforces the planning → execution → testing sequence by delegating to the Planner, Implementer, and Tester agents, carrying the shared plan between them. Use for multi-phase tasks such as onboarding a new Fabric item type. -argument-hint: Describe the end-to-end task (e.g., "onboard the Map item type end to end") -tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file', 'editFiles', 'runSubagent'] ---- - -# Orchestrator - -You drive a task **end to end** by routing it to the right phase and enforcing -the order **plan → implement → test**. You delegate each phase to its dedicated -agent and carry the shared **plan** between them. You are domain-agnostic — the -domain knowledge comes from whichever **skill** matches the request. - -## The three phases and their agents - -1. **Planner** (`Planner`) — analyzes the request, loads the matching skill, and produces the plan. -2. **Implementer** (`Implementer`) — makes source/config/docs changes per the plan. -3. **Tester** (`Tester`) — updates parametrization, records tests, and validates playback. - -> Prefer delegating each phase to its agent via `runSubagent` (exact agent -> names above). If subagent delegation is unavailable, follow that phase's agent -> file directly: [Planner](planner.agent.md), [Implementer](implementer.agent.md), -> [Tester](tester.agent.md). - -## Routing - -- If the user asks only to plan / implement / test, route to that single agent. -- If the user asks for the whole task, run all three phases in order. -- First, **discover the matching skill** (`.github/skills/*/SKILL.md`) so you can - name it explicitly when delegating. If none matches, tell the user and proceed - with the generic workflow. - -## Safety rules (every phase) - -- **Never hardcode secrets, tokens, or credentials**, and never request secrets through chat. -- **Use deterministic, non-real test data.** -- **Verify, don't guess** — capabilities come from skills, docs, or the requestor. -- **Follow existing patterns** and preserve required ordering. - -## Workflow - -### Phase 1 — Plan -1. Confirm the request and any known details. -2. Delegate to the **Planner**. Capture its **plan verbatim** — it is the contract - for the next phases. Save it if the skill specifies a location. -3. Present the plan's key decisions and **open questions** to the user. **Pause** - for confirmation on open questions — do not invent answers. - -### Phase 2 — Implement -4. Delegate to the **Implementer** with the confirmed plan. -5. Let it implement only the applicable steps and run its format/type checks. -6. Summarize the files changed and what the Tester still needs. - -### Phase 3 — Test & record -7. Delegate to the **Tester** with the same plan and the Implementer's hand-off. -8. It updates parametrization lists first. -9. **Recording gate:** before any live recording, surface the required env vars - and **stop** until the user confirms they are set and authenticated. Recording - makes real API calls. -10. After recording, verify playback passes with **no** live calls and cassettes - contain no private data. - -### Final report -11. Give one summary: files changed, behavior enabled, tests recorded, and - follow-ups (e.g., PR review of `.yaml` recordings, changelog entry). Run the - fast validation the skill specifies. - -## Handling pauses - -This is a human-in-the-loop workflow. Stop and ask the user when the Planner has -open questions, the Implementer hits something the plan didn't cover, or the -Tester is about to record and needs env vars / live auth confirmed. Never skip -the recording gate, and never fabricate cassettes or capabilities to keep moving. diff --git a/.github/agents/planner.agent.md b/.github/agents/planner.agent.md deleted file mode 100644 index 0dbc76483..000000000 --- a/.github/agents/planner.agent.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -name: Planner -description: Generic planning agent for the Fabric CLI. Analyzes a user request, discovers and loads any matching skill, inspects the repository to identify the exact files and changes required, and produces a written, verifiable plan. Read-only — it never edits code, tests, or config. -argument-hint: Describe what you want to build or change (e.g., "add support for the Map item type") -tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file'] ---- - -# Planner - -You are the **Planner**. Your job is to turn a user request into a single, -unambiguous, **verifiable plan** that the Implementer and Tester agents can -execute. You **inspect** the repo and the relevant docs, but you **never write -source code, tests, or config** — your only output is the plan and answers to the -user's questions. - -## Skill-loading protocol (do this first) - -You are **domain-agnostic**. The domain knowledge lives in **skills**. Before -planning: - -1. **Discover skills.** List `.github/skills/*/SKILL.md` (and, if present, - `.ai-assets/skills/*/SKILL.md`). Read each `SKILL.md` frontmatter - `description`. -2. **Match.** If a skill's description matches the user's request, that skill is - authoritative. Read its `SKILL.md`, then open the **planning reference** it - points to (e.g., `references/plan.md`) and follow it step by step. - - Example: a request to "add / onboard a new Fabric item type" → load the - `onboard-item-type` skill and follow [references/plan.md](../skills/onboard-item-type/references/plan.md). -3. **No matching skill?** Fall back to the generic workflow below and tell the - user no skill matched. - -## Safety rules - -- **Never hardcode secrets, tokens, or credentials**; never request secrets through chat. -- **Use deterministic, non-real values** in examples (no real tenant/workspace IDs or emails). -- **Verify, don't guess.** Every claim in the plan must trace to a file you read, - a doc you fetched, or an explicit answer from the requestor. -- **Follow existing patterns** — consistency over cleverness. - -## Generic workflow (when a skill drives it, follow the skill's steps instead) - -1. **Understand** the request. Restate the goal in one sentence; ask clarifying - questions only for genuinely ambiguous or missing critical details. -2. **Inspect** the repository — search for the closest existing pattern, read the - files that would change, and confirm conventions (naming, ordering, error handling). -3. **Verify** external facts (APIs, formats) by fetching authoritative docs. -4. **Produce the plan.** If a skill supplies a plan template, use it verbatim. - Otherwise produce: - - **Goal** — one sentence. - - **Files to change** — path + what changes + why. - - **Verified facts** — with sources (file paths / doc URLs). - - **Step list** — ordered, each step independently checkable. - - **Test impact** — what the Tester must cover. - - **Open questions / assumptions** — anything the requestor must confirm. - -## Output and hand-off - -Present the plan in chat and offer to save it (skills may specify a location, -e.g., `.github/skills//plans/.plan.md`). End by telling the user to -run the **Implementer** agent next with this plan, then the **Tester** agent — -or to use the **Orchestrator** agent to run all phases in order. diff --git a/.github/agents/tester.agent.md b/.github/agents/tester.agent.md deleted file mode 100644 index b54b38fc8..000000000 --- a/.github/agents/tester.agent.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -name: Tester -description: Generic testing agent for the Fabric CLI. Takes an approved plan, loads any matching skill, updates the test parametrization, records cassettes against a live environment when required, and validates that unit/e2e tests pass in playback. Enforces a recording gate before making live API calls. -argument-hint: Paste the plan from the Planner agent (and confirm the Implementer's changes are applied) -tools: ['runInTerminal', 'terminalLastCommand', 'search', 'fetch', 'read_file', 'editFiles'] ---- - -# Tester - -You are the **Tester**. After the Implementer has landed the source/config/docs -changes, you make the test suite cover the change, **record any required -cassettes**, and validate that tests pass in playback. You are domain-agnostic — -the *what to cover* comes from the plan and its skill. - -> **Prerequisite:** You need the plan (from the **Planner**) and the -> Implementer's changes already applied. If source changes are missing, tests -> will fail — confirm with the user before recording. - -## Skill-loading protocol (do this first) - -1. **Identify the skill** named or implied by the plan. Read its `SKILL.md`, then - open the **test** and **record** references it points to (e.g., - `references/test.md` and `references/record.md`) and follow them. - - Example: onboarding a new item type → the `onboard-item-type` skill's - [references/test.md](../skills/onboard-item-type/references/test.md) and - [references/record.md](../skills/onboard-item-type/references/record.md). -2. **No skill?** Add/adjust the tests the plan's Test impact section calls for, - following existing test patterns in `tests/`. - -## Safety rules - -- **Never hardcode secrets, tokens, or credentials** in tests or cassettes. -- **Use deterministic test data** — no real tenant IDs, workspace IDs, or user emails. -- **Recording privacy:** before committing, confirm **no private data** is in the - cassette `.yaml` files; mask via `tests/test_commands/processors.py` if needed. -- **Never fabricate cassettes by hand** — they must come from a real recording run. -- **Do not ask for secrets through chat.** Tell the user to `export` secret env - vars in their own terminal; never request or echo secret values. - -## Workflow - -1. **Update parametrization** — edit the test lists the plan/skill indicates - (e.g., `tests/test_commands/conftest.py`). Only touch the lists that apply. -2. **Recording gate (STOP here if recording is needed).** Recording makes **real** - API calls. Surface the exact environment variables required (narrowed by the - plan's verified capabilities) and **wait** until the user confirms they are set - and they are authenticated to a live environment. -3. **Record** the cassettes in the order the skill recommends (creation before - deletion; deletion last). -4. **Validate playback** — tests must pass with **no** live calls: - ```bash - python3 -m pytest tests/test_commands/ -k "" - black tests/ && mypy tests/ --ignore-missing-imports - ``` - -## Hand-off - -Confirm to the user that: parametrization lists were updated, cassettes were -recorded and scrubbed of private data, and playback passes with no live calls. -Remind them to review the recorded `.yaml` files in the diff before opening a PR. diff --git a/.github/skills/onboard-item-type/SKILL.md b/.github/skills/onboard-item-type/SKILL.md deleted file mode 100644 index a338944af..000000000 --- a/.github/skills/onboard-item-type/SKILL.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -name: onboard-item-type -description: Onboard a new Microsoft Fabric item type into the Fabric CLI (fab). Activate when a contributor asks to add, support, integrate, or onboard a new Fabric item type (e.g., "add support for DataActivator", "onboard the Map item type", "wire up a new Fabric item"). Covers planning capabilities against the Fabric REST API docs, implementing source/config/docs changes, and updating + recording the tests. ---- - -# Onboard a New Fabric Item Type - -This skill packages everything needed to add a new Microsoft Fabric **item type** -to the Fabric CLI. It is **role-agnostic**: the Planner, Implementer, and Tester -agents each load the reference file for their phase and follow it. - -The work is organized into four phases sharing one contract — the **Onboarding -Plan** produced in Phase 1 and consumed by every later phase. - -| Phase | Reference | Owner role | Purpose | -|-------|-----------|-----------|---------| -| 1. Plan | [references/plan.md](references/plan.md) | Planner | Verify capabilities against the Fabric REST API docs and produce the Onboarding Plan. | -| 2. Execute | [references/execute.md](references/execute.md) | Implementer | Apply source, config, changelog, and docs changes. | -| 3. Test | [references/test.md](references/test.md) | Tester | Add the item type to the test parametrization lists. | -| 4. Record | [references/record.md](references/record.md) | Tester | Record VCR cassettes against a live Fabric environment. | - -## How to use this skill - -1. Identify your phase from the role you are running as (or the step the user asks for). -2. Open the matching reference file and follow it **step by step**. -3. Keep the **Onboarding Plan** as the single source of truth — do not re-derive - API capabilities that the plan already verified. -4. Execute **only** the steps the plan marks as applicable to this item type. - -## Safety rules (all phases) - -- **Never hardcode secrets, tokens, or credentials**, and never request secrets through chat. -- **Use deterministic, non-real values** — no real tenant IDs, workspace IDs, or user emails. -- **Verify, don't guess.** Every capability must trace to an API doc page or an explicit answer from the requestor. -- **Follow existing patterns** — mirror the closest reference item and preserve alphabetical ordering where required. -- **Never fabricate cassettes.** Recordings must come from running the tests against a real environment. - -## Onboarding Plan template - -The Planner emits this block; every later phase reads it. Save it to -`.github/skills/onboard-item-type/plans/.plan.md` if you want to persist it. - -```markdown -# Onboarding Plan — - -## Identity -- Display name (API `type`): -- Enum member: -- snake_case name (for YAML/tests): -- API plural URI segment (format_mapping): -- Portal URI slug (uri_mapping): - -## Verified capabilities (cite the API doc URLs you fetched) -- Create / Delete / Get / Update Item: yes/no each -- Get Definition / Update Definition / Create-with-definition: yes/no each -- Definition formats: -- OneLake folders: (writable: ) -- Jobs: yes/no — job type name: -- Creation params: required=, optional= (or none) -- Source of truth: - -## Classification -- Category: -- Closest existing reference: - -## Command support decisions (command_support.yaml) -- export / import / mv / cp: yes/no each -- rm / get / set / mkdir unsupported_items: add? yes/no each - -## Applicable step list -- Execute steps: -- Test lists to touch: -- Recording env vars needed: - -## Open questions / assumptions - -``` diff --git a/.github/skills/onboard-item-type/references/execute.md b/.github/skills/onboard-item-type/references/execute.md deleted file mode 100644 index 98da9f0f1..000000000 --- a/.github/skills/onboard-item-type/references/execute.md +++ /dev/null @@ -1,216 +0,0 @@ -# Phase 2 — Execute - -Take the **Onboarding Plan** (from Phase 1) and implement all **source code, -configuration, changelog, and documentation** changes for the new item type. - -> **Prerequisite:** You need the Onboarding Plan. If it is missing, ask for it or -> run Phase 1 first. Trust the plan's verified capabilities; if a value is -> missing or looks wrong, flag it and ask — do not re-derive from scratch. - -> **Do NOT touch tests or record cassettes.** Test parametrization -> (`tests/test_commands/conftest.py`) and cassette recording are Phases 3–4 -> (Tester). Leave the tree in a state the Tester can pick up. - -## Safety rules - -- **Never hardcode secrets, tokens, or credentials** in payloads. -- **Use deterministic default content** for payload templates — no real IDs. -- **Validate user-provided parameters** and **raise `FabricCLIError`** with the - appropriate error code for invalid input (see `errors/` and `fab_constant`). -- **Follow existing patterns** — mirror the closest reference item named in the plan. -- **Maintain alphabetical ordering** in enums and mappings as noted per step. - -## How to use the plan - -1. Read the plan's Identity, Verified capabilities, Command support decisions, and step list. -2. Execute **only** the steps the plan marks as applicable. -3. After each step, self-verify with the command in the Verification Table. -4. When done, run the validation suite and hand off to the Tester. - -## Integration checklist - -### Step 1 — Register the Item Type Enum -**File:** `src/fabric_cli/core/fab_types.py` - -Add the member to the `ItemType` enum, in the `# API` section, alphabetically: - -```python -NEW_ITEM = "NewItem" -``` - -Member name: `UPPER_SNAKE_CASE`. Value: `PascalCase` matching the API `type` field exactly. - -### Step 2 — Add API Format Mapping -**File:** `src/fabric_cli/core/fab_types.py` - -```python -# In format_mapping dict: -ItemType.NEW_ITEM: "newItems", -``` - -Value is the **plural camelCase** REST URL segment: `.../v1/workspaces/{id}/{value}`. Keep alphabetical by member name. - -### Step 3 — Add Portal URI Mapping -**File:** `src/fabric_cli/core/fab_types.py` - -```python -# In uri_mapping dict: -ItemType.NEW_ITEM: "newitems", -``` - -Value is the **lowercase** portal slug: `.../groups/{ws_id}/{value}/{item_id}`. - -### Step 4 — Add Definition Format Mapping (if the item has definitions) -**File:** `src/fabric_cli/core/fab_types.py` - -```python -# In definition_format_mapping dict: -ItemType.NEW_ITEM: {"default": ""}, -``` - -`"default"` is required. Add extra keys for named formats (e.g., `"TMDL": "?format=TMDL"`). Skip if no definition support. - -### Step 5 — Add OneLake Folders (if applicable) -**File:** `src/fabric_cli/core/fab_types.py` - -Only if the plan lists OneLake folders. Add a folders `Enum`, an entry in -`ItemFoldersMap`, and — for writable folders — an entry in -`ItemOnelakeWritableFoldersMap`: - -```python -class NewItemFolders(Enum): - TABLES = "Tables" - FILES = "Files" - -# ItemFoldersMap: -ItemType.NEW_ITEM: [folder.value for folder in NewItemFolders], -``` - -### Step 6 — Add Job Type Mapping (if applicable) -**File:** `src/fabric_cli/core/fab_types.py` - -Only if the plan says jobs are supported. Use the **exact** job type string from the plan: - -```python -class FabricJobType(Enum): - NEW_JOB = "NewJobType" - -# ITJobMap: -ItemType.NEW_ITEM: FabricJobType.NEW_JOB, -``` - -### Step 7 — Add Creation Parameters (if applicable) -**File:** `src/fabric_cli/utils/fab_cmd_mkdir_utils.py` - -In `get_params_per_item_type()`: - -```python -case ItemType.NEW_ITEM: - required_params = ["paramA"] - optional_params = ["paramB"] -``` - -### Step 8 — Add Creation Payload Logic (if applicable) -**File:** `src/fabric_cli/utils/fab_cmd_mkdir_utils.py` - -In `add_type_specific_payload()`, add a case using the pattern that matches the plan: - -```python -case ItemType.NEW_ITEM: - # A: inline base64 definition - payload_dict["definition"] = {"parts": [{ - "path": "content.json", - "payload": "", - "payloadType": "InlineBase64", - }]} - # B: file-based template -> create src/fabric_cli/commands/fs/payloads/Blank.NewItem/ - # C: creationPayload (shell-only): payload_dict["creationPayload"] = {...} -``` - -If using option B, create `src/fabric_cli/commands/fs/payloads/Blank.NewItem/` with deterministic template files. - -### Step 9 — Add Import Payload Handling -**File:** `src/fabric_cli/core/hiearchy/fab_item.py` - -In `get_payload()`, add the item type. **Standard** items join the existing multi-case match: - -```python -case ( - ItemType.REPORT - | ... - | ItemType.NEW_ITEM -): - return { - "type": str(self.item_type), - "folderId": self.folder_id, - "displayName": self.short_name, - "definition": definition, - } -``` - -Use a dedicated case only for format-specific handling. - -### Step 10 — Update Command Support Configuration -**File:** `src/fabric_cli/core/fab_config/command_support.yaml` - -Apply exactly the **Command support decisions** from the plan. Use `snake_case` -names and maintain alphabetical order. - -- **10a. `unsupported_items` (always review):** add the item to `rm`, `get`, - `set`, and/or `mkdir` `unsupported_items` for any command the API does **not** support. -- **10b. `export`** supported_items — if Get Definition is supported. -- **10c. `import`** supported_items — if create-with-definition is supported (else add to `import.unsupported_items`). -- **10d. `mv`** supported_items — if both export and import are supported. -- **10e. `cp`** supported_items — if both export and import are supported. - -### Step 11 — TESTS (SKIP — Tester's responsibility) -**Do not edit `tests/test_commands/conftest.py` and do not record cassettes.** -Leave a note in your hand-off so the Tester knows which lists to update. - -### Step 12 — Add Changelog Entry -Preferred — run changie (valid kinds include `new-items`): - -```bash -changie new --kind new-items --body "Add support for NewItem item type" --custom Author= -``` - -Or create `.changes/unreleased/new-items-YYYYMMDD-HHMMSS.yaml`: - -```yaml -kind: new-items -body: Add support for NewItem item type -time: 2026-01-15T10:30:00.000000000Z -custom: - Author: - AuthorLink: https://github.com/ -``` - -### Step 13 — Update Documentation Pages -- **13a.** `docs/essentials/resource_types.md` — add a `.NewItem` row to the Item Types table (alphabetical). -- **13b.** `docs/examples/item_examples.md` — add `.NewItem` to the copy list (if `cp`) and export list (if `export`). - -## Verification Table - -Replace `NEW_ITEM`/`NewItem`/`new_item` with the real values. - -| Step | Verify with | When | -|------|-------------|------| -| 1. Enum | `grep -n 'NEW_ITEM.*=.*"NewItem"' src/fabric_cli/core/fab_types.py` | Always | -| 2. format_mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Always | -| 3. uri_mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Always | -| 4. definition_format | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Has definitions | -| 5. OneLake folders | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Has folders | -| 6. Job mapping | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/fab_types.py` | Has jobs | -| 7/8. Creation params/payload | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/utils/fab_cmd_mkdir_utils.py` | Has params | -| 9. Import payload | `grep -n 'ItemType.NEW_ITEM' src/fabric_cli/core/hiearchy/fab_item.py` | Always | -| 10. Command support | `grep -n 'new_item' src/fabric_cli/core/fab_config/command_support.yaml` | Always | -| 12. Changelog | `ls .changes/unreleased/ \| grep -i newitem` | Always | -| 13a. Resource types | `grep -n 'NewItem' docs/essentials/resource_types.md` | Always | -| 13b. Item examples | `grep -n 'NewItem' docs/examples/item_examples.md` | Has cp/export | -| Type/format checks | `black src/ && mypy src/ --ignore-missing-imports` | Always | - -## Hand-off - -When your steps pass, tell the user which files changed and which conftest -parametrization lists the Tester still needs to update (from the plan's Test -step list). The **tests are not yet updated or recorded** — that is Phases 3–4. diff --git a/.github/skills/onboard-item-type/references/plan.md b/.github/skills/onboard-item-type/references/plan.md deleted file mode 100644 index 97df732dd..000000000 --- a/.github/skills/onboard-item-type/references/plan.md +++ /dev/null @@ -1,140 +0,0 @@ -# Phase 1 — Plan - -Gather everything needed to onboard a new Fabric item type, **verify each -capability against the official Fabric REST API documentation**, and produce a -single, unambiguous **Onboarding Plan** (template in [SKILL.md](../SKILL.md)). - -> **Do not write source code, tests, or config in this phase.** The only output -> is the Onboarding Plan and answers to the user's questions. - -> **If you are unsure about any detail** — the API URI, portal slug, whether the -> item supports definitions, OneLake folders, jobs, or which commands are -> supported — **verify it against the API docs first, and if still unclear, ask -> the requestor before finalizing the plan.** - -Do not produce the plan until Gather + Verify + Classify are complete. - -## Phase A — Gather - -Collect the following. You only strictly need the **display name** to start; -derive or verify the rest during Phase B. - -| Information | Example | How to obtain | -|-------------|---------|---------------| -| **Display name** (PascalCase, matches API `type`) | `Map` | Ask the requestor | -| **API plural URI segment** | `maps` | Verify in API docs (Phase B) | -| **Portal URI slug** | `maps` | Ask requestor / open item in portal | -| **Has definition/payload** | Yes / No | Verify in API docs (Phase B) | -| **Definition formats** | `ipynb`, `TMDL` | Verify in API docs | -| **OneLake folders** | `Tables`, `Files` | Ask requestor (varies per type) | -| **Supports jobs** | Yes / No | Verify in API docs | -| **Job type name** | `RunNotebook` | Verify in API docs (must match exactly) | -| **Creation parameters** | `enableSchemas` | Verify in Create endpoint docs | - -## Phase B — Verify capabilities against the Fabric REST API docs (REQUIRED) - -The set of commands the CLI enables for an item type is driven **directly** by -which REST APIs the item supports. You **must fetch the actual API pages** — do -not infer capabilities from the item name alone. - -### B1. Fetch the item's Operations page - -``` -https://learn.microsoft.com/en-us/rest/api/fabric/{itemtype-lowercase}/items -``` - -where `{itemtype-lowercase}` is the PascalCase display name lowercased with no -separators (e.g., `DataPipeline` → `datapipeline`, `KQLDatabase` → `kqldatabase`, -`GraphQLApi` → `graphqlapi`). - -- If the URL 404s, try alternate spellings, then fall back to the - [Fabric REST API root](https://learn.microsoft.com/en-us/rest/api/fabric/) and - navigate to the item's section. If still inaccessible, ask the requestor to - paste the operations list. - -From the **Operations** table, record which of these exist: - -| API operation | Present? | -|---------------|----------| -| Create Item (`POST .../items`) | ☐ | -| Delete Item (`DELETE .../items/{id}`) | ☐ | -| Get Item (`GET .../items/{id}`) | ☐ | -| Update Item (`PATCH .../items/{id}`) | ☐ | -| List Items (`GET .../items`) | ☐ | -| **Get [Item] Definition** (`POST .../getDefinition`) | ☐ | -| **Update [Item] Definition** (`POST .../updateDefinition`) | ☐ | -| Create with Definition (`POST .../items` accepts a `definition` body) | ☐ | -| Jobs / Run on demand (`POST .../jobs/instances`) | ☐ | - -### B2. Fetch the Create endpoint page - -``` -https://learn.microsoft.com/en-us/rest/api/fabric/{itemtype-lowercase}/items/create-{item-type-kebab-case} -``` - -- `{item-type-kebab-case}` inserts hyphens between PascalCase words and - lowercases: `DataPipeline` → `create-data-pipeline`, `KQLDatabase` → - `create-kql-database`. -- Confirm whether the request body accepts a `definition` (full definition - support) or only metadata / a `creationPayload` (shell-only, like - `Warehouse`/`Lakehouse`). -- Note any **required** vs **optional** creation parameters in the request body. - -> **Nuance:** Some pages explicitly state "This API does not support item -> definition." Treat those as shell-only. When definition support is ambiguous, -> present your findings and ask the requestor to confirm before finalizing. - -### B3. Map API support → CLI commands - -Translate the verified operations into `command_support.yaml` decisions: - -| Verified API capability | CLI effect (in `command_support.yaml`) | -|-------------------------|----------------------------------------| -| Get Definition | Add to `export` supported_items | -| Create-with-definition | Add to `import` supported_items | -| Get Definition **and** Create-with-definition (and Update Definition) | Add to `mv` **and** `cp` supported_items | -| No Delete Item API | Add to `rm` → `unsupported_items` | -| No Get Item API | Add to `get` → `unsupported_items` | -| No Update Item API | Add to `set` → `unsupported_items` | -| No Create Item API | Add to `mkdir` → `unsupported_items` | -| No Create-with-definition (but shell create exists) | Add to `import` → `unsupported_items` | - -**Rules of thumb:** -- `mv` and `cp` require **both** export (getDefinition) **and** import - (create-with-definition), because they export from source and import to destination. -- `export` may include items that support getDefinition but not import/mv/cp. -- Use `snake_case` for the item name in the YAML (e.g., `semantic_model`, `data_pipeline`, `copy_job`). - -## Phase C — Classify complexity - -Use the verified capabilities to pick the item's category. This tells the -Implementer and Tester which steps apply. - -| Category | Characteristics | Reference items | -|----------|-----------------|-----------------| -| **Simple** | No definition, no params, no folders, no jobs | `Dashboard`, `Datamart` | -| **Definition support** (most common) | export/import/mv/cp, no creation params | `Map`, `CopyJob`, `Dataflow`, `GraphQLApi`, `UserDataFunction` | -| **Creation parameters** | Requires params at create time | `Lakehouse` (enableSchemas), `Warehouse`, `KQLDatabase` | -| **OneLake folders** | Exposes `Tables`/`Files`/etc. | `Lakehouse`, `Warehouse`, `KQLDatabase` | -| **Job support** | Supports on-demand jobs | `Notebook`, `DataPipeline`, `SparkJobDefinition` | -| **Full-featured** | All of the above | `Notebook` | - -**Existing item types to study** (point the Implementer/Tester at the closest match): - -| Item Type | Enum | Good reference for | -|-----------|------|--------------------| -| `Dashboard` | `DASHBOARD` | Minimal integration | -| `Map` | `MAP` | Definition support, no params/jobs/folders | -| `Lakehouse` | `LAKEHOUSE` | Creation params, OneLake folders, jobs | -| `Notebook` | `NOTEBOOK` | Definitions, jobs, custom payload | -| `SemanticModel` | `SEMANTIC_MODEL` | Definition formats (TMDL/TMSL) | -| `Report` | `REPORT` | Dependency creation (auto-creates SemanticModel) | -| `MirroredDatabase` | `MIRRORED_DATABASE` | Multiple payload variants | -| `MountedDataFactory` | `MOUNTED_DATA_FACTORY` | Required params, custom payload | - -## Output - -Fill in every field of the **Onboarding Plan** template in [SKILL.md](../SKILL.md) -with **verified** values, present it in chat, and offer to save it under -`.github/skills/onboard-item-type/plans/`. Then hand off to the Implementer -(Phase 2) and Tester (Phases 3–4). diff --git a/.github/skills/onboard-item-type/references/record.md b/.github/skills/onboard-item-type/references/record.md deleted file mode 100644 index 99edef491..000000000 --- a/.github/skills/onboard-item-type/references/record.md +++ /dev/null @@ -1,100 +0,0 @@ -# Phase 4 — Record cassettes and validate - -Tests run in **playback mode** by default (using recorded cassettes). To cover a -new item type you record new cassettes in **live mode**, then verify playback -passes with no live calls. - -## Safety rules - -- **Recording privacy:** before committing recordings, confirm **no private - information** is present in the cassette `.yaml` files. If private data was - captured, mask/mock it via the test processors (`tests/test_commands/processors.py`). -- **Never fabricate cassettes by hand.** Cassettes under - `tests/test_commands/recordings/` must be produced by running the tests in - record mode against a real environment. -- **Do not ask for secrets through chat.** If a variable holds a secret, instruct - the user to `export` it in their own terminal. Never request or echo secret values. - -## Step B — Record the cassettes - -`--record` sets the VCR `record_mode` to `all` and re-records matching cassettes: - -```bash -# Record a single test file (live calls to Fabric) -python3 -m pytest tests/test_commands/test_get.py --record - -# Record the specific tests that now cover the new item type (faster, targeted) -python3 -m pytest tests/test_commands/test_export.py -k "new_item or NEW_ITEM" --record -``` - -Cassettes are written to -`tests/test_commands/recordings///.yaml`. - -**Recommended recording order** (record the suites the plan enabled): - -1. `test_cd.py`, `test_ls.py`, `test_exists.py` — navigation/listing (from `ALL_ITEM_TYPES`) -2. `test_mkdir.py` / creation — if `mkdir` is supported -3. `test_get.py`, `test_set.py` — metadata -4. `test_export.py`, `test_import.py` — if definition support -5. `test_cp.py`, `test_mv.py` — if `cp`/`mv` are supported -6. `test_rm.py` — deletion (run last; it cleans up created items) - -## Step C — Environment variables required for recording - -**Recording gate:** recording makes **real** calls to Microsoft Fabric. Tell the -user which environment variables to set and confirm they are set + they are -authenticated to a live environment **before** running `--record`. - -### Always required to record item tests - -| Variable | Purpose | -|----------|---------| -| A valid Fabric login | The CLI must be authenticated (`fab auth login` or a service principal). | -| `FABRIC_CLI_TEST_CAPACITY_ID` | Real capacity GUID — needed to create the workspace/items. | -| `FABRIC_CLI_TEST_CAPACITY_NAME` | Real capacity name. | - -### Conditionally required (based on the item's capabilities) - -| Variable(s) | When needed | -|-------------|-------------| -| `FABRIC_CLI_TEST_ADMIN_UPN`, `FABRIC_CLI_TEST_ADMIN_ID` | ACL/admin-related item operations | -| `FABRIC_CLI_TEST_USER_UPN`, `FABRIC_CLI_TEST_USER_ID` | Access-control tests | -| `FABRIC_CLI_TEST_SERVICE_PRINCIPAL_ID` | SPN-based auth scenarios | -| `FABRIC_CLI_TEST_SQL_SERVER`, `FABRIC_CLI_TEST_SQL_DATABASE` | Items that connect to SQL (e.g., mirrored/DB items) | -| `FABRIC_CLI_TEST_AZURE_SUBSCRIPTION_ID`, `FABRIC_CLI_TEST_AZURE_RESOURCE_GROUP`, `FABRIC_CLI_TEST_AZURE_LOCATION` | Items with Azure resource dependencies | -| Connection/gateway vars (`FABRIC_CLI_TEST_CREDENTIAL_DETAILS_*`, `FABRIC_CLI_TEST_ONPREMISES_GATEWAY_*`) | Items that require a connection or gateway | - -> **Determine the exact subset** from the plan's Verified capabilities. If the -> item has no external dependencies, capacity + auth is usually enough. When a -> recording fails with an auth/validation error, the failing request in the -> traceback tells you which resource (and thus which variable) is missing — see -> `tests/authoring_tests.md` for the full variable reference and mock-first guidance. - -Example (non-secret) setup the user runs in their shell: - -```bash -export FABRIC_CLI_TEST_CAPACITY_ID="" -export FABRIC_CLI_TEST_CAPACITY_NAME="" -``` - -## Step D — Verify and hand back - -```bash -# Playback must pass without touching the network -python3 -m pytest tests/test_commands/ -k "new_item or NEW_ITEM" - -# Formatting / typing -black tests/ && mypy tests/ --ignore-missing-imports -``` - -### Verification Table - -| Item | Verify with | -|------|-------------| -| Cassettes recorded | `ls tests/test_commands/recordings/**/ \| grep -i new_item` | -| Playback passes | `python3 -m pytest tests/test_commands/ -k "new_item or NEW_ITEM"` | - -When everything passes, confirm to the user that the parametrization lists were -updated, cassettes were recorded and scrubbed of private data, and playback -passes with no live calls. Remind them to review the recorded `.yaml` files in -the diff before opening a PR. diff --git a/.github/skills/onboard-item-type/references/test.md b/.github/skills/onboard-item-type/references/test.md deleted file mode 100644 index 21949ebca..000000000 --- a/.github/skills/onboard-item-type/references/test.md +++ /dev/null @@ -1,68 +0,0 @@ -# Phase 3 — Test (parametrization) - -After the Implementer has landed the source/config/docs changes, make the test -suite cover the new item type by adding it to the parametrization lists. - -> **Prerequisite:** You need the Onboarding Plan and the Implementer's changes -> already applied. If the source changes are missing, tests will fail — confirm -> with the user before proceeding to recording (Phase 4). - -## Safety rules - -- **Never hardcode secrets, tokens, or credentials** in tests. -- **Use deterministic test data** — no real tenant IDs, workspace IDs, or user emails. - -## Update the parametrization lists - -**File:** `tests/test_commands/conftest.py` - -Add the new item type to the parametrized lists so existing tests cover it. Only -touch the lists indicated by the plan's Command support decisions. - -### A1. `ALL_ITEM_TYPES` (always) -Drives the comprehensive suite (cd, ls, exists, rm, get, set, mkdir). - -```python -ALL_ITEM_TYPES = [ - ... - ItemType.NEW_ITEM, # add at the end -] -``` - -### A2. `basic_item_parametrize` (basic items only) -Add **only if** the item has no special creation params, no OneLake folders, and -no special properties (i.e., it is NOT in -`mkdir_item_with_creation_payload_success_params` or -`get_item_with_properties_success_params`). - -### A3. `mv_item_to_item_success_params` and `mv_item_within_workspace_rename_success_params` (if `mv` is supported) - -### A4. `get_item_with_properties_success_params` (if the item has extended `fab get -v` properties) - -```python -(ItemType.NEW_ITEM, ["properties", "someSpecificProperty"]), -``` - -### A5. Export lists (if `export` is supported) -Add to all export parametrizations with the correct expected values: - -```python -(ItemType.NEW_ITEM, ".json"), # export_item_with_extension_parameters -ItemType.NEW_ITEM, # export_item_types_parameters -(ItemType.NEW_ITEM, 2), # export_item_default_format_parameters (expected file count) -(ItemType.NEW_ITEM, ".txt"), # export_item_invalid_format_parameters -``` - -### A6. `set_item_metadata_for_all_types_success_item_params` (if `set` is supported) - -## Verification Table - -| Item | Verify with | -|------|-------------| -| `ALL_ITEM_TYPES` | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py` | -| `basic_item_parametrize` | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py` | -| mv params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py` | -| export params | `grep -n 'NEW_ITEM' tests/test_commands/conftest.py` | - -Once the lists are updated, proceed to [record.md](record.md) to record the -cassettes, then validate playback. From 52c99379e1bfaff4d37fa5b27b83e1668d5e95d6 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Mon, 23 Nov 2026 13:33:05 +0200 Subject: [PATCH 4/7] feat: add DeploymentPlan item support Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../unreleased/new-items-20261123-132500.yaml | 6 ++ docs/essentials/resource_types.md | 1 + docs/examples/item_examples.md | 2 + .../core/fab_config/command_support.yaml | 4 + src/fabric_cli/core/fab_types.py | 6 ++ tests/test_commands/conftest.py | 15 ++++ tests/test_commands/test_export.py | 1 + tests/test_utils/test_fab_item_util.py | 86 ++++++++++++++++++- 8 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/new-items-20261123-132500.yaml diff --git a/.changes/unreleased/new-items-20261123-132500.yaml b/.changes/unreleased/new-items-20261123-132500.yaml new file mode 100644 index 000000000..90ce100ab --- /dev/null +++ b/.changes/unreleased/new-items-20261123-132500.yaml @@ -0,0 +1,6 @@ +kind: new-items +body: Add support for DeploymentPlan item type +time: 2026-11-23T13:25:00.000000000+02:00 +custom: + Author: aviatco + AuthorLink: https://github.com/aviatco diff --git a/docs/essentials/resource_types.md b/docs/essentials/resource_types.md index c8f4270d3..4eb3992e3 100644 --- a/docs/essentials/resource_types.md +++ b/docs/essentials/resource_types.md @@ -28,6 +28,7 @@ Item types are the primary content resources within Fabric workspaces. Each type | `.Eventstream` | Real-time data streams | | `.Dashboard` | Interactive dashboards | | `.Datamart` | Self-service data marts | +| `.DeploymentPlan` | Ordered deployments and actions | | `.CopyJob` | Data copy operations | | `.Environment` | Spark environments | | `.MLExperiment` | Machine learning experiments | diff --git a/docs/examples/item_examples.md b/docs/examples/item_examples.md index 51e0d7118..904e2c421 100644 --- a/docs/examples/item_examples.md +++ b/docs/examples/item_examples.md @@ -253,6 +253,7 @@ fab set ws1.Workspace/rep1.Report -q definition.parts[0].payload.datasetReferenc - `.Eventhouse`, `.Eventstream` - `.MirroredDatabase`, `.Reflex` - `.DigitalTwinBuilder`, `.DigitalTwinBuilderFlow`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary` +- `.DeploymentPlan` #### Copy Item to Workspace @@ -330,6 +331,7 @@ fab export ws1.Workspace/nb1.Notebook -o /tmp - `.Reflex`, `.DigitalTwinBuilder`, `.DigitalTwinBuilderFlow`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary` - `.GraphModel`, `.Ontology` - `.AnomalyDetector`, `.DataBuildToolJob`, `.EventSchemaSet`, `.OrgApp`, `.OrgAppAudience`, `.Plan` +- `.DeploymentPlan` #### Export to Lakehouse diff --git a/src/fabric_cli/core/fab_config/command_support.yaml b/src/fabric_cli/core/fab_config/command_support.yaml index 916c7058c..636bbacf3 100644 --- a/src/fabric_cli/core/fab_config/command_support.yaml +++ b/src/fabric_cli/core/fab_config/command_support.yaml @@ -150,6 +150,7 @@ commands: - folder - onelake supported_items: # same as export + - deployment_plan - report - spark_job_definition - semantic_model @@ -190,6 +191,7 @@ commands: - onelake - local_path supported_items: # same as export + - deployment_plan - report - spark_job_definition - semantic_model @@ -256,6 +258,7 @@ commands: supported_elements: - workspace supported_items: + - deployment_plan - report - spark_job_definition - semantic_model @@ -292,6 +295,7 @@ commands: - data_build_tool_job import: supported_items: + - deployment_plan - report - spark_job_definition - semantic_model diff --git a/src/fabric_cli/core/fab_types.py b/src/fabric_cli/core/fab_types.py index 629c2992c..ed55718f2 100644 --- a/src/fabric_cli/core/fab_types.py +++ b/src/fabric_cli/core/fab_types.py @@ -261,6 +261,7 @@ class ItemType(_BaseItemType): DATAMART = "Datamart" DATA_BUILD_TOOL_JOB = "DataBuildToolJob" DATA_PIPELINE = "DataPipeline" + DEPLOYMENT_PLAN = "DeploymentPlan" DIGITAL_TWIN_BUILDER = "DigitalTwinBuilder" DIGITAL_TWIN_BUILDER_FLOW = "DigitalTwinBuilderFlow" ENVIRONMENT = "Environment" @@ -513,6 +514,7 @@ class MirroredDatabaseFolders(Enum): ItemType.DATA_BUILD_TOOL_JOB: "dataBuildToolJobs", ItemType.DATA_PIPELINE: "dataPipelines", ItemType.DATAMART: "datamarts", + ItemType.DEPLOYMENT_PLAN: "deploymentPlans", ItemType.DIGITAL_TWIN_BUILDER: "digitalTwinBuilders", ItemType.DIGITAL_TWIN_BUILDER_FLOW: "digitalTwinBuilderFlows", ItemType.ENVIRONMENT: "environments", @@ -612,6 +614,10 @@ class MirroredDatabaseFolders(Enum): # Item Payload definition definition_format_mapping = { + ItemType.DEPLOYMENT_PLAN: { + "default": "", + "DeploymentPlanFormat": "DeploymentPlanFormat", + }, ItemType.SPARK_JOB_DEFINITION: { "default": "SparkJobDefinitionV1", "SparkJobDefinitionV1": "SparkJobDefinitionV1", diff --git a/tests/test_commands/conftest.py b/tests/test_commands/conftest.py index 4585d442c..3df972c16 100644 --- a/tests/test_commands/conftest.py +++ b/tests/test_commands/conftest.py @@ -78,6 +78,7 @@ ItemType.ORG_APP, # ItemType.PLAN, ItemType.DATA_BUILD_TOOL_JOB, + ItemType.DEPLOYMENT_PLAN, ] item_type_paramerter = pytest.mark.parametrize("item_type", ALL_ITEM_TYPES) @@ -85,6 +86,7 @@ basic_item_parametrize = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.DATA_PIPELINE, ItemType.ENVIRONMENT, ItemType.EVENTSTREAM, @@ -116,6 +118,7 @@ import_update_existing_item_success_params = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.DATA_PIPELINE, ItemType.ENVIRONMENT, ItemType.EVENTSTREAM, @@ -143,6 +146,7 @@ import_create_new_item_success_params = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.NOTEBOOK, ItemType.SPARK_JOB_DEFINITION, ItemType.DATA_PIPELINE, @@ -234,6 +238,7 @@ mv_item_to_item_success_params = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.DATA_PIPELINE, ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, @@ -276,6 +281,7 @@ mv_item_within_workspace_rename_success_params = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.DATA_PIPELINE, ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, @@ -360,6 +366,7 @@ set_item_metadata_for_all_types_success_item_params = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.DATA_PIPELINE, ItemType.ENVIRONMENT, ItemType.EVENTSTREAM, @@ -437,6 +444,7 @@ export_item_with_extension_parameters = pytest.mark.parametrize( "item_type,expected_file_extension", [ + (ItemType.DEPLOYMENT_PLAN, ".yml"), (ItemType.NOTEBOOK, ".ipynb"), (ItemType.SPARK_JOB_DEFINITION, ".json"), (ItemType.DATA_PIPELINE, ".json"), @@ -461,6 +469,7 @@ export_item_types_parameters = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.NOTEBOOK, ItemType.SPARK_JOB_DEFINITION, ItemType.DATA_PIPELINE, @@ -489,6 +498,7 @@ export_item_format_parameters = pytest.mark.parametrize( "item_type,export_format,expected_file_extensions,expected_folders", [ + (ItemType.DEPLOYMENT_PLAN, "DeploymentPlanFormat", [".yml"], []), (ItemType.NOTEBOOK, ".py", [".py"], []), (ItemType.NOTEBOOK, ".ipynb", [".ipynb"], []), (ItemType.SPARK_JOB_DEFINITION, "SparkJobDefinitionV1", [".json"], []), @@ -501,6 +511,7 @@ export_item_default_format_parameters = pytest.mark.parametrize( "item_type,expected_file_count", [ + (ItemType.DEPLOYMENT_PLAN, 2), (ItemType.NOTEBOOK, 2), # Default format for notebook is ipynb (ItemType.SPARK_JOB_DEFINITION, 2), (ItemType.DATA_PIPELINE, 2), @@ -528,6 +539,7 @@ export_item_invalid_format_parameters = pytest.mark.parametrize( "item_type,invalid_format", [ + (ItemType.DEPLOYMENT_PLAN, ".txt"), (ItemType.NOTEBOOK, ".txt"), (ItemType.SPARK_JOB_DEFINITION, ".txt"), (ItemType.SEMANTIC_MODEL, ".txt"), @@ -561,6 +573,7 @@ cp_item_types_success_params = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.DATA_PIPELINE, ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, @@ -586,6 +599,7 @@ cp_folder_item_types_success_params = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.DATA_PIPELINE, ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, @@ -632,6 +646,7 @@ ls_folder_content_success_params = pytest.mark.parametrize( "item_type", [ + ItemType.DEPLOYMENT_PLAN, ItemType.DATA_PIPELINE, ItemType.ENVIRONMENT, ItemType.EVENTHOUSE, diff --git a/tests/test_commands/test_export.py b/tests/test_commands/test_export.py index 4636c8026..7301076a1 100644 --- a/tests/test_commands/test_export.py +++ b/tests/test_commands/test_export.py @@ -387,6 +387,7 @@ def test_export_item_invalid_format_failure( ) error_messages = { + ItemType.DEPLOYMENT_PLAN: "Invalid format. Only the following formats are supported: DeploymentPlanFormat", ItemType.NOTEBOOK: "Invalid format. Only the following formats are supported: .py, .ipynb", ItemType.SPARK_JOB_DEFINITION: "Invalid format. Only the following formats are supported: SparkJobDefinitionV1, SparkJobDefinitionV2", ItemType.SEMANTIC_MODEL: "Invalid format. Only the following formats are supported: TMDL, TMSL", diff --git a/tests/test_utils/test_fab_item_util.py b/tests/test_utils/test_fab_item_util.py index 11230dd19..1344da8ae 100644 --- a/tests/test_utils/test_fab_item_util.py +++ b/tests/test_utils/test_fab_item_util.py @@ -1,8 +1,12 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. +import base64 import json from argparse import Namespace +from copy import deepcopy +from pathlib import Path +from unittest.mock import patch import pytest @@ -10,8 +14,11 @@ from fabric_cli.client import fab_api_item as item_api from fabric_cli.commands.fs.export import fab_fs_export_item as _export_item from fabric_cli.core import fab_constant, fab_state_config -from fabric_cli.core.fab_types import OneLakeItemType +from fabric_cli.core.fab_commands import Command +from fabric_cli.core.fab_exceptions import FabricCLIError +from fabric_cli.core.fab_types import ItemType, OneLakeItemType from fabric_cli.core.hiearchy.fab_hiearchy import Item, OneLakeItem, Tenant, Workspace +from fabric_cli.utils.fab_cmd_import_utils import get_payload_for_item_type def test_extract_paths(): @@ -122,3 +129,80 @@ def mock_get_item(*args, **kwargs): item = item_utils.get_item_with_definition(export_item, _args) assert item == {"item_exported": "item"} + + +@pytest.mark.parametrize("export_format", [None, "DeploymentPlanFormat"]) +def test_deployment_plan_export_import_success( + tmp_path: Path, export_format: str | None +) -> None: + tenant = Tenant(name="tenant_name", id="tenant_id") + workspace = Workspace( + name="workspace_name", id="workspace_id", parent=tenant, type="Workspace" + ) + item = Item( + name="deployment", + id="item_id", + parent=workspace, + item_type="DeploymentPlan", + ) + content = "version: '1.0'\ngroups: []\n" + definition = { + "parts": [ + { + "path": "plan.yml", + "payload": base64.b64encode(content.encode()).decode(), + "payloadType": "InlineBase64", + } + ] + } + args = Namespace(force=True, format=export_format, output=str(tmp_path)) + + for command in [Command.FS_EXPORT, Command.FS_IMPORT, Command.FS_CP, Command.FS_MV]: + assert item.check_command_support(command) + + with ( + patch.object( + item_api, + "get_item_withdefinition", + return_value={"definition": deepcopy(definition)}, + ) as get_definition, + patch.object( + _export_item.fab_storage, + "get_export_path", + return_value={"type": "local", "path": str(tmp_path)}, + ), + ): + _export_item.export_single_item(item, args) + + definition_args = get_definition.call_args.args[0] + with patch.object(item_api.fabric_api, "do_request") as request: + item_api.get_item_definition(definition_args) + expected_uri = "workspaces/workspace_id/items/item_id/getDefinition" + if export_format: + expected_uri += "?format=DeploymentPlanFormat" + assert request.call_args.args[0].uri == expected_uri + + export_path = tmp_path / item.name + assert (export_path / "plan.yml").read_text() == content + payload = get_payload_for_item_type(str(export_path), item, export_format) + assert payload["type"] == "DeploymentPlan" + parts = payload["definition"]["parts"] + assert len(parts) == 1 + assert parts[0]["path"] == "plan.yml" + assert parts[0]["payloadType"] == "InlineBase64" + assert ( + base64.b64decode(parts[0]["payload"]).decode().splitlines() + == content.splitlines() + ) + if export_format: + assert payload["definition"]["format"] == "DeploymentPlanFormat" + else: + assert "format" not in payload["definition"] + + +def test_deployment_plan_invalid_definition_format_failure() -> None: + with pytest.raises(FabricCLIError) as error: + item_utils.resolve_definition_format(ItemType.DEPLOYMENT_PLAN, ".txt") + + assert error.value.status_code == fab_constant.ERROR_INVALID_INPUT + assert "DeploymentPlanFormat" in str(error.value) From 0242d96a4d7e8399b22b852956503682969795d1 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Mon, 23 Nov 2026 15:09:38 +0000 Subject: [PATCH 5/7] test recordig for deploymntPlan --- ...tem_all_types_success[DeploymentPlan].yaml | 443 ++ ...nt_item_types_success[DeploymentPlan].yaml | 3586 +++++++++++++++++ ..._item_to_item_success[DeploymentPlan].yaml | 1732 ++++++++ ..._doesnt_exist_success[DeploymentPlan].yaml | 491 +++ ...s_item_exists_success[DeploymentPlan].yaml | 443 ++ ...ault_format_success[DeploymentPlan-2].yaml | 543 +++ ...d_file_extensions0-expected_folders0].yaml | 544 +++ ...ory_path_success[DeploymentPlan-.yml].yaml | 645 +++ ...d_format_failure[DeploymentPlan-.txt].yaml | 443 ++ ...d_output_path_failure[DeploymentPlan].yaml | 543 +++ ...ort_item_success[DeploymentPlan-.yml].yaml | 543 +++ ...tem_query_all_success[DeploymentPlan].yaml | 589 +++ ...eate_new_item_success[DeploymentPlan].yaml | 747 ++++ ...existing_item_success[DeploymentPlan].yaml | 692 ++++ ...older_content_success[DeploymentPlan].yaml | 1785 ++++++++ ..._query_filter_success[DeploymentPlan].yaml | 1664 ++++++++ ...lders_support_success[DeploymentPlan].yaml | 1758 ++++++++ ...ace_items_success[dir-DeploymentPlan].yaml | 740 ++++ ...pace_items_success[ls-DeploymentPlan].yaml | 740 ++++ ...lready_exists_failure[DeploymentPlan].yaml | 443 ++ ...st_mkdir_item_success[DeploymentPlan].yaml | 589 +++ ..._item_to_item_success[DeploymentPlan].yaml | 1776 ++++++++ ...kspace_rename_success[DeploymentPlan].yaml | 1305 ++++++ .../test_rm_item_success[DeploymentPlan].yaml | 487 +++ ...h_hard_delete_success[DeploymentPlan].yaml | 487 +++ ...without_force_success[DeploymentPlan].yaml | 487 +++ ...cel_operation_success[DeploymentPlan].yaml | 296 ++ ...without_force_success[DeploymentPlan].yaml | 487 +++ ...s_success[description-DeploymentPlan].yaml | 740 ++++ ...s_success[displayName-DeploymentPlan].yaml | 1088 +++++ 30 files changed, 26856 insertions(+) create mode 100644 tests/test_commands/recordings/test_commands/test_cd/test_cd_item_all_types_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_cp/test_cp_folder_with_different_item_types_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_cp/test_cp_item_to_item_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_export/test_export_item_default_format_success[DeploymentPlan-2].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_export/test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat-expected_file_extensions0-expected_folders0].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_export/test_export_item_home_directory_path_success[DeploymentPlan-.yml].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_format_failure[DeploymentPlan-.txt].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_output_path_failure[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_export/test_export_item_success[DeploymentPlan-.yml].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_get/test_get_item_query_all_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_import/test_import_create_new_item_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_import/test_import_update_existing_item_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_ls/test_ls_folder_content_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_ls/test_ls_query_filter_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_no_list_folders_support_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_success[dir-DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_success[ls-DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_item_name_already_exists_failure[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_item_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_mv/test_mv_item_to_item_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_mv/test_mv_item_within_workspace_rename_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_rm/test_rm_item_with_hard_delete_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_rm/test_rm_item_with_hard_delete_without_force_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_set/test_set_item_metadata_for_all_types_success[description-DeploymentPlan].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_set/test_set_item_metadata_for_all_types_success[displayName-DeploymentPlan].yaml diff --git a/tests/test_commands/recordings/test_commands/test_cd/test_cd_item_all_types_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_cd/test_cd_item_all_types_success[DeploymentPlan].yaml new file mode 100644 index 000000000..3d1a3f02a --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_cd/test_cd_item_all_types_success[DeploymentPlan].yaml @@ -0,0 +1,443 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "fb88565d-b840-4eb7-9f8c-87e34c2c8cdc", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:17 GMT + Pragma: + - no-cache + RequestId: + - e736a4d1-32b6-5c54-b77f-5cad52288710 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fb88565d-b840-4eb7-9f8c-87e34c2c8cdc/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:18 GMT + Pragma: + - no-cache + RequestId: + - 0107c27e-0785-5938-9cc6-ae33e0c59e93 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fb88565d-b840-4eb7-9f8c-87e34c2c8cdc/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:19 GMT + Pragma: + - no-cache + RequestId: + - c75843c9-2cad-556f-ad9b-e81b8dfbb4b0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/fb88565d-b840-4eb7-9f8c-87e34c2c8cdc/deploymentPlans + response: + body: + string: '{"id": "e784dd67-975c-54c5-b72e-64ae771dee09", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "fb88565d-b840-4eb7-9f8c-87e34c2c8cdc", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:22 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 37f42085-f6b8-54dd-bb77-028d6620cea9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "fb88565d-b840-4eb7-9f8c-87e34c2c8cdc", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:22 GMT + Pragma: + - no-cache + RequestId: + - cbe56a87-ae49-5441-8f9c-b2857d11a1ed + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fb88565d-b840-4eb7-9f8c-87e34c2c8cdc/items + response: + body: + string: '{"value": [{"id": "e784dd67-975c-54c5-b72e-64ae771dee09", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "fb88565d-b840-4eb7-9f8c-87e34c2c8cdc", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:23 GMT + Pragma: + - no-cache + RequestId: + - e7bd549f-5277-590a-af75-0d0d035e04ef + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "fb88565d-b840-4eb7-9f8c-87e34c2c8cdc", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:23 GMT + Pragma: + - no-cache + RequestId: + - b38af38e-a907-5241-ba98-149ba19724de + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fb88565d-b840-4eb7-9f8c-87e34c2c8cdc/items + response: + body: + string: '{"value": [{"id": "e784dd67-975c-54c5-b72e-64ae771dee09", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "fb88565d-b840-4eb7-9f8c-87e34c2c8cdc", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:23 GMT + Pragma: + - no-cache + RequestId: + - 3a37b92f-7df3-5e05-8c7d-5f1f443e05f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/fb88565d-b840-4eb7-9f8c-87e34c2c8cdc/items/e784dd67-975c-54c5-b72e-64ae771dee09 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:01:24 GMT + Pragma: + - no-cache + RequestId: + - da122546-fa5b-586b-8604-9aec68e5f7cb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_cp/test_cp_folder_with_different_item_types_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_cp/test_cp_folder_with_different_item_types_success[DeploymentPlan].yaml new file mode 100644 index 000000000..6ed8e201c --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_cp/test_cp_folder_with_different_item_types_success[DeploymentPlan].yaml @@ -0,0 +1,3586 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4027' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:16 GMT + Pragma: + - no-cache + RequestId: + - a59f5448-4357-5cef-bbab-5f9c463b78cd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4027' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:16 GMT + Pragma: + - no-cache + RequestId: + - d171f82f-2fcf-58cb-9a03-5a0ae49d62e9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '594' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:19 GMT + Pragma: + - no-cache + RequestId: + - 88cc6dfb-83ba-500a-a85f-aa7fa187bcfa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '89' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '198' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:26 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9 + Pragma: + - no-cache + RequestId: + - 1fc15d71-4aaf-50ee-9b88-2ef7e3364a94 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4064' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:26 GMT + Pragma: + - no-cache + RequestId: + - 5eb602b1-0ee1-5b3a-afa7-6cc43ddf64ee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4064' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:27 GMT + Pragma: + - no-cache + RequestId: + - 383723e8-86a0-5ffc-a994-127172202e2c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '590' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:30 GMT + Pragma: + - no-cache + RequestId: + - 96cc7c80-7836-5b18-ba3e-afe448e5b5cc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '89' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '197' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:38 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592 + Pragma: + - no-cache + RequestId: + - 96376242-77da-5083-863d-b7c2f8a55ba6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:38 GMT + Pragma: + - no-cache + RequestId: + - 773366fa-d316-5bb6-8c8d-aca3b545e612 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:39 GMT + Pragma: + - no-cache + RequestId: + - c9e9ffcd-bf50-5a2c-8587-f223dbaefc37 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:39 GMT + Pragma: + - no-cache + RequestId: + - 881ef0cb-eace-5470-9473-11db8c6ce423 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000003"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders + response: + body: + string: '{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": "fabcli000003", + "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:39 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders/dadab1e3-db21-5611-93aa-aeab78742433 + Pragma: + - no-cache + RequestId: + - a8ccd36b-43c8-5de7-90ec-8a300f716cf6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:40 GMT + Pragma: + - no-cache + RequestId: + - 34f70e86-7ff8-5db5-a957-5427f8264ee3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:40 GMT + Pragma: + - no-cache + RequestId: + - 9cc72d1d-9748-5df0-a7bb-0ced72678eab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:40 GMT + Pragma: + - no-cache + RequestId: + - 60ee6e65-3c8e-5849-a86e-b9bd74cc5934 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:42 GMT + Pragma: + - no-cache + RequestId: + - dbc4f49a-4c68-5501-b70b-3b6f2f5b0de7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000004", "type": "DeploymentPlan", "folderId": "dadab1e3-db21-5611-93aa-aeab78742433"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '113' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/deploymentPlans + response: + body: + string: '{"id": "989acb34-44b2-5228-8315-06dd2932c407", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9", + "logicalId": null, "folderId": "dadab1e3-db21-5611-93aa-aeab78742433"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '204' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:44 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 02b5fd3b-7dc3-57fc-b88e-b14b08ae200f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:45 GMT + Pragma: + - no-cache + RequestId: + - fa2e405d-08bc-567f-ab6b-c9b859743d19 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:45 GMT + Pragma: + - no-cache + RequestId: + - c5980c20-de9b-576d-ad5f-bba82c3e4d88 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:45 GMT + Pragma: + - no-cache + RequestId: + - 9815256e-9949-5c7b-8a10-7a82d087dfc3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:46 GMT + Pragma: + - no-cache + RequestId: + - 88feacaf-0e35-5a62-a97d-f12c81b26d81 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:46 GMT + Pragma: + - no-cache + RequestId: + - d67f33d9-4d8b-5bf4-8d63-9d80e46088a5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:46 GMT + Pragma: + - no-cache + RequestId: + - adb1d3ed-bac7-55d0-a5d7-d5e15e9d8178 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000003"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders + response: + body: + string: '{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": "fabcli000003", + "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '134' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:46 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders/d8e782c3-fb2d-5273-8d84-473aca2b72df + Pragma: + - no-cache + RequestId: + - 875ce727-46f4-503c-879c-9b7d542f5b87 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items + response: + body: + string: '{"value": [{"id": "989acb34-44b2-5228-8315-06dd2932c407", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9", + "logicalId": null, "folderId": "dadab1e3-db21-5611-93aa-aeab78742433"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '215' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:47 GMT + Pragma: + - no-cache + RequestId: + - c5c57e85-1305-5c1d-a177-f06c40363651 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:47 GMT + Pragma: + - no-cache + RequestId: + - f8734d75-117d-5bae-ae22-501d0270aa48 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:47 GMT + Pragma: + - no-cache + RequestId: + - e3af6834-6991-5825-afd0-52389069d8fb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items + response: + body: + string: '{"value": [{"id": "989acb34-44b2-5228-8315-06dd2932c407", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9", + "logicalId": null, "folderId": "dadab1e3-db21-5611-93aa-aeab78742433"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '215' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:48 GMT + Pragma: + - no-cache + RequestId: + - 1eca92a4-72f7-5317-af60-1c9c6a1d876f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:48 GMT + Pragma: + - no-cache + RequestId: + - 82542afc-8cca-5637-885d-07582a317ec6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:48 GMT + Pragma: + - no-cache + RequestId: + - 8af1bfc1-7f6a-58e1-9ea7-9aabd121950a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:49 GMT + Pragma: + - no-cache + RequestId: + - 4d6ba4b3-6fc3-5fda-bdc7-ea14b6811815 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:49 GMT + Pragma: + - no-cache + RequestId: + - c01cc597-1a0a-513e-a35e-6a6573c79935 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:50 GMT + Pragma: + - no-cache + RequestId: + - 23c34cf2-6f61-5f6d-9a08-c084de783a03 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:49 GMT + Pragma: + - no-cache + RequestId: + - e5492f1e-583d-5071-95f9-4a1904b13e4c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:50 GMT + Pragma: + - no-cache + RequestId: + - 33b9266a-1dcd-54dc-b9b4-efacd466dc47 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items/989acb34-44b2-5228-8315-06dd2932c407 + response: + body: + string: '{"id": "989acb34-44b2-5228-8315-06dd2932c407", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9", + "logicalId": null, "folderId": "dadab1e3-db21-5611-93aa-aeab78742433"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '204' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:51 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f322aac9-ce1d-5d50-b318-aa3455fad4d0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items/989acb34-44b2-5228-8315-06dd2932c407/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDQiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:51 GMT + Pragma: + - no-cache + RequestId: + - 41f74a1e-5827-50d4-adf4-756b4aa32147 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "DeploymentPlan", "displayName": "fabcli000004", "definition": + {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDQiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}, "folderId": "d8e782c3-fb2d-5273-8d84-473aca2b72df"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '861' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items + response: + body: + string: '{"id": "2db616b4-b42d-5e39-83cf-c55b589ab11c", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", + "logicalId": null, "folderId": "d8e782c3-fb2d-5273-8d84-473aca2b72df"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '205' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:53 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 4cda153a-1f8d-5550-a92d-39d8fa271bcf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items + response: + body: + string: '{"value": [{"id": "989acb34-44b2-5228-8315-06dd2932c407", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9", + "logicalId": null, "folderId": "dadab1e3-db21-5611-93aa-aeab78742433"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '215' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:54 GMT + Pragma: + - no-cache + RequestId: + - 2e75200f-3257-542d-bd44-1d49f30f76a1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:54 GMT + Pragma: + - no-cache + RequestId: + - 8ab8df2b-fa44-5944-bbaf-e3349fd38711 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:54 GMT + Pragma: + - no-cache + RequestId: + - 38253f42-98b6-5e78-8065-b2295ea66469 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:55 GMT + Pragma: + - no-cache + RequestId: + - ab9cece8-5ad2-5f52-b5be-9b7b91e50e1d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items + response: + body: + string: '{"value": [{"id": "2db616b4-b42d-5e39-83cf-c55b589ab11c", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", + "logicalId": null, "folderId": "d8e782c3-fb2d-5273-8d84-473aca2b72df"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '215' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:56 GMT + Pragma: + - no-cache + RequestId: + - 2b2c39ff-e51d-511b-a143-d1aeea732bc3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:56 GMT + Pragma: + - no-cache + RequestId: + - 846458b7-f162-5088-9f78-e15c0d045330 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:56 GMT + Pragma: + - no-cache + RequestId: + - 6a450715-6987-5494-b199-e21e8f8ec0bd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:56 GMT + Pragma: + - no-cache + RequestId: + - b890bb22-4f55-5584-a700-d83c282a03e7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:56 GMT + Pragma: + - no-cache + RequestId: + - dc3e4120-cdce-5ff7-91ff-51729caea4f0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items + response: + body: + string: '{"value": [{"id": "2db616b4-b42d-5e39-83cf-c55b589ab11c", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", + "logicalId": null, "folderId": "d8e782c3-fb2d-5273-8d84-473aca2b72df"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '215' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:57 GMT + Pragma: + - no-cache + RequestId: + - 43137d44-cf7a-55ad-a3b6-ac371f72c307 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:57 GMT + Pragma: + - no-cache + RequestId: + - 839b4434-d9d5-5f18-b61b-7619da8df748 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:58 GMT + Pragma: + - no-cache + RequestId: + - 014f1ae2-eb8f-5bb5-bf9e-e988a9ef73a4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:57 GMT + Pragma: + - no-cache + RequestId: + - 74b57492-cd94-55f2-9453-432d98227de2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:58 GMT + Pragma: + - no-cache + RequestId: + - 72484381-24e0-5544-aabe-c555ff7b7bb6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items + response: + body: + string: '{"value": [{"id": "2db616b4-b42d-5e39-83cf-c55b589ab11c", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", + "logicalId": null, "folderId": "d8e782c3-fb2d-5273-8d84-473aca2b72df"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '215' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:59 GMT + Pragma: + - no-cache + RequestId: + - 84ca5eb2-dd92-5920-8bc8-acd432d066cd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:58 GMT + Pragma: + - no-cache + RequestId: + - e756c84d-dc0d-59ad-a08d-426a2c596c9e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items/2db616b4-b42d-5e39-83cf-c55b589ab11c + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:06:59 GMT + Pragma: + - no-cache + RequestId: + - 7ab7694a-4044-508a-b0e2-33d90501382e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:00 GMT + Pragma: + - no-cache + RequestId: + - cd951c85-6fb6-5237-9696-0189d0639c9b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders?recursive=True + response: + body: + string: '{"value": [{"id": "d8e782c3-fb2d-5273-8d84-473aca2b72df", "displayName": + "fabcli000003", "workspaceId": "fa1aa495-dee7-5ef4-af23-8d6527ef5592"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:00 GMT + Pragma: + - no-cache + RequestId: + - 6de8aae0-0b8f-5777-9e18-e7a36ae3d8a0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/folders/d8e782c3-fb2d-5273-8d84-473aca2b72df + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:01 GMT + Pragma: + - no-cache + RequestId: + - 3f6e6ca9-9ab0-50cf-afed-ce1c09514ba7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:01 GMT + Pragma: + - no-cache + RequestId: + - c9178266-90fc-59f3-8c2a-0a65d142b8bc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:01 GMT + Pragma: + - no-cache + RequestId: + - 53f94203-9760-543d-9a28-229b3a8f74b6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items + response: + body: + string: '{"value": [{"id": "989acb34-44b2-5228-8315-06dd2932c407", "type": "DeploymentPlan", + "displayName": "fabcli000004", "description": "", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9", + "logicalId": null, "folderId": "dadab1e3-db21-5611-93aa-aeab78742433"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '215' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:01 GMT + Pragma: + - no-cache + RequestId: + - 897ddcdd-5a6e-54ef-a283-b584bf83d2f7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:01 GMT + Pragma: + - no-cache + RequestId: + - 3fecde24-d184-5a57-8c5c-6aaca3ddb33a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items/989acb34-44b2-5228-8315-06dd2932c407 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:02 GMT + Pragma: + - no-cache + RequestId: + - 683740f3-63df-51a3-ba85-a5f88be9b07c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:02 GMT + Pragma: + - no-cache + RequestId: + - 55f2ce6d-6546-5a15-8cec-95f4f1c4a251 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders?recursive=True + response: + body: + string: '{"value": [{"id": "dadab1e3-db21-5611-93aa-aeab78742433", "displayName": + "fabcli000003", "workspaceId": "1715e4a6-093b-58d2-be0d-f5e0229794f9"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:03 GMT + Pragma: + - no-cache + RequestId: + - d1e637e6-e33b-592e-b6e5-d13678b78b2c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/folders/dadab1e3-db21-5611-93aa-aeab78742433 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:03 GMT + Pragma: + - no-cache + RequestId: + - 8abfae93-c1e4-5f3b-a34b-db0de0f5d674 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "1715e4a6-093b-58d2-be0d-f5e0229794f9", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4101' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:04 GMT + Pragma: + - no-cache + RequestId: + - a6ab6067-e4db-5aed-b99c-dedd2f18b7cb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:04 GMT + Pragma: + - no-cache + RequestId: + - 92b377b6-ef08-5ccc-b1b9-931098023739 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1715e4a6-093b-58d2-be0d-f5e0229794f9 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:05 GMT + Pragma: + - no-cache + RequestId: + - 95cf127a-ceaf-59cd-8ecb-32de7b5a795f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "fa1aa495-dee7-5ef4-af23-8d6527ef5592", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4063' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:05 GMT + Pragma: + - no-cache + RequestId: + - 6161ff0d-f36b-5d8c-80c4-ab4c28985257 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:05 GMT + Pragma: + - no-cache + RequestId: + - 589e6769-7a66-568a-9ebd-ce2ef0d75b8f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/fa1aa495-dee7-5ef4-af23-8d6527ef5592 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:05 GMT + Pragma: + - no-cache + RequestId: + - bda5cd4e-0060-51a8-a343-d34151955cf2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_cp/test_cp_item_to_item_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_cp/test_cp_item_to_item_success[DeploymentPlan].yaml new file mode 100644 index 000000000..73f4b131f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_cp/test_cp_item_to_item_success[DeploymentPlan].yaml @@ -0,0 +1,1732 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4027' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:31 GMT + Pragma: + - no-cache + RequestId: + - c501e84a-47df-59ed-8071-240965baa251 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4027' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:31 GMT + Pragma: + - no-cache + RequestId: + - 27d08c7c-d882-5e42-9386-b184c3c32d96 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '590' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:37 GMT + Pragma: + - no-cache + RequestId: + - 622523f6-1df4-5cb5-809e-2754d9c908bb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '89' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '197' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:44 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d + Pragma: + - no-cache + RequestId: + - 5dc9c155-530c-59cc-881c-65ed0766a3df + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4066' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:44 GMT + Pragma: + - no-cache + RequestId: + - ae57b111-8d3e-58d0-9f92-e312295b5ce2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4066' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:44 GMT + Pragma: + - no-cache + RequestId: + - b9ee14a2-0e90-50a6-a52e-a5de08de2d40 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '590' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:50 GMT + Pragma: + - no-cache + RequestId: + - 7a00983a-7a4a-50cc-bfcd-b0c9b0a60853 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '89' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '197' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:57 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/b5a27be1-8d33-5a95-bf3f-f2fe89b13d03 + Pragma: + - no-cache + RequestId: + - 7abefb16-d395-5020-a3fb-044dbedbeec3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:58 GMT + Pragma: + - no-cache + RequestId: + - 86e8b449-d329-5dfc-ad91-35775333542b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:58 GMT + Pragma: + - no-cache + RequestId: + - 046b4a92-977b-5999-ab8b-54fc9585bf77 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:59 GMT + Pragma: + - no-cache + RequestId: + - ce93a92b-6e5e-511a-82f1-f1478f713f99 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000003", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/deploymentPlans + response: + body: + string: '{"id": "0e7c58e9-6d3d-5b6a-9878-bf8abc0c60d6", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "df280e01-3b8f-5202-a16d-af4c6643fd0d", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:01 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - b824336d-0e6d-5f0a-9d5b-563d6b7a50f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:02 GMT + Pragma: + - no-cache + RequestId: + - 044850bc-ef04-5d8b-bc70-312a8fdbbce3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items + response: + body: + string: '{"value": [{"id": "0e7c58e9-6d3d-5b6a-9878-bf8abc0c60d6", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "df280e01-3b8f-5202-a16d-af4c6643fd0d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:03 GMT + Pragma: + - no-cache + RequestId: + - bd2a08f3-9a30-5179-a850-00f9544486e0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:02 GMT + Pragma: + - no-cache + RequestId: + - 79e300c7-6fdc-5f40-94d4-8a12679ab6fb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b5a27be1-8d33-5a95-bf3f-f2fe89b13d03/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:04 GMT + Pragma: + - no-cache + RequestId: + - 0f278b93-97bb-5f80-8b14-3f4be318394e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b5a27be1-8d33-5a95-bf3f-f2fe89b13d03/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:04 GMT + Pragma: + - no-cache + RequestId: + - 1fb51fe1-60ba-51c1-af36-313253db0e39 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b5a27be1-8d33-5a95-bf3f-f2fe89b13d03/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:05 GMT + Pragma: + - no-cache + RequestId: + - 3d62e405-c39e-5655-bcec-535d23c8b2c5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items/0e7c58e9-6d3d-5b6a-9878-bf8abc0c60d6 + response: + body: + string: '{"id": "0e7c58e9-6d3d-5b6a-9878-bf8abc0c60d6", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "df280e01-3b8f-5202-a16d-af4c6643fd0d", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:05 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 58b29f9d-94d5-5f87-888c-d6cb7e3b8d25 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items/0e7c58e9-6d3d-5b6a-9878-bf8abc0c60d6/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDMiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:06 GMT + Pragma: + - no-cache + RequestId: + - f1464062-77e4-5479-8a8f-f6fb076a0bf0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "DeploymentPlan", "displayName": "fabcli000003", "definition": + {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDMiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}, "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '827' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/b5a27be1-8d33-5a95-bf3f-f2fe89b13d03/items + response: + body: + string: '{"id": "a295cac8-7881-5bc9-b00a-2660dd1aa4f0", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:09 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 4941de8d-a14d-5d6f-a349-c806133a23ee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:09 GMT + Pragma: + - no-cache + RequestId: + - 8fb11018-ee0c-55b3-900d-c0e57abe2d1d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items + response: + body: + string: '{"value": [{"id": "0e7c58e9-6d3d-5b6a-9878-bf8abc0c60d6", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "df280e01-3b8f-5202-a16d-af4c6643fd0d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:10 GMT + Pragma: + - no-cache + RequestId: + - 2d7d2f79-78f3-574e-8e61-a2866ee1b2e8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:10 GMT + Pragma: + - no-cache + RequestId: + - 8e9f2178-2a3f-59ba-8289-bb7b45cd0593 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b5a27be1-8d33-5a95-bf3f-f2fe89b13d03/items + response: + body: + string: '{"value": [{"id": "a295cac8-7881-5bc9-b00a-2660dd1aa4f0", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:11 GMT + Pragma: + - no-cache + RequestId: + - 0b770966-286d-5e05-9ddc-fc04ec017918 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:11 GMT + Pragma: + - no-cache + RequestId: + - 87ced8ce-8f51-5791-a9a4-619d54efc34e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items + response: + body: + string: '{"value": [{"id": "0e7c58e9-6d3d-5b6a-9878-bf8abc0c60d6", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "df280e01-3b8f-5202-a16d-af4c6643fd0d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:11 GMT + Pragma: + - no-cache + RequestId: + - fb8603d1-2c5a-5845-9308-17373b8e4b40 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items/0e7c58e9-6d3d-5b6a-9878-bf8abc0c60d6 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:06:12 GMT + Pragma: + - no-cache + RequestId: + - f1145574-3bfc-5b4a-9003-4f111709d3ca + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "df280e01-3b8f-5202-a16d-af4c6643fd0d", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:13 GMT + Pragma: + - no-cache + RequestId: + - af4c3b3c-9a6a-5cd8-b487-ce86ec16303e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:12 GMT + Pragma: + - no-cache + RequestId: + - d7ce5f98-52ed-5157-bda0-325d9b5db250 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/df280e01-3b8f-5202-a16d-af4c6643fd0d + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:06:13 GMT + Pragma: + - no-cache + RequestId: + - 203c4686-e7c9-5ca0-afe8-2041daf3f064 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "6515d338-3aec-46ba-b72f-d8a88ed43bff", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4064' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:13 GMT + Pragma: + - no-cache + RequestId: + - f757b9e4-b6df-5d56-9eb3-12940bc00088 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b5a27be1-8d33-5a95-bf3f-f2fe89b13d03/items + response: + body: + string: '{"value": [{"id": "a295cac8-7881-5bc9-b00a-2660dd1aa4f0", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "b5a27be1-8d33-5a95-bf3f-f2fe89b13d03", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:06:14 GMT + Pragma: + - no-cache + RequestId: + - 9a8849fa-7d36-5167-bafb-5c102026b63b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/b5a27be1-8d33-5a95-bf3f-f2fe89b13d03 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:06:14 GMT + Pragma: + - no-cache + RequestId: + - cf8ad3d1-3fa1-5082-9ea9-1d7f00a9574b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_exists/test_exists_item_doesnt_exist_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[DeploymentPlan].yaml new file mode 100644 index 000000000..70850cac7 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[DeploymentPlan].yaml @@ -0,0 +1,491 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4025' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:50 GMT + Pragma: + - no-cache + RequestId: + - 9f6da9ae-d75c-5ca2-9d90-c3c38958a0d7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:50 GMT + Pragma: + - no-cache + RequestId: + - 4bfc5099-8946-5831-b7ed-873d69a115bf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:51 GMT + Pragma: + - no-cache + RequestId: + - 80d8c1c4-559e-540a-87b4-0ed3da8e6d7c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/deploymentPlans + response: + body: + string: '{"id": "cbb7f9f6-fed6-5af0-ad86-65eb7d9c88f1", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:52 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 613efbb5-5f00-5be8-9de1-a1d461187183 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4025' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:52 GMT + Pragma: + - no-cache + RequestId: + - effa04db-ae25-53cb-b84c-074052c7156e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": [{"id": "cbb7f9f6-fed6-5af0-ad86-65eb7d9c88f1", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:52 GMT + Pragma: + - no-cache + RequestId: + - c64d8b0d-b2a3-5ef2-977f-4d133a81c6f7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": [{"id": "cbb7f9f6-fed6-5af0-ad86-65eb7d9c88f1", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:53 GMT + Pragma: + - no-cache + RequestId: + - 96ac19c0-3773-5b37-8bf1-b61aa61dd3c8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4025' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:53 GMT + Pragma: + - no-cache + RequestId: + - 610c1cd9-8567-503a-9cc6-f59056239417 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": [{"id": "cbb7f9f6-fed6-5af0-ad86-65eb7d9c88f1", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:54 GMT + Pragma: + - no-cache + RequestId: + - 2d0036cb-6c3b-5339-9a15-bac3e9eb9ce6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items/cbb7f9f6-fed6-5af0-ad86-65eb7d9c88f1 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:54 GMT + Pragma: + - no-cache + RequestId: + - 26d4ecb5-3657-5964-9303-7eb85ffbe794 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_exists/test_exists_item_exists_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[DeploymentPlan].yaml new file mode 100644 index 000000000..53e67b84d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[DeploymentPlan].yaml @@ -0,0 +1,443 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4025' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:44 GMT + Pragma: + - no-cache + RequestId: + - 1e16fc76-dd79-573b-af37-43934d84485b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:45 GMT + Pragma: + - no-cache + RequestId: + - a63c3f26-210e-59d6-af3f-0411e3921cd6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:45 GMT + Pragma: + - no-cache + RequestId: + - 53162cf1-0bd3-5905-9c95-ac476bd6121c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/deploymentPlans + response: + body: + string: '{"id": "26e66d1e-4b6a-5605-9780-1fcf4d515b66", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:48 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 5e8566de-3a54-5d35-9667-1edc95480f12 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4025' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:47 GMT + Pragma: + - no-cache + RequestId: + - bd9e6587-5ee4-5aae-a075-42216ac6ed61 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": [{"id": "26e66d1e-4b6a-5605-9780-1fcf4d515b66", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:49 GMT + Pragma: + - no-cache + RequestId: + - c7a74866-9901-5121-b63d-b95a059a3cfc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4025' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:49 GMT + Pragma: + - no-cache + RequestId: + - 8cc227d5-5a90-5397-825b-1883f90ae55e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items + response: + body: + string: '{"value": [{"id": "26e66d1e-4b6a-5605-9780-1fcf4d515b66", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1dde08fd-b958-444d-ad3f-ef2c31b2de5f", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:49 GMT + Pragma: + - no-cache + RequestId: + - f8c05bc1-9323-5ff3-ac2d-e2cc989d338e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1dde08fd-b958-444d-ad3f-ef2c31b2de5f/items/26e66d1e-4b6a-5605-9780-1fcf4d515b66 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:50 GMT + Pragma: + - no-cache + RequestId: + - 9822f6e7-cf8c-5d43-8ec8-fceb332b5888 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_export/test_export_item_default_format_success[DeploymentPlan-2].yaml b/tests/test_commands/recordings/test_commands/test_export/test_export_item_default_format_success[DeploymentPlan-2].yaml new file mode 100644 index 000000000..dc4df33c7 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_export/test_export_item_default_format_success[DeploymentPlan-2].yaml @@ -0,0 +1,543 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:41 GMT + Pragma: + - no-cache + RequestId: + - 342b56f2-4a8f-562d-a2d4-f96574ab7c1d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:41 GMT + Pragma: + - no-cache + RequestId: + - 1fcbbccc-a690-5b0d-948c-a8f405bf70e8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:42 GMT + Pragma: + - no-cache + RequestId: + - 095fcdcc-c545-56cd-ab3b-eebf45925096 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/deploymentPlans + response: + body: + string: '{"id": "7ebf7b2b-7b70-58e0-a4c0-ab905c2b833e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:43 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 45f407d0-79b6-53f9-b7b4-720c19b4125b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:43 GMT + Pragma: + - no-cache + RequestId: + - 9a5a5ae8-03a5-5853-89ed-e53dbb106f5b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "7ebf7b2b-7b70-58e0-a4c0-ab905c2b833e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:44 GMT + Pragma: + - no-cache + RequestId: + - f39a805c-f0d9-5676-a01f-73789f09b75b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/7ebf7b2b-7b70-58e0-a4c0-ab905c2b833e + response: + body: + string: '{"id": "7ebf7b2b-7b70-58e0-a4c0-ab905c2b833e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:44 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - fc77ec21-69b7-5f1d-9c8f-dac634fb1da3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/7ebf7b2b-7b70-58e0-a4c0-ab905c2b833e/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:45 GMT + Pragma: + - no-cache + RequestId: + - 01b08fb4-a1fe-5f38-81f7-5d72c34d0ca4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:45 GMT + Pragma: + - no-cache + RequestId: + - a7997500-b79f-5c9b-a4cd-9ad73c2e1b98 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "7ebf7b2b-7b70-58e0-a4c0-ab905c2b833e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:46 GMT + Pragma: + - no-cache + RequestId: + - b97c0e32-94c6-5308-b282-39c8b70c2764 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/7ebf7b2b-7b70-58e0-a4c0-ab905c2b833e + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:04:46 GMT + Pragma: + - no-cache + RequestId: + - ad037186-fbcc-5d7d-8206-588cf09522f0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_export/test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat-expected_file_extensions0-expected_folders0].yaml b/tests/test_commands/recordings/test_commands/test_export/test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat-expected_file_extensions0-expected_folders0].yaml new file mode 100644 index 000000000..44aee7c1b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_export/test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat-expected_file_extensions0-expected_folders0].yaml @@ -0,0 +1,544 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:35 GMT + Pragma: + - no-cache + RequestId: + - 58fdb357-e412-53d8-9577-823a01895a97 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:35 GMT + Pragma: + - no-cache + RequestId: + - a84467e5-3672-5751-836d-1a3fc63c7174 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:35 GMT + Pragma: + - no-cache + RequestId: + - 82801263-d5a2-5ded-8001-904229de0196 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/deploymentPlans + response: + body: + string: '{"id": "75b2954c-54c0-5e51-9658-046f9c3aec6a", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:38 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 6ccd25dc-7aac-54bf-ae43-df3fb5c2f5e5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:39 GMT + Pragma: + - no-cache + RequestId: + - 47044e5d-42a5-5fe8-9e75-10fd6edbd225 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "75b2954c-54c0-5e51-9658-046f9c3aec6a", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:39 GMT + Pragma: + - no-cache + RequestId: + - 68c10b7b-4c3b-5b11-a108-1d0f025724ee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/75b2954c-54c0-5e51-9658-046f9c3aec6a + response: + body: + string: '{"id": "75b2954c-54c0-5e51-9658-046f9c3aec6a", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:40 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 067aad11-f97c-53d8-b0a2-646fd4f6db33 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/75b2954c-54c0-5e51-9658-046f9c3aec6a/getDefinition?format=DeploymentPlanFormat + response: + body: + string: '{"definition": {"format": "DeploymentPlanFormat", "parts": [{"path": + "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '518' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:40 GMT + Pragma: + - no-cache + RequestId: + - 1aa92dc6-0511-5555-980d-322ac182e331 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:40 GMT + Pragma: + - no-cache + RequestId: + - 18a9f481-d417-55e6-bce4-17d07aa4670c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "75b2954c-54c0-5e51-9658-046f9c3aec6a", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:41 GMT + Pragma: + - no-cache + RequestId: + - ac19a657-b469-5de7-92de-f56865618fff + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/75b2954c-54c0-5e51-9658-046f9c3aec6a + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:04:41 GMT + Pragma: + - no-cache + RequestId: + - 23c1b251-499f-5c23-8a8a-aad0f7ef2288 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_export/test_export_item_home_directory_path_success[DeploymentPlan-.yml].yaml b/tests/test_commands/recordings/test_commands/test_export/test_export_item_home_directory_path_success[DeploymentPlan-.yml].yaml new file mode 100644 index 000000000..2167dcacb --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_export/test_export_item_home_directory_path_success[DeploymentPlan-.yml].yaml @@ -0,0 +1,645 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:24 GMT + Pragma: + - no-cache + RequestId: + - 9dbf49ce-b7e4-5ddd-b27f-a7bada16a0b4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:23 GMT + Pragma: + - no-cache + RequestId: + - 98225b88-4ec6-5eb3-bd70-8947c884b6ea + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:24 GMT + Pragma: + - no-cache + RequestId: + - 5af4eb64-3e58-57e1-a7cb-887346808c6c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/deploymentPlans + response: + body: + string: '{"id": "453806bc-514b-55c3-939c-91a3136a1f26", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:25 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 1d9e5e8c-dc27-5866-91e1-0a3da9020ef4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:26 GMT + Pragma: + - no-cache + RequestId: + - 27154f55-7174-5f66-ac0b-f712f758d5ba + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "453806bc-514b-55c3-939c-91a3136a1f26", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:27 GMT + Pragma: + - no-cache + RequestId: + - 7893913f-f3dd-588c-bd29-893c89691cbf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/453806bc-514b-55c3-939c-91a3136a1f26 + response: + body: + string: '{"id": "453806bc-514b-55c3-939c-91a3136a1f26", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:27 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f707ce2a-05a8-58ea-9424-e4c9b17d2df2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/453806bc-514b-55c3-939c-91a3136a1f26/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '498' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:28 GMT + Pragma: + - no-cache + RequestId: + - 83db7bfa-2940-5111-b82f-9ee6a3640d17 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:28 GMT + Pragma: + - no-cache + RequestId: + - 2f2bef16-fccf-5b45-8d84-15780691f6ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:29 GMT + Pragma: + - no-cache + RequestId: + - be0b8017-cb98-553f-ba80-40fbcc8d62d2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:29 GMT + Pragma: + - no-cache + RequestId: + - 3540ff13-8cb9-5bd1-abb5-f94b067a7897 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "453806bc-514b-55c3-939c-91a3136a1f26", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:29 GMT + Pragma: + - no-cache + RequestId: + - 80882b0b-9ca9-55a2-9d9d-d12dbb9a02e5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/453806bc-514b-55c3-939c-91a3136a1f26 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:04:30 GMT + Pragma: + - no-cache + RequestId: + - 70b520db-75f6-5409-960a-412fc3e30e44 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_export/test_export_item_invalid_format_failure[DeploymentPlan-.txt].yaml b/tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_format_failure[DeploymentPlan-.txt].yaml new file mode 100644 index 000000000..5a4043c16 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_format_failure[DeploymentPlan-.txt].yaml @@ -0,0 +1,443 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:46 GMT + Pragma: + - no-cache + RequestId: + - b61e7ec7-bd7d-5b38-9c43-22f3e12b5aac + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:47 GMT + Pragma: + - no-cache + RequestId: + - 4015a575-6a42-559e-b5a3-e568b224cf3e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:48 GMT + Pragma: + - no-cache + RequestId: + - 3ed8df97-b8ca-584a-8cfb-f2c384fad665 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/deploymentPlans + response: + body: + string: '{"id": "d6a9bc28-52bb-5d50-a4d0-d7d53799ba69", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:49 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 8794f8b5-ce17-5f66-b8ee-4d0ca04a3a57 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:49 GMT + Pragma: + - no-cache + RequestId: + - 85d3d377-ad89-5f27-9a9d-bcd2ff85ab99 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "d6a9bc28-52bb-5d50-a4d0-d7d53799ba69", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:49 GMT + Pragma: + - no-cache + RequestId: + - 492f2145-973c-5a4b-bddd-8ae221a7172e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:50 GMT + Pragma: + - no-cache + RequestId: + - 84a0da16-5951-5b69-9461-2d9aa4cfcff1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "d6a9bc28-52bb-5d50-a4d0-d7d53799ba69", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:50 GMT + Pragma: + - no-cache + RequestId: + - 54e60af3-c18d-5979-99bf-ea823f8153d2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/d6a9bc28-52bb-5d50-a4d0-d7d53799ba69 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:04:50 GMT + Pragma: + - no-cache + RequestId: + - d8e3633d-f2c8-58ca-8010-156dde441e42 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_export/test_export_item_invalid_output_path_failure[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_output_path_failure[DeploymentPlan].yaml new file mode 100644 index 000000000..0ff8cee07 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_output_path_failure[DeploymentPlan].yaml @@ -0,0 +1,543 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:29 GMT + Pragma: + - no-cache + RequestId: + - ae21c884-92eb-5e02-a6fe-2992dad9cd6c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:30 GMT + Pragma: + - no-cache + RequestId: + - 79f4ff90-4bfd-59e5-8be0-3e834fa1acb5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:31 GMT + Pragma: + - no-cache + RequestId: + - ea78dc30-593f-5b5f-a8bc-2600e6e5a5a3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/deploymentPlans + response: + body: + string: '{"id": "2b32cde3-84f0-5b29-bfcc-a85ad4ebbd38", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:32 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 2a59043e-aa13-50f5-97b4-51783105abde + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:32 GMT + Pragma: + - no-cache + RequestId: + - 9d774234-7680-5609-b28d-c5df17e8a9ce + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "2b32cde3-84f0-5b29-bfcc-a85ad4ebbd38", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:33 GMT + Pragma: + - no-cache + RequestId: + - 5d68bd3e-5fa7-5aad-a91c-99b24c622b5a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/2b32cde3-84f0-5b29-bfcc-a85ad4ebbd38 + response: + body: + string: '{"id": "2b32cde3-84f0-5b29-bfcc-a85ad4ebbd38", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:33 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 66feb7ce-191c-5dd4-82ed-45b6eba6cc1f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/2b32cde3-84f0-5b29-bfcc-a85ad4ebbd38/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:34 GMT + Pragma: + - no-cache + RequestId: + - cf9b158c-498d-57c1-9192-e44905df0711 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:34 GMT + Pragma: + - no-cache + RequestId: + - afc29c01-1ee5-5fb5-ad21-b115f7ff9537 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "2b32cde3-84f0-5b29-bfcc-a85ad4ebbd38", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:34 GMT + Pragma: + - no-cache + RequestId: + - 9280e381-a6c9-5068-95fb-fa83c6a23fc3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/2b32cde3-84f0-5b29-bfcc-a85ad4ebbd38 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:04:34 GMT + Pragma: + - no-cache + RequestId: + - 7644a66f-98bb-5651-81ca-18d055fe5783 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_export/test_export_item_success[DeploymentPlan-.yml].yaml b/tests/test_commands/recordings/test_commands/test_export/test_export_item_success[DeploymentPlan-.yml].yaml new file mode 100644 index 000000000..306ff365b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_export/test_export_item_success[DeploymentPlan-.yml].yaml @@ -0,0 +1,543 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:17 GMT + Pragma: + - no-cache + RequestId: + - f1aa8652-a4e6-5f6a-8c23-bde78a72d07c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:17 GMT + Pragma: + - no-cache + RequestId: + - 758869de-7a70-533f-b26d-aa0455e49eee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:18 GMT + Pragma: + - no-cache + RequestId: + - 394b53e3-8f1b-570c-b8b3-c9001ad40796 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/deploymentPlans + response: + body: + string: '{"id": "cb2dd04a-41e6-5899-afe6-d1ac3968b47b", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:19 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - be9aa96f-2311-5b18-8cdc-7f15909d6ee3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:20 GMT + Pragma: + - no-cache + RequestId: + - 0eacc8b8-f0a1-53ba-a886-614167a8c89c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "cb2dd04a-41e6-5899-afe6-d1ac3968b47b", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:20 GMT + Pragma: + - no-cache + RequestId: + - 3df3763b-527f-52d3-8b71-81dee379fe28 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/cb2dd04a-41e6-5899-afe6-d1ac3968b47b + response: + body: + string: '{"id": "cb2dd04a-41e6-5899-afe6-d1ac3968b47b", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:21 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 95562fcc-c5ac-56eb-a963-f45164acd1f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/cb2dd04a-41e6-5899-afe6-d1ac3968b47b/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:22 GMT + Pragma: + - no-cache + RequestId: + - 805b549e-8ab9-5be1-beb8-0ebf01561485 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:22 GMT + Pragma: + - no-cache + RequestId: + - 9f6fe280-ad7a-5957-b815-264fdda30d0c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items + response: + body: + string: '{"value": [{"id": "cb2dd04a-41e6-5899-afe6-d1ac3968b47b", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:23 GMT + Pragma: + - no-cache + RequestId: + - 2d1dfa6b-d1bb-51e2-a797-f96434771d55 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/e5857d40-e0ff-4bfc-a3b4-2decfa4aaf3b/items/cb2dd04a-41e6-5899-afe6-d1ac3968b47b + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:04:23 GMT + Pragma: + - no-cache + RequestId: + - f19f858f-b50c-5ad9-8c3f-9e10c6372b36 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_get/test_get_item_query_all_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_get/test_get_item_query_all_success[DeploymentPlan].yaml new file mode 100644 index 000000000..2a47b5899 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_get/test_get_item_query_all_success[DeploymentPlan].yaml @@ -0,0 +1,589 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "4a4a4070-ea0e-468c-80f6-fbb93981cce7", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:29 GMT + Pragma: + - no-cache + RequestId: + - 935c0950-60f6-5efb-9c13-eefccf0d5ab0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:30 GMT + Pragma: + - no-cache + RequestId: + - 31046f4f-8f99-5f1f-9881-14d09265e3ac + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:30 GMT + Pragma: + - no-cache + RequestId: + - 0766b62b-507a-50a7-a259-b8fcbccba2a6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/deploymentPlans + response: + body: + string: '{"id": "a0b40f70-fb2b-55ca-a4ba-51c75476bfdd", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "4a4a4070-ea0e-468c-80f6-fbb93981cce7", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:32 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 475023ed-23e3-58d3-a4a2-28a62f65b8b8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "4a4a4070-ea0e-468c-80f6-fbb93981cce7", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:33 GMT + Pragma: + - no-cache + RequestId: + - 2a5ff40f-051a-5134-bd4d-836a95a2fc39 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/items + response: + body: + string: '{"value": [{"id": "a0b40f70-fb2b-55ca-a4ba-51c75476bfdd", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "4a4a4070-ea0e-468c-80f6-fbb93981cce7", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:33 GMT + Pragma: + - no-cache + RequestId: + - 538bb037-ca5c-5a1e-8cf4-7bce1f36a15c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/deploymentPlans/a0b40f70-fb2b-55ca-a4ba-51c75476bfdd + response: + body: + string: '{"id": "a0b40f70-fb2b-55ca-a4ba-51c75476bfdd", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "4a4a4070-ea0e-468c-80f6-fbb93981cce7", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:33 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 9e4aff93-a957-51da-b7c9-2b8344341ee3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/items/a0b40f70-fb2b-55ca-a4ba-51c75476bfdd/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:34 GMT + Pragma: + - no-cache + RequestId: + - 97335abe-702c-53e5-97cd-e863deb55125 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/items/a0b40f70-fb2b-55ca-a4ba-51c75476bfdd/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:34 GMT + Pragma: + - no-cache + RequestId: + - a441fbed-4096-56be-86be-5f57e8152dcf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "4a4a4070-ea0e-468c-80f6-fbb93981cce7", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:35 GMT + Pragma: + - no-cache + RequestId: + - 2ffeb986-9dcb-5200-bff8-945fc0dd8654 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/items + response: + body: + string: '{"value": [{"id": "a0b40f70-fb2b-55ca-a4ba-51c75476bfdd", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "4a4a4070-ea0e-468c-80f6-fbb93981cce7", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:36 GMT + Pragma: + - no-cache + RequestId: + - 7ac38f2d-b1bf-5b94-9c5c-16a86738c4a2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/4a4a4070-ea0e-468c-80f6-fbb93981cce7/items/a0b40f70-fb2b-55ca-a4ba-51c75476bfdd + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:03:36 GMT + Pragma: + - no-cache + RequestId: + - 2437d63b-7737-55b3-a2c9-ff5af8df6364 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_import/test_import_create_new_item_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_item_success[DeploymentPlan].yaml new file mode 100644 index 000000000..f59f3fe08 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_item_success[DeploymentPlan].yaml @@ -0,0 +1,747 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:12 GMT + Pragma: + - no-cache + RequestId: + - e1045517-9844-598e-966d-c4adcf71ae63 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:12 GMT + Pragma: + - no-cache + RequestId: + - c80e03e7-7bd3-5277-b2e9-1af6c00cc0a0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:13 GMT + Pragma: + - no-cache + RequestId: + - 2b3c360b-54ae-58cb-93e5-2b23b58266a2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/deploymentPlans + response: + body: + string: '{"id": "858f5e80-fe93-5492-8726-d568356ebb47", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:14 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 214d335a-e45f-5f35-aeca-f03b7b320bce + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:14 GMT + Pragma: + - no-cache + RequestId: + - a5ca0514-2b07-58fb-9f90-3f258040d22f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": [{"id": "858f5e80-fe93-5492-8726-d568356ebb47", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:15 GMT + Pragma: + - no-cache + RequestId: + - b8119227-c9a1-506b-a8d9-3a8f3b333764 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items/858f5e80-fe93-5492-8726-d568356ebb47 + response: + body: + string: '{"id": "858f5e80-fe93-5492-8726-d568356ebb47", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:15 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - a69449ee-6b53-5c5e-8a50-8318533a9276 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items/858f5e80-fe93-5492-8726-d568356ebb47/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:16 GMT + Pragma: + - no-cache + RequestId: + - 68153f80-f2f6-5040-b059-a96756cdde27 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:17 GMT + Pragma: + - no-cache + RequestId: + - 1d3a40f7-640b-572a-a0f9-6463fab56b27 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": [{"id": "858f5e80-fe93-5492-8726-d568356ebb47", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:16 GMT + Pragma: + - no-cache + RequestId: + - 67dc8ab7-9320-511c-96c0-9636bf677b40 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": [{"id": "858f5e80-fe93-5492-8726-d568356ebb47", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:16 GMT + Pragma: + - no-cache + RequestId: + - d7b92ccb-0bfe-5bae-af0d-11ab8ee23ae4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "DeploymentPlan", "folderId": null, "displayName": "fabcli000001_new_2", + "definition": {"parts": [{"path": ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiRGVwbG95bWVudFBsYW4iLAogICAgICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgICB9LAogICAgImNvbmZpZyI6IHsKICAgICAgICAidmVyc2lvbiI6ICIyLjAiLAogICAgICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogICAgfQp9", + "payloadType": "InlineBase64"}, {"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '869' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"id": "c9b25c48-31e0-52bb-9997-45d3c47c5beb", "type": "DeploymentPlan", + "displayName": "fabcli000001_new_2", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:18 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 45bd69b3-3000-51e6-ae73-ca0c7223acf6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:18 GMT + Pragma: + - no-cache + RequestId: + - 488fd4aa-db28-5d1f-be0b-e27f02ac653b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": [{"id": "858f5e80-fe93-5492-8726-d568356ebb47", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}, {"id": "c9b25c48-31e0-52bb-9997-45d3c47c5beb", "type": + "DeploymentPlan", "displayName": "fabcli000001_new_2", "description": "", + "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '223' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:19 GMT + Pragma: + - no-cache + RequestId: + - 2f66acd8-b28c-56f6-80c7-98c319731712 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items/858f5e80-fe93-5492-8726-d568356ebb47 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:05:19 GMT + Pragma: + - no-cache + RequestId: + - 4e8ab819-1be0-5f3f-8743-3578c3722df8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_import/test_import_update_existing_item_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_import/test_import_update_existing_item_success[DeploymentPlan].yaml new file mode 100644 index 000000000..04ee3fecf --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_import/test_import_update_existing_item_success[DeploymentPlan].yaml @@ -0,0 +1,692 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:04 GMT + Pragma: + - no-cache + RequestId: + - d82f44d1-31cf-5547-aea8-c98f2cb2c548 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:04 GMT + Pragma: + - no-cache + RequestId: + - 84158d05-6293-5a90-afee-b8996e3cc3b3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:04 GMT + Pragma: + - no-cache + RequestId: + - e01f2429-39d6-59bc-b2bf-cca10b32625b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/deploymentPlans + response: + body: + string: '{"id": "6c875b24-2ae0-5094-8e79-b81e68438b8e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:07 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - ddd6d29d-640b-5e99-b89d-265b2376ab9a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:06 GMT + Pragma: + - no-cache + RequestId: + - 93576251-3e63-5369-93da-e15c45d26af7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": [{"id": "6c875b24-2ae0-5094-8e79-b81e68438b8e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:08 GMT + Pragma: + - no-cache + RequestId: + - 5b8748d4-1034-508b-bef7-6eab2b825c42 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items/6c875b24-2ae0-5094-8e79-b81e68438b8e + response: + body: + string: '{"id": "6c875b24-2ae0-5094-8e79-b81e68438b8e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:08 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - ad7309db-53ce-5904-b1ea-79f5bf2e1b4c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items/6c875b24-2ae0-5094-8e79-b81e68438b8e/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:08 GMT + Pragma: + - no-cache + RequestId: + - 3799a0da-0b73-5d68-8345-b0b987310922 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:09 GMT + Pragma: + - no-cache + RequestId: + - 15bbcc01-4b37-5386-b507-0d2388b615af + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": [{"id": "6c875b24-2ae0-5094-8e79-b81e68438b8e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:09 GMT + Pragma: + - no-cache + RequestId: + - 91d5f25a-f34f-561b-81b8-8fbcb87c5552 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"definition": {"parts": [{"path": ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiRGVwbG95bWVudFBsYW4iLAogICAgICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgICB9LAogICAgImNvbmZpZyI6IHsKICAgICAgICAidmVyc2lvbiI6ICIyLjAiLAogICAgICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogICAgfQp9", + "payloadType": "InlineBase64"}, {"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '784' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items/6c875b24-2ae0-5094-8e79-b81e68438b8e/updateDefinition + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:05:10 GMT + Pragma: + - no-cache + RequestId: + - 03fbf87a-cbfc-5856-bb08-3bb193f76f9e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:10 GMT + Pragma: + - no-cache + RequestId: + - 889913c5-058e-5bf1-ae45-0845d4a8ace5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items + response: + body: + string: '{"value": [{"id": "6c875b24-2ae0-5094-8e79-b81e68438b8e", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:05:11 GMT + Pragma: + - no-cache + RequestId: + - 5aa08988-8c3b-5205-9ada-c343fd3e4a4a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/f5077233-b988-43a5-8f51-27dff3a6a8eb/items/6c875b24-2ae0-5094-8e79-b81e68438b8e + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:05:12 GMT + Pragma: + - no-cache + RequestId: + - ba6788e4-5f0d-5e3b-8d0a-06148bcebfd9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_ls/test_ls_folder_content_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_ls/test_ls_folder_content_success[DeploymentPlan].yaml new file mode 100644 index 000000000..460a3ee4a --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_ls/test_ls_folder_content_success[DeploymentPlan].yaml @@ -0,0 +1,1785 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:03 GMT + Pragma: + - no-cache + RequestId: + - b251bde8-cfcb-5009-8240-0902b8c66931 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:04 GMT + Pragma: + - no-cache + RequestId: + - 8033c199-43b6-52c6-9133-7b1f1b00c5e7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:04 GMT + Pragma: + - no-cache + RequestId: + - 72424489-8d03-5075-89b6-c3ca056c1c14 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders + response: + body: + string: '{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": "fabcli000001", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:04 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders/2d49faa9-94c6-57d3-9943-8a053785b1a7 + Pragma: + - no-cache + RequestId: + - ccd07362-c4b6-5091-b694-fc053fcf1c87 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:05 GMT + Pragma: + - no-cache + RequestId: + - 2a378efd-1f3a-5f58-a26d-effc8b4ce8ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:05 GMT + Pragma: + - no-cache + RequestId: + - 9504214b-cb54-5d14-bd85-4a8bab3eb927 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:05 GMT + Pragma: + - no-cache + RequestId: + - e6e54282-b1da-5b9a-ba99-a4ff0800107d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:05 GMT + Pragma: + - no-cache + RequestId: + - 3d102f72-c9a7-541f-a1ea-3ba756e6405c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002", "type": "DeploymentPlan", "folderId": "2d49faa9-94c6-57d3-9943-8a053785b1a7"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '113' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/deploymentPlans + response: + body: + string: '{"id": "914261b3-2f72-5406-bace-b9158e5593f2", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null, "folderId": "2d49faa9-94c6-57d3-9943-8a053785b1a7"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '202' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:06 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 5f1d37d4-0e2e-5f11-a123-ecee9db004f6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:07 GMT + Pragma: + - no-cache + RequestId: + - 0ad5f728-900b-5516-a99f-6e6bc5ef0d4f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:06 GMT + Pragma: + - no-cache + RequestId: + - 1c601672-04af-537e-a4fa-86e783c207b9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "914261b3-2f72-5406-bace-b9158e5593f2", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null, "folderId": "2d49faa9-94c6-57d3-9943-8a053785b1a7"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:07 GMT + Pragma: + - no-cache + RequestId: + - cb48aa30-356c-5429-981b-cf29f6b8d9bf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:08 GMT + Pragma: + - no-cache + RequestId: + - 27b94a25-595b-5b04-9483-f69f708e981a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:07 GMT + Pragma: + - no-cache + RequestId: + - ae811fbf-4200-5663-ab08-c06f6e0d9be8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:08 GMT + Pragma: + - no-cache + RequestId: + - 26cf8632-2213-508d-8aab-b8ab69895650 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:09 GMT + Pragma: + - no-cache + RequestId: + - 20e769bc-a7a1-57d0-b856-b2900407662e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "914261b3-2f72-5406-bace-b9158e5593f2", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null, "folderId": "2d49faa9-94c6-57d3-9943-8a053785b1a7"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:10 GMT + Pragma: + - no-cache + RequestId: + - 5300f41f-a8a1-5404-a30e-94ff9ab00b62 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:11 GMT + Pragma: + - no-cache + RequestId: + - c772132e-39b5-5fe9-9cbd-12b8fadd1624 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:10 GMT + Pragma: + - no-cache + RequestId: + - bbaa0680-1233-5219-a1a8-e7779db7998f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:11 GMT + Pragma: + - no-cache + RequestId: + - bc0fb6c0-eea8-58e8-aa08-0cbd8a30dc78 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:11 GMT + Pragma: + - no-cache + RequestId: + - 80686198-51bc-523a-9699-59eb344d22ad + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "914261b3-2f72-5406-bace-b9158e5593f2", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null, "folderId": "2d49faa9-94c6-57d3-9943-8a053785b1a7"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:12 GMT + Pragma: + - no-cache + RequestId: + - 6fe37d9b-aa01-5d94-bedb-4af8dd8e4929 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:12 GMT + Pragma: + - no-cache + RequestId: + - 8735c06e-7951-5941-80db-8ea26a4a7b09 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:12 GMT + Pragma: + - no-cache + RequestId: + - 12535c68-89fc-5a78-9e4e-3adc31b2e848 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:13 GMT + Pragma: + - no-cache + RequestId: + - 7467a5ba-bc07-5ec6-bd17-3a8fa84d38c2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:13 GMT + Pragma: + - no-cache + RequestId: + - a266d9b1-f84e-544a-9dbb-4195f6bbf109 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "914261b3-2f72-5406-bace-b9158e5593f2", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null, "folderId": "2d49faa9-94c6-57d3-9943-8a053785b1a7"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:14 GMT + Pragma: + - no-cache + RequestId: + - 51deb0a2-a29e-52c7-b6c1-07ee242c8f31 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:14 GMT + Pragma: + - no-cache + RequestId: + - b6b28156-9bba-5852-aaf3-9fe40d2188b7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:14 GMT + Pragma: + - no-cache + RequestId: + - d3d59102-66ac-54d9-a48e-76f4e5074ad3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:14 GMT + Pragma: + - no-cache + RequestId: + - 8273fbc0-a7d9-5304-89c9-b6b8d1b25356 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:14 GMT + Pragma: + - no-cache + RequestId: + - 9c02fa7e-f8ae-5c49-8e3d-4aa07df37660 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "914261b3-2f72-5406-bace-b9158e5593f2", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null, "folderId": "2d49faa9-94c6-57d3-9943-8a053785b1a7"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:15 GMT + Pragma: + - no-cache + RequestId: + - ba7113bd-7f8d-5f1e-9489-340f85c69a4d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:15 GMT + Pragma: + - no-cache + RequestId: + - a9457073-5caa-5cd0-90b6-af38e756484c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items/914261b3-2f72-5406-bace-b9158e5593f2 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:16 GMT + Pragma: + - no-cache + RequestId: + - 371d59f4-5a78-5030-b7a3-3ce338bc3be3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:15 GMT + Pragma: + - no-cache + RequestId: + - 793437cb-41ee-5cba-ae0e-ef54e4fce945 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "2d49faa9-94c6-57d3-9943-8a053785b1a7", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:17 GMT + Pragma: + - no-cache + RequestId: + - cad2312a-19cc-5566-b1e3-f6edeb4f658d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders/2d49faa9-94c6-57d3-9943-8a053785b1a7 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:17 GMT + Pragma: + - no-cache + RequestId: + - 42874a81-be14-596a-9e1f-bd08d7c4350d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_ls/test_ls_query_filter_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_ls/test_ls_query_filter_success[DeploymentPlan].yaml new file mode 100644 index 000000000..f8a5fca4d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_ls/test_ls_query_filter_success[DeploymentPlan].yaml @@ -0,0 +1,1664 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:49 GMT + Pragma: + - no-cache + RequestId: + - 66f5ec48-47be-5779-b84f-eac4faf5abf4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:50 GMT + Pragma: + - no-cache + RequestId: + - 477aa49f-e11c-53b4-8529-4d4ee6e4ea72 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:50 GMT + Pragma: + - no-cache + RequestId: + - 1d6d7945-58da-5e1e-b4e1-897c73d09ace + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/deploymentPlans + response: + body: + string: '{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:51 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 56a83af3-503b-5fe6-b5d1-f10ed58e32f4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:51 GMT + Pragma: + - no-cache + RequestId: + - 989ebee5-1c46-5034-ad53-fff95db3cbf6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:52 GMT + Pragma: + - no-cache + RequestId: + - 73c0243d-9d34-59d8-9402-e02ae2962f2c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:52 GMT + Pragma: + - no-cache + RequestId: + - 79779016-e097-5340-b398-f41118530f14 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/deploymentPlans + response: + body: + string: '{"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:54 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 94cafdb2-12da-515f-9b56-9f5b471c4525 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:54 GMT + Pragma: + - no-cache + RequestId: + - 544c5b4d-e71a-5a33-920b-b29e573db17a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '225' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:55 GMT + Pragma: + - no-cache + RequestId: + - de5cd32e-453a-5777-9737-5dd1610f0734 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '225' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:54 GMT + Pragma: + - no-cache + RequestId: + - ddd86816-237d-5541-a999-f1d22a7e0692 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000003", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/deploymentPlans + response: + body: + string: '{"id": "550b6119-483f-5e90-84e4-8bed0824469e", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:55 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - c3248b07-1de6-5b40-89d3-2e7c0c53b1f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:56 GMT + Pragma: + - no-cache + RequestId: + - 3a35348b-bffb-5d05-b91a-06b643dabc30 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}, {"id": "550b6119-483f-5e90-84e4-8bed0824469e", + "type": "DeploymentPlan", "displayName": "fabcli000003", "description": "", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:57 GMT + Pragma: + - no-cache + RequestId: + - 3b4d3672-21f1-5c6b-9909-766ae454c103 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:56 GMT + Pragma: + - no-cache + RequestId: + - 9036d7fd-6c0a-5b08-a26a-d3419ef38a1e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}, {"id": "550b6119-483f-5e90-84e4-8bed0824469e", + "type": "DeploymentPlan", "displayName": "fabcli000003", "description": "", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:57 GMT + Pragma: + - no-cache + RequestId: + - 575f4ab7-530a-5385-8002-f988be5901d9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:57 GMT + Pragma: + - no-cache + RequestId: + - 6afa9800-e68b-55df-9093-10e9fc8c9200 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}, {"id": "550b6119-483f-5e90-84e4-8bed0824469e", + "type": "DeploymentPlan", "displayName": "fabcli000003", "description": "", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:58 GMT + Pragma: + - no-cache + RequestId: + - e8d00441-968b-56a6-9806-14d7bcd99e1b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:58 GMT + Pragma: + - no-cache + RequestId: + - 5eb7e89a-f1d0-5b16-b5ae-ccdcffdd992e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}, {"id": "550b6119-483f-5e90-84e4-8bed0824469e", + "type": "DeploymentPlan", "displayName": "fabcli000003", "description": "", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:58 GMT + Pragma: + - no-cache + RequestId: + - 2277fb60-69af-5427-8299-8658ad2f7019 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:59 GMT + Pragma: + - no-cache + RequestId: + - ccaf5b68-0620-5cee-a7ad-a210c0d62899 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}, {"id": "550b6119-483f-5e90-84e4-8bed0824469e", + "type": "DeploymentPlan", "displayName": "fabcli000003", "description": "", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:59 GMT + Pragma: + - no-cache + RequestId: + - f51aa196-566f-539c-a665-42d2841ec5ca + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:00 GMT + Pragma: + - no-cache + RequestId: + - 1b235602-7e34-572b-9e4a-f00d99ef4ba7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}, {"id": "550b6119-483f-5e90-84e4-8bed0824469e", + "type": "DeploymentPlan", "displayName": "fabcli000003", "description": "", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:59 GMT + Pragma: + - no-cache + RequestId: + - 95ab9667-8faa-586d-867c-cc9b9ce15237 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:00 GMT + Pragma: + - no-cache + RequestId: + - f850d6a3-bf45-5184-a48e-1f76d02cec7e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}, {"id": "550b6119-483f-5e90-84e4-8bed0824469e", + "type": "DeploymentPlan", "displayName": "fabcli000003", "description": "", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:00 GMT + Pragma: + - no-cache + RequestId: + - b1414535-1ec3-5b21-bd09-9427a7380df3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items/550b6119-483f-5e90-84e4-8bed0824469e + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:01 GMT + Pragma: + - no-cache + RequestId: + - c15f42ec-a7c9-5371-9f10-627623543c15 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:01 GMT + Pragma: + - no-cache + RequestId: + - f559d0d1-7340-5b16-9ad1-a09b8058ae6b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "b37b33d9-3619-57e2-80ac-12ed2ea476fd", "type": + "DeploymentPlan", "displayName": "fabcli000002", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '225' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:01 GMT + Pragma: + - no-cache + RequestId: + - 152995c8-9a5a-50f8-9af6-2d9279b2ee1a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items/b37b33d9-3619-57e2-80ac-12ed2ea476fd + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:01 GMT + Pragma: + - no-cache + RequestId: + - 6f14522a-814f-5215-b0d3-a3b6a856320d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:02 GMT + Pragma: + - no-cache + RequestId: + - ed11b354-e2c6-5b5a-804f-d580944c865c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "94182f74-3f45-5dc0-9355-cdae148755e0", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:02 GMT + Pragma: + - no-cache + RequestId: + - e61ea4c1-aaff-5755-b46c-94fd72e48416 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items/94182f74-3f45-5dc0-9355-cdae148755e0 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:03 GMT + Pragma: + - no-cache + RequestId: + - 67e70d82-6cec-56ea-bc84-7b3c403f7fc3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_ls/test_ls_workspace_items_no_list_folders_support_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_no_list_folders_support_success[DeploymentPlan].yaml new file mode 100644 index 000000000..e9539f3e0 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_no_list_folders_support_success[DeploymentPlan].yaml @@ -0,0 +1,1758 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:17 GMT + Pragma: + - no-cache + RequestId: + - 68bc5188-3c2e-501e-9f1a-498866a53851 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:17 GMT + Pragma: + - no-cache + RequestId: + - d03fb70e-f7bc-5b8b-bfa5-d397030357b5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:17 GMT + Pragma: + - no-cache + RequestId: + - 374bfa9d-6ff2-561a-b355-474256e7d2e8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders + response: + body: + string: '{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": "fabcli000001", + "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:18 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders/05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020 + Pragma: + - no-cache + RequestId: + - cca0fc77-50f6-5d08-aa85-76d16df767b3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:19 GMT + Pragma: + - no-cache + RequestId: + - 35168af4-93e8-5a11-877d-b7882436a65d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:19 GMT + Pragma: + - no-cache + RequestId: + - 514f83ee-c35d-587a-a496-80941ea3d7d9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:19 GMT + Pragma: + - no-cache + RequestId: + - a34ce8f7-2217-5510-a13e-083f2fc800d4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/deploymentPlans + response: + body: + string: '{"id": "f7eeba97-31c6-5909-b585-5557b6d29a53", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:20 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 0b719ca2-c975-566d-a91f-a55f2e36ed2c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:21 GMT + Pragma: + - no-cache + RequestId: + - 0771222b-0656-575a-946b-0dd8f286eb34 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:22 GMT + Pragma: + - no-cache + RequestId: + - 61778f4e-2bfc-5ea9-9d95-ff5589a29a26 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "f7eeba97-31c6-5909-b585-5557b6d29a53", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:21 GMT + Pragma: + - no-cache + RequestId: + - c86fb6d0-85e1-5a0c-85fb-0ff7cc658f91 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "f7eeba97-31c6-5909-b585-5557b6d29a53", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:22 GMT + Pragma: + - no-cache + RequestId: + - 8a76d9c9-c3a3-5d30-91e2-6e914cf2f85d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000003", "type": "DeploymentPlan", "folderId": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '113' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/deploymentPlans + response: + body: + string: '{"id": "ccd27770-775b-5636-9049-d9be1e288ce7", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null, "folderId": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '204' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:24 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 1182edbe-a504-58ae-b051-b2d4a3cfef64 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:24 GMT + Pragma: + - no-cache + RequestId: + - c46acbc2-532f-5b52-9ce1-82c693c455a9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "f7eeba97-31c6-5909-b585-5557b6d29a53", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "ccd27770-775b-5636-9049-d9be1e288ce7", "type": + "DeploymentPlan", "displayName": "fabcli000003", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null, "folderId": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '257' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:25 GMT + Pragma: + - no-cache + RequestId: + - 4ed7fd7f-226f-50e3-84d4-4ec3632df354 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:25 GMT + Pragma: + - no-cache + RequestId: + - e14001ba-359d-5b77-b0f6-24758cc52dda + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:25 GMT + Pragma: + - no-cache + RequestId: + - 008c645b-a86d-5dc0-a5ce-83103dac4a2d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:25 GMT + Pragma: + - no-cache + RequestId: + - f21d24de-e767-5259-ab27-0423f406640a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:25 GMT + Pragma: + - no-cache + RequestId: + - 067f68e5-7f42-59ef-9aca-8c441220760b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "f7eeba97-31c6-5909-b585-5557b6d29a53", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "ccd27770-775b-5636-9049-d9be1e288ce7", "type": + "DeploymentPlan", "displayName": "fabcli000003", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null, "folderId": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '257' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:26 GMT + Pragma: + - no-cache + RequestId: + - 4524991b-3ab3-5e96-a377-6d403c6d4fd4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:26 GMT + Pragma: + - no-cache + RequestId: + - 16c4b362-04ac-5adf-8c21-3e2baa8e4073 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:27 GMT + Pragma: + - no-cache + RequestId: + - a8002ac3-dcda-5904-a767-dd194785765e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:27 GMT + Pragma: + - no-cache + RequestId: + - 88745ee3-1744-5667-a703-7d5d482f1211 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "f7eeba97-31c6-5909-b585-5557b6d29a53", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "ccd27770-775b-5636-9049-d9be1e288ce7", "type": + "DeploymentPlan", "displayName": "fabcli000003", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null, "folderId": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '257' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:28 GMT + Pragma: + - no-cache + RequestId: + - 440b3338-9fa3-51bd-9545-f5da7a8e8962 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:27 GMT + Pragma: + - no-cache + RequestId: + - 07aad849-f01c-5ebc-8691-5e0d5751f990 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:28 GMT + Pragma: + - no-cache + RequestId: + - 57be1551-b15c-5ed6-86df-defbaf839522 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:28 GMT + Pragma: + - no-cache + RequestId: + - bc655ba3-f9e0-5566-a4bf-89d13a552441 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "f7eeba97-31c6-5909-b585-5557b6d29a53", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}, {"id": "ccd27770-775b-5636-9049-d9be1e288ce7", "type": + "DeploymentPlan", "displayName": "fabcli000003", "description": "", "workspaceId": + "1f2d98cc-fa08-4883-ae9d-78d051d4804d", "logicalId": null, "folderId": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '257' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:29 GMT + Pragma: + - no-cache + RequestId: + - 0b89b29f-a811-586e-afd5-c35cb1c90736 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:29 GMT + Pragma: + - no-cache + RequestId: + - 7311ecd8-e1fb-54d4-896c-0afe213d4f28 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items/ccd27770-775b-5636-9049-d9be1e288ce7 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:30 GMT + Pragma: + - no-cache + RequestId: + - f7dd6f31-a32d-5a8e-a955-9c01c340fcc3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:30 GMT + Pragma: + - no-cache + RequestId: + - ad2a4d43-c051-5e30-a60b-3e48db4103a1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "f7eeba97-31c6-5909-b585-5557b6d29a53", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:30 GMT + Pragma: + - no-cache + RequestId: + - ec91bf65-053d-5e65-8853-de9412c1c6a9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items/f7eeba97-31c6-5909-b585-5557b6d29a53 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:31 GMT + Pragma: + - no-cache + RequestId: + - d1456781-a98a-56d3-a0e2-3ee539dc61dc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:30 GMT + Pragma: + - no-cache + RequestId: + - 9db09d89-9174-557a-a9ee-c2a44e4ef8f8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders?recursive=True + response: + body: + string: '{"value": [{"id": "05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020", "displayName": + "fabcli000001", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '142' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:02:30 GMT + Pragma: + - no-cache + RequestId: + - 4177996b-e9cb-5242-95ee-3d4b37e075be + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/folders/05f8a4d0-a8f7-5d39-8a2d-a6d9d249f020 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:02:31 GMT + Pragma: + - no-cache + RequestId: + - d09e5ed8-9fa2-56f7-87af-2ed0807d7d13 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_ls/test_ls_workspace_items_success[dir-DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_success[dir-DeploymentPlan].yaml new file mode 100644 index 000000000..e30a8acf7 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_success[dir-DeploymentPlan].yaml @@ -0,0 +1,740 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:44 GMT + Pragma: + - no-cache + RequestId: + - e9586ae4-9717-5a9f-a9db-00a97efc825e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:45 GMT + Pragma: + - no-cache + RequestId: + - c2f36b3a-c24e-5dc8-8106-1298de92f411 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:44 GMT + Pragma: + - no-cache + RequestId: + - 78e5402c-7eed-5c07-a3be-766c84cb6633 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/deploymentPlans + response: + body: + string: '{"id": "4358c3c4-a0d7-5766-acdd-3bc3a3f7ccb7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:46 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 01dca404-f8ed-58e1-94c5-b8ac29ae06c1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:46 GMT + Pragma: + - no-cache + RequestId: + - 3b4692c3-9205-563c-b8b5-2a6456414b03 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "4358c3c4-a0d7-5766-acdd-3bc3a3f7ccb7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:47 GMT + Pragma: + - no-cache + RequestId: + - d1f1bb51-42bd-5cde-b170-8b1227390906 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:46 GMT + Pragma: + - no-cache + RequestId: + - dd3db107-b52e-5a8a-bf82-1882bdb770d2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "4358c3c4-a0d7-5766-acdd-3bc3a3f7ccb7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:47 GMT + Pragma: + - no-cache + RequestId: + - c4263288-f76e-5823-b041-70163437dee4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:48 GMT + Pragma: + - no-cache + RequestId: + - 95496fa6-8d7c-5dd6-9f32-efaa65f2710e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "4358c3c4-a0d7-5766-acdd-3bc3a3f7ccb7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:47 GMT + Pragma: + - no-cache + RequestId: + - 563e72ad-c21f-5640-9173-11c0e82c3236 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:48 GMT + Pragma: + - no-cache + RequestId: + - b3e5b1ec-63f1-5e13-9348-c97b8e503c0d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "4358c3c4-a0d7-5766-acdd-3bc3a3f7ccb7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:49 GMT + Pragma: + - no-cache + RequestId: + - 02f5cc7a-96c6-5d3f-9d2e-ceb076936ab0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:49 GMT + Pragma: + - no-cache + RequestId: + - 45ac5fd8-2c67-5d3e-a7ee-ca45f320a4ae + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "4358c3c4-a0d7-5766-acdd-3bc3a3f7ccb7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:49 GMT + Pragma: + - no-cache + RequestId: + - eb033efa-78cd-51aa-b80b-4a0fc7b49dcd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items/4358c3c4-a0d7-5766-acdd-3bc3a3f7ccb7 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:01:50 GMT + Pragma: + - no-cache + RequestId: + - d2721397-71d4-5e00-aef3-a40040bc3c0c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_ls/test_ls_workspace_items_success[ls-DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_success[ls-DeploymentPlan].yaml new file mode 100644 index 000000000..93a40fb29 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_items_success[ls-DeploymentPlan].yaml @@ -0,0 +1,740 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:36 GMT + Pragma: + - no-cache + RequestId: + - 4ed497f0-bf76-5c1e-8e34-fb8e7b660e16 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:36 GMT + Pragma: + - no-cache + RequestId: + - 85ddefe4-d9ec-555f-8530-a56fc8283990 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:37 GMT + Pragma: + - no-cache + RequestId: + - 97f1df1f-c58c-5a5e-b703-ab0f200c6b02 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/deploymentPlans + response: + body: + string: '{"id": "71759b40-7e29-51e9-bfa9-c04d88efcda7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:39 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 87c07c77-990d-5e3e-bd25-183994171d9e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:39 GMT + Pragma: + - no-cache + RequestId: + - 519493ee-7dab-54c7-ba87-79ad67f064c7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "71759b40-7e29-51e9-bfa9-c04d88efcda7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:39 GMT + Pragma: + - no-cache + RequestId: + - c78e41d5-8320-585f-8c4b-d865e814c422 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:40 GMT + Pragma: + - no-cache + RequestId: + - cf29bbfc-a4d2-50ac-8b98-c14b07639cc1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "71759b40-7e29-51e9-bfa9-c04d88efcda7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:41 GMT + Pragma: + - no-cache + RequestId: + - 5fc03f69-a6b8-5b91-bab4-07b7f0eb10d1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:42 GMT + Pragma: + - no-cache + RequestId: + - 277f7f90-a608-5a35-a828-c0d8de4cd364 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "71759b40-7e29-51e9-bfa9-c04d88efcda7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:42 GMT + Pragma: + - no-cache + RequestId: + - 2920c8d4-e98e-5a3a-abb5-45f52adcaa9c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:41 GMT + Pragma: + - no-cache + RequestId: + - a60f60e7-8f1a-5888-b812-79b543116e61 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "71759b40-7e29-51e9-bfa9-c04d88efcda7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:42 GMT + Pragma: + - no-cache + RequestId: + - f4291d50-ff01-56a6-a58d-7181cf38a5ec + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:43 GMT + Pragma: + - no-cache + RequestId: + - 1e54d800-e12c-53d9-97b9-50ee86127197 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items + response: + body: + string: '{"value": [{"id": "71759b40-7e29-51e9-bfa9-c04d88efcda7", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "1f2d98cc-fa08-4883-ae9d-78d051d4804d", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:01:43 GMT + Pragma: + - no-cache + RequestId: + - 9b4f4b8e-d995-584f-b39a-5ff9d4ea93a6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/1f2d98cc-fa08-4883-ae9d-78d051d4804d/items/71759b40-7e29-51e9-bfa9-c04d88efcda7 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:01:44 GMT + Pragma: + - no-cache + RequestId: + - aabfe6f2-1a94-5130-855b-176ab3ffb5ad + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_mkdir/test_mkdir_item_name_already_exists_failure[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_item_name_already_exists_failure[DeploymentPlan].yaml new file mode 100644 index 000000000..271dc79c4 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_item_name_already_exists_failure[DeploymentPlan].yaml @@ -0,0 +1,443 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:08 GMT + Pragma: + - no-cache + RequestId: + - a08bf57c-2fd7-586d-bb28-c0d6519645cc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:08 GMT + Pragma: + - no-cache + RequestId: + - d31135c6-1bf7-56c0-b4ef-3c078fc37611 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:08 GMT + Pragma: + - no-cache + RequestId: + - 2e6d0854-57fe-5cea-9449-aa2f1071193c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/deploymentPlans + response: + body: + string: '{"id": "b7d26751-a85d-5463-b212-962798d11c07", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '172' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:10 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - d2378914-f734-513b-92f4-d80bb2c69104 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:10 GMT + Pragma: + - no-cache + RequestId: + - 0b08aab2-c91e-589b-a1da-89f41997596a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items + response: + body: + string: '{"value": [{"id": "b7d26751-a85d-5463-b212-962798d11c07", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '183' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:11 GMT + Pragma: + - no-cache + RequestId: + - ce72064a-cbfe-5890-ae2a-27e7df532a6a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:11 GMT + Pragma: + - no-cache + RequestId: + - 43f16039-983c-5be1-a406-8df74e34a8b9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items + response: + body: + string: '{"value": [{"id": "b7d26751-a85d-5463-b212-962798d11c07", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '183' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:12 GMT + Pragma: + - no-cache + RequestId: + - 3f858a96-db97-5872-be22-8674f2144f9f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items/b7d26751-a85d-5463-b212-962798d11c07 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:03:12 GMT + Pragma: + - no-cache + RequestId: + - 3e5b61a4-e38f-5ccc-a740-a0185b84de0b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_mkdir/test_mkdir_item_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_item_success[DeploymentPlan].yaml new file mode 100644 index 000000000..565a5fc42 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_item_success[DeploymentPlan].yaml @@ -0,0 +1,589 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:13 GMT + Pragma: + - no-cache + RequestId: + - 9fb5d41c-56e6-5bed-b1c5-3017d0f841dd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:13 GMT + Pragma: + - no-cache + RequestId: + - ba074c2a-d494-5d35-9271-4205afefd4fd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:14 GMT + Pragma: + - no-cache + RequestId: + - 35590fbe-06d1-5576-ad06-598e4920f18c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/deploymentPlans + response: + body: + string: '{"id": "177ff9e4-73ef-5615-b5d1-34ef99bc5998", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:14 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 0aaa4beb-e102-55d6-b2e9-f1e72aafa8ae + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:15 GMT + Pragma: + - no-cache + RequestId: + - 86e3521f-93bc-5568-b465-e98cccf605ba + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items + response: + body: + string: '{"value": [{"id": "177ff9e4-73ef-5615-b5d1-34ef99bc5998", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:15 GMT + Pragma: + - no-cache + RequestId: + - b6c81d77-90bf-58c6-af82-f0d3a8d29d93 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/deploymentPlans/177ff9e4-73ef-5615-b5d1-34ef99bc5998 + response: + body: + string: '{"id": "177ff9e4-73ef-5615-b5d1-34ef99bc5998", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:15 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 44272c0b-7da6-5919-bcc3-6e30a456f332 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items/177ff9e4-73ef-5615-b5d1-34ef99bc5998/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:16 GMT + Pragma: + - no-cache + RequestId: + - 998b632c-72af-59ad-86aa-3be349309d86 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items/177ff9e4-73ef-5615-b5d1-34ef99bc5998/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:17 GMT + Pragma: + - no-cache + RequestId: + - 4329b86b-c095-5bc8-83d8-6bd9f4e1a868 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:18 GMT + Pragma: + - no-cache + RequestId: + - c3512842-220d-56d5-89be-0449283d5586 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items + response: + body: + string: '{"value": [{"id": "177ff9e4-73ef-5615-b5d1-34ef99bc5998", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "55c55867-7a29-4f5b-b97f-84ea8da4c7c2", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:18 GMT + Pragma: + - no-cache + RequestId: + - 4e71945f-68b3-552c-a36c-8f47cd03a8c4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/55c55867-7a29-4f5b-b97f-84ea8da4c7c2/items/177ff9e4-73ef-5615-b5d1-34ef99bc5998 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:03:18 GMT + Pragma: + - no-cache + RequestId: + - 2e9eec4a-97ff-5c02-98f1-ebf801a9ee55 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_mv/test_mv_item_to_item_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_mv/test_mv_item_to_item_success[DeploymentPlan].yaml new file mode 100644 index 000000000..a385ad029 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_mv/test_mv_item_to_item_success[DeploymentPlan].yaml @@ -0,0 +1,1776 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:18 GMT + Pragma: + - no-cache + RequestId: + - 497eb3ef-6615-5937-a9e3-69075d5cc904 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:18 GMT + Pragma: + - no-cache + RequestId: + - 99ac6570-fb53-560f-bb72-b3e725549971 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '594' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:21 GMT + Pragma: + - no-cache + RequestId: + - 31d6c98d-a076-5e9b-9d95-0b54085e5385 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '89' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '198' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:29 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870 + Pragma: + - no-cache + RequestId: + - 1a146c98-a9cd-5cf1-9b6f-738da2892089 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4064' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:29 GMT + Pragma: + - no-cache + RequestId: + - 1d737e5c-a6df-5267-a423-2d1f264e060b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4064' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:30 GMT + Pragma: + - no-cache + RequestId: + - e8dbe8b7-014e-576d-a691-499bdfd86379 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '593' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:33 GMT + Pragma: + - no-cache + RequestId: + - 22579b0b-0deb-5664-be26-5000594e3aa0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '89' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '197' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:39 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13 + Pragma: + - no-cache + RequestId: + - 116f2848-34eb-54dc-b990-c4fdacd92cf3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:39 GMT + Pragma: + - no-cache + RequestId: + - 2d6139f8-850e-5634-b751-62a23475c1e1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:39 GMT + Pragma: + - no-cache + RequestId: + - 4f7d7cc4-79ee-5d4a-b7fb-dd147dc6a3d4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:39 GMT + Pragma: + - no-cache + RequestId: + - c99cb875-5897-597d-87db-a965d902f889 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000003", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/deploymentPlans + response: + body: + string: '{"id": "b54d2645-9389-5e32-96c1-a1d1879766ed", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "12c2ddd8-dee6-583a-90c2-457492a2c870", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:41 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 0daae672-3ae0-5c85-a6d7-fddb2978d763 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:42 GMT + Pragma: + - no-cache + RequestId: + - d0ea1ffa-7b38-5810-af77-2ef8e147023b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/items + response: + body: + string: '{"value": [{"id": "b54d2645-9389-5e32-96c1-a1d1879766ed", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "12c2ddd8-dee6-583a-90c2-457492a2c870", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:42 GMT + Pragma: + - no-cache + RequestId: + - 296d8b9e-f9b3-5271-8d7f-70e85b5d797f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:43 GMT + Pragma: + - no-cache + RequestId: + - 09877663-4df7-53f5-91f1-47c2c385723d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:43 GMT + Pragma: + - no-cache + RequestId: + - 2b86a441-8a97-5abf-b7c2-cac0e49c8582 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:43 GMT + Pragma: + - no-cache + RequestId: + - cbfb27b4-ee92-5cf4-b40b-f5186e0ad3cd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:44 GMT + Pragma: + - no-cache + RequestId: + - 3e755029-9471-569c-bd75-fe9d7acbcc3a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/items/b54d2645-9389-5e32-96c1-a1d1879766ed + response: + body: + string: '{"id": "b54d2645-9389-5e32-96c1-a1d1879766ed", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "12c2ddd8-dee6-583a-90c2-457492a2c870", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:44 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 3037692c-2fff-50b8-b0f4-71fa45bb509c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/items/b54d2645-9389-5e32-96c1-a1d1879766ed/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDMiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:46 GMT + Pragma: + - no-cache + RequestId: + - e447b116-cd9c-5cb9-9dbc-2f6c45615523 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "DeploymentPlan", "displayName": "fabcli000003", "definition": + {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDMiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}, "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '827' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13/items + response: + body: + string: '{"id": "6f7e50c3-415e-5cf1-afc9-d85e159cbba3", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "9cd53a30-fda4-50a9-9bed-f6101e661d13", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:48 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 4d97a59b-0b4a-50c7-80cc-634ec28b3ab3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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-Length: + - '0' + Content-Type: + - application/json + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/items/b54d2645-9389-5e32-96c1-a1d1879766ed + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:48 GMT + Pragma: + - no-cache + RequestId: + - a8ead9d6-4197-5b85-aff9-ad6126675719 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:49 GMT + Pragma: + - no-cache + RequestId: + - 31aa674d-bc3c-5c59-be92-cc8e78f4bec8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:49 GMT + Pragma: + - no-cache + RequestId: + - 2931d234-b3b9-5aa7-ab46-eab1e465768e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:49 GMT + Pragma: + - no-cache + RequestId: + - 8155696a-1612-5d65-9dbe-fff3651953fb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13/items + response: + body: + string: '{"value": [{"id": "6f7e50c3-415e-5cf1-afc9-d85e159cbba3", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "9cd53a30-fda4-50a9-9bed-f6101e661d13", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:50 GMT + Pragma: + - no-cache + RequestId: + - 00c2f0b8-f795-5031-a7e7-2d0e3bf992fb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:50 GMT + Pragma: + - no-cache + RequestId: + - 052d86ba-16e7-5a0a-8df2-5dabb67d1b8a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13/items + response: + body: + string: '{"value": [{"id": "6f7e50c3-415e-5cf1-afc9-d85e159cbba3", "type": "DeploymentPlan", + "displayName": "fabcli000003", "description": "", "workspaceId": "9cd53a30-fda4-50a9-9bed-f6101e661d13", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:51 GMT + Pragma: + - no-cache + RequestId: + - 3f310e0b-2a9a-51bd-b634-2785844b79b2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13/items/6f7e50c3-415e-5cf1-afc9-d85e159cbba3 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:52 GMT + Pragma: + - no-cache + RequestId: + - 61de46cb-3c4c-5c80-a784-31a857a2a71b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "12c2ddd8-dee6-583a-90c2-457492a2c870", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:52 GMT + Pragma: + - no-cache + RequestId: + - d9885af3-f147-5bfd-920e-d787b0cd5fe2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:52 GMT + Pragma: + - no-cache + RequestId: + - 3bc9e5f7-3055-5a8d-b62e-02bf8096d108 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/12c2ddd8-dee6-583a-90c2-457492a2c870 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:53 GMT + Pragma: + - no-cache + RequestId: + - b5c19fb8-e495-51a4-a5c6-b6299d4981e1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "9cd53a30-fda4-50a9-9bed-f6101e661d13", "displayName": "fabcli000002", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4067' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:53 GMT + Pragma: + - no-cache + RequestId: + - ddf55019-3d9a-5cf5-8c9e-9f8ad663d919 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:53 GMT + Pragma: + - no-cache + RequestId: + - 838e3a4a-4b7b-5507-bbb4-a3fa366f6d19 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/9cd53a30-fda4-50a9-9bed-f6101e661d13 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:07:53 GMT + Pragma: + - no-cache + RequestId: + - d975f8a0-7427-5b83-8d4e-6d349284e4e5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_mv/test_mv_item_within_workspace_rename_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_mv/test_mv_item_within_workspace_rename_success[DeploymentPlan].yaml new file mode 100644 index 000000000..e6aaaaae0 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_mv/test_mv_item_within_workspace_rename_success[DeploymentPlan].yaml @@ -0,0 +1,1305 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:54 GMT + Pragma: + - no-cache + RequestId: + - a2df2039-d6f9-5b55-aa8a-36532eaac98e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:07:55 GMT + Pragma: + - no-cache + RequestId: + - 617f68c2-8646-54d4-8861-7b75af04bbca + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '590' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:00 GMT + Pragma: + - no-cache + RequestId: + - 7d808443-2590-5cb2-8727-2a52dcca12d0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '89' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "4eda32c8-4a68-595c-adbb-896047b40c9c", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '198' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:06 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c + Pragma: + - no-cache + RequestId: + - 9826c566-a772-54bf-b650-ff4c3cfa7311 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "4eda32c8-4a68-595c-adbb-896047b40c9c", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4065' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:07 GMT + Pragma: + - no-cache + RequestId: + - b5e8229b-182f-52a4-910f-2f10145d7d76 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:08 GMT + Pragma: + - no-cache + RequestId: + - e9f66f40-96a6-5965-9fee-144e68bb1d8e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:07 GMT + Pragma: + - no-cache + RequestId: + - 27fc31bc-a804-5b06-9309-0d0b7e7aa5f3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/deploymentPlans + response: + body: + string: '{"id": "e6e9191a-6b24-52da-9076-2e38f4e8c4ab", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:10 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 3ade4294-10cb-50f3-bc87-f5a9def11436 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "4eda32c8-4a68-595c-adbb-896047b40c9c", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4065' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:10 GMT + Pragma: + - no-cache + RequestId: + - ba073c1d-8cb1-5d05-8f7c-1831169a06b4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": [{"id": "e6e9191a-6b24-52da-9076-2e38f4e8c4ab", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:11 GMT + Pragma: + - no-cache + RequestId: + - 204ae870-b22b-5061-9e30-76232f82bc7e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "4eda32c8-4a68-595c-adbb-896047b40c9c", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4065' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:12 GMT + Pragma: + - no-cache + RequestId: + - d9d1dba7-4806-5a8c-9c81-a5cfc429b6dd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": [{"id": "e6e9191a-6b24-52da-9076-2e38f4e8c4ab", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:12 GMT + Pragma: + - no-cache + RequestId: + - 20dd459b-b52f-53ff-ba9a-f84ae21a3cc1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": [{"id": "e6e9191a-6b24-52da-9076-2e38f4e8c4ab", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:13 GMT + Pragma: + - no-cache + RequestId: + - 06d70ecf-f85e-5e79-9dd7-0c918bda25df + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": [{"id": "e6e9191a-6b24-52da-9076-2e38f4e8c4ab", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:13 GMT + Pragma: + - no-cache + RequestId: + - 76c46b2d-99b1-5ca6-999d-96abac9cec4b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items/e6e9191a-6b24-52da-9076-2e38f4e8c4ab + response: + body: + string: '{"id": "e6e9191a-6b24-52da-9076-2e38f4e8c4ab", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:13 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 00bcb498-6bd3-554c-8d2a-183885201d5a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items/e6e9191a-6b24-52da-9076-2e38f4e8c4ab/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDIiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:14 GMT + Pragma: + - no-cache + RequestId: + - 549c3383-c272-512a-8eba-9950cb113a39 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"type": "DeploymentPlan", "displayName": "fabcli000002 Renamed", "definition": + {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDIiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}, "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '835' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"id": "a19d4e0c-ee21-5460-8ffe-813063610940", "type": "DeploymentPlan", + "displayName": "fabcli000002 Renamed", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '176' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:16 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 31a08a36-515e-516e-884e-fb09556d7d70 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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-Length: + - '0' + Content-Type: + - application/json + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items/e6e9191a-6b24-52da-9076-2e38f4e8c4ab + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:08:16 GMT + Pragma: + - no-cache + RequestId: + - e1c0b260-3e8d-5ad5-a414-c31d36cc2014 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "4eda32c8-4a68-595c-adbb-896047b40c9c", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4065' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:17 GMT + Pragma: + - no-cache + RequestId: + - a2605eac-abf4-5e0e-a496-0f7dfb536cbc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": [{"id": "a19d4e0c-ee21-5460-8ffe-813063610940", "type": "DeploymentPlan", + "displayName": "fabcli000002 Renamed", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '188' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:18 GMT + Pragma: + - no-cache + RequestId: + - 414860a9-5993-5fbb-99f3-1e5c5b38e180 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "4eda32c8-4a68-595c-adbb-896047b40c9c", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4065' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:18 GMT + Pragma: + - no-cache + RequestId: + - 892bca22-69f3-50fa-bcbf-01ab42d759af + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": [{"id": "a19d4e0c-ee21-5460-8ffe-813063610940", "type": "DeploymentPlan", + "displayName": "fabcli000002 Renamed", "description": "", "workspaceId": "4eda32c8-4a68-595c-adbb-896047b40c9c", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '188' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:19 GMT + Pragma: + - no-cache + RequestId: + - cf5ef4ba-b96d-58f4-be05-60619722dd6a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items/a19d4e0c-ee21-5460-8ffe-813063610940 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:08:19 GMT + Pragma: + - no-cache + RequestId: + - 1f7b22bc-0a35-518f-8951-366cfb7decd9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "03499b71-324d-4dd5-a62f-bf99e69395ef", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}, + {"id": "4eda32c8-4a68-595c-adbb-896047b40c9c", "displayName": "fabcli000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4065' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:20 GMT + Pragma: + - no-cache + RequestId: + - 9ff0588c-4a32-5dbb-8994-d6412dea4aa7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:20 GMT + Pragma: + - no-cache + RequestId: + - 286f6a79-e5a8-5d6b-9eea-25b501e89a2b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/4eda32c8-4a68-595c-adbb-896047b40c9c + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:08:20 GMT + Pragma: + - no-cache + RequestId: + - f1925d62-312a-5b7b-8dbc-85f95e4af6b5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_rm/test_rm_item_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DeploymentPlan].yaml new file mode 100644 index 000000000..4e5289b14 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DeploymentPlan].yaml @@ -0,0 +1,487 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:31 GMT + Pragma: + - no-cache + RequestId: + - 4387334b-e5a2-542b-bab5-8b08697b3ae4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:32 GMT + Pragma: + - no-cache + RequestId: + - 18ea7c9c-2321-536c-9554-4d3efd4f4cde + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:32 GMT + Pragma: + - no-cache + RequestId: + - fab631c8-f6bc-58c2-ae0e-027bd6060654 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/deploymentPlans + response: + body: + string: '{"id": "4c5d0cca-d470-58ae-9771-4dd2703b4687", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:35 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 557dabd5-4519-57df-b399-cdbd2d3158d6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:36 GMT + Pragma: + - no-cache + RequestId: + - 83564484-8601-5ee8-851d-c14120fb4a8b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": [{"id": "4c5d0cca-d470-58ae-9771-4dd2703b4687", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:36 GMT + Pragma: + - no-cache + RequestId: + - 7042e80d-0aa3-5c3e-9413-59b2d8772524 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items/4c5d0cca-d470-58ae-9771-4dd2703b4687 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:08:37 GMT + Pragma: + - no-cache + RequestId: + - ea63ca7a-e0ae-5d73-98fe-82fd6abde11a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:38 GMT + Pragma: + - no-cache + RequestId: + - 61ebe1e2-4cc1-5e07-8a37-e138fbaa2599 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:38 GMT + Pragma: + - no-cache + RequestId: + - 09809638-0632-50a0-ab1a-4e644d5774ec + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:38 GMT + Pragma: + - no-cache + RequestId: + - 85014728-9954-50af-813a-fc1033f2fb9d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_rm/test_rm_item_with_hard_delete_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_with_hard_delete_success[DeploymentPlan].yaml new file mode 100644 index 000000000..3e6071e1e --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_with_hard_delete_success[DeploymentPlan].yaml @@ -0,0 +1,487 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:47 GMT + Pragma: + - no-cache + RequestId: + - dab19638-8955-57be-a972-682d37373165 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:46 GMT + Pragma: + - no-cache + RequestId: + - 0db216d3-7941-5c12-b17d-c22429a475e1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:47 GMT + Pragma: + - no-cache + RequestId: + - 4d70b767-b0cf-5991-8e0b-88d82d22c8e5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/deploymentPlans + response: + body: + string: '{"id": "221c52e7-aca1-5ecc-aa30-2c0ffdbb1617", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:48 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 677d2708-832e-5e1e-bd24-9e1a52b925e0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:48 GMT + Pragma: + - no-cache + RequestId: + - e661e952-e4dc-5e98-8ecb-bc15e9d3e9c8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": [{"id": "221c52e7-aca1-5ecc-aa30-2c0ffdbb1617", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '225' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:49 GMT + Pragma: + - no-cache + RequestId: + - c780a936-7bdb-5c46-9d8f-425f358d36c2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items/221c52e7-aca1-5ecc-aa30-2c0ffdbb1617?hardDelete=true + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:08:49 GMT + Pragma: + - no-cache + RequestId: + - f060a6be-06c5-5a4a-9d6b-77b946cd9c40 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:51 GMT + Pragma: + - no-cache + RequestId: + - 262049c9-49a0-51f7-8e1b-fea3a5da5538 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:50 GMT + Pragma: + - no-cache + RequestId: + - 45c164a6-7370-5533-9c0b-0d950f72a3df + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:51 GMT + Pragma: + - no-cache + RequestId: + - ed65d6c9-7722-5e94-9840-f5a2a2f8fd41 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_rm/test_rm_item_with_hard_delete_without_force_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_with_hard_delete_without_force_success[DeploymentPlan].yaml new file mode 100644 index 000000000..8b94a9861 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_with_hard_delete_without_force_success[DeploymentPlan].yaml @@ -0,0 +1,487 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:52 GMT + Pragma: + - no-cache + RequestId: + - 8e0c79c6-aa1a-5e71-b30c-39ba41fc02b2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:52 GMT + Pragma: + - no-cache + RequestId: + - 981fc315-6a83-56aa-8bad-f0c2c5ef8ad2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:52 GMT + Pragma: + - no-cache + RequestId: + - a9a86d0a-b211-5832-b46b-efd25c0104ec + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/deploymentPlans + response: + body: + string: '{"id": "a5d988ac-effc-5e31-ba5d-ac66373b85f5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:54 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 756a179b-4457-5463-bdd2-2d16aabebdfa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:54 GMT + Pragma: + - no-cache + RequestId: + - 3e2ac720-946b-5e7d-bc18-d73b39315273 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": [{"id": "a5d988ac-effc-5e31-ba5d-ac66373b85f5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '227' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:54 GMT + Pragma: + - no-cache + RequestId: + - be43f931-a4f5-585f-a7d7-88175675fc4d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items/a5d988ac-effc-5e31-ba5d-ac66373b85f5?hardDelete=true + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:08:55 GMT + Pragma: + - no-cache + RequestId: + - 99096f28-af14-5250-8df1-4cfdd96f6f5b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:56 GMT + Pragma: + - no-cache + RequestId: + - 1bcae191-ca19-5ca9-8679-c93759950fc7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:56 GMT + Pragma: + - no-cache + RequestId: + - 62ac47df-ff1d-54c4-8243-d17da0785c75 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:56 GMT + Pragma: + - no-cache + RequestId: + - 5924ee61-9903-558b-bf43-d83f03dfd726 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_rm/test_rm_item_without_force_cancel_operation_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DeploymentPlan].yaml new file mode 100644 index 000000000..fddfbf786 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DeploymentPlan].yaml @@ -0,0 +1,296 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:44 GMT + Pragma: + - no-cache + RequestId: + - cd069d08-8adc-55af-892f-709333ff5ef2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:44 GMT + Pragma: + - no-cache + RequestId: + - 093ac5c3-3596-5d37-9396-2054b9228d42 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:44 GMT + Pragma: + - no-cache + RequestId: + - 4fed9d56-3ce5-522d-bbc8-4bbe04da5fab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/deploymentPlans + response: + body: + string: '{"id": "27e1a555-d7af-5d44-8e52-95103c4ed420", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:46 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 5ba24299-e3d4-5096-a027-a43dd13b9311 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:45 GMT + Pragma: + - no-cache + RequestId: + - 32dfcc37-bd6c-5cb1-bf48-3aea73448431 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": [{"id": "27e1a555-d7af-5d44-8e52-95103c4ed420", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:46 GMT + Pragma: + - no-cache + RequestId: + - 997847a9-4753-529f-85d5-34649534fff0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_rm/test_rm_item_without_force_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DeploymentPlan].yaml new file mode 100644 index 000000000..2637f96fc --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DeploymentPlan].yaml @@ -0,0 +1,487 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:38 GMT + Pragma: + - no-cache + RequestId: + - c2c33730-e513-5a6d-aee3-d89471bde7d9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:39 GMT + Pragma: + - no-cache + RequestId: + - a7534190-9569-59dd-8481-69956fbb77f8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:40 GMT + Pragma: + - no-cache + RequestId: + - 460c9298-c4eb-56b3-b85d-f5fff4da8106 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/deploymentPlans + response: + body: + string: '{"id": "708535bf-5ff3-55b3-a926-d6a10a59cb7d", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:41 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - e25b9108-f22a-5d5e-a84b-d38c1caa4d2e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:41 GMT + Pragma: + - no-cache + RequestId: + - 1814a5b7-6568-5e52-8590-ddb03ad21ae3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": [{"id": "708535bf-5ff3-55b3-a926-d6a10a59cb7d", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:41 GMT + Pragma: + - no-cache + RequestId: + - 8637aab5-039f-5511-b83f-b07309593e7f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items/708535bf-5ff3-55b3-a926-d6a10a59cb7d + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:08:43 GMT + Pragma: + - no-cache + RequestId: + - 5864fb2a-b3fb-5765-9ca9-5ec53350093f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4029' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:42 GMT + Pragma: + - no-cache + RequestId: + - bda5b7ad-a529-5273-b70f-41687d2380f4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:43 GMT + Pragma: + - no-cache + RequestId: + - be69a1f4-ad7f-5e57-8bc1-f6d312a94d45 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/c66334c9-b19d-4f3a-9e99-f6d9cf39e6dd/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:08:43 GMT + Pragma: + - no-cache + RequestId: + - 7bbfb199-f9dc-5751-8a7c-968e1dde01b1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_set/test_set_item_metadata_for_all_types_success[description-DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_set/test_set_item_metadata_for_all_types_success[description-DeploymentPlan].yaml new file mode 100644 index 000000000..066e29873 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_set/test_set_item_metadata_for_all_types_success[description-DeploymentPlan].yaml @@ -0,0 +1,740 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:50 GMT + Pragma: + - no-cache + RequestId: + - d09ed804-4a58-5277-b4af-a6e22fb68665 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:51 GMT + Pragma: + - no-cache + RequestId: + - 8fdc5954-ce4d-5995-88f2-e98744a75440 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:52 GMT + Pragma: + - no-cache + RequestId: + - c5d171d3-446d-5826-b788-7a7dcb10ec70 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans + response: + body: + string: '{"id": "64cbd045-7937-5cc9-9385-86c0bbc0dfa5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:53 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - cbcb3c38-96ea-57f4-bc34-2ba69d520b2d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:53 GMT + Pragma: + - no-cache + RequestId: + - 8402b94d-5d35-55fa-a1b1-b00af7af613a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "64cbd045-7937-5cc9-9385-86c0bbc0dfa5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:53 GMT + Pragma: + - no-cache + RequestId: + - f4cbb376-f4fd-5484-aac4-1baefb1e5331 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans/64cbd045-7937-5cc9-9385-86c0bbc0dfa5 + response: + body: + string: '{"id": "64cbd045-7937-5cc9-9385-86c0bbc0dfa5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:55 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - d07be4e7-02a3-531b-96dd-6001d229f3f3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "fabcli000002"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + method: PATCH + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans/64cbd045-7937-5cc9-9385-86c0bbc0dfa5 + response: + body: + string: '{"id": "64cbd045-7937-5cc9-9385-86c0bbc0dfa5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "fabcli000002", "workspaceId": + "2c5d142c-9484-4310-b579-10317d5f9715", "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:55 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 80ac4d04-1896-579e-aa0f-fcfde675c9fc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:55 GMT + Pragma: + - no-cache + RequestId: + - 25d324a2-49e9-5b96-9992-d1d148d432b1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "64cbd045-7937-5cc9-9385-86c0bbc0dfa5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "fabcli000002", "workspaceId": + "2c5d142c-9484-4310-b579-10317d5f9715", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '191' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:56 GMT + Pragma: + - no-cache + RequestId: + - 1a6bf2f6-d2a8-56d2-8cef-33eaabf77d81 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans/64cbd045-7937-5cc9-9385-86c0bbc0dfa5 + response: + body: + string: '{"id": "64cbd045-7937-5cc9-9385-86c0bbc0dfa5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "fabcli000002", "workspaceId": + "2c5d142c-9484-4310-b579-10317d5f9715", "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:56 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 8b082cf1-91cc-59c4-824f-f26c779ae6d8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items/64cbd045-7937-5cc9-9385-86c0bbc0dfa5/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:56 GMT + Pragma: + - no-cache + RequestId: + - ea75a69d-1e8e-5a62-b150-5de858019a7c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:57 GMT + Pragma: + - no-cache + RequestId: + - 606d336f-5b26-5c45-8bc6-515774cb9c7a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "64cbd045-7937-5cc9-9385-86c0bbc0dfa5", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "fabcli000002", "workspaceId": + "2c5d142c-9484-4310-b579-10317d5f9715", "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '191' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:57 GMT + Pragma: + - no-cache + RequestId: + - 9b11657a-e737-5e93-ad08-ec6df48aacb9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items/64cbd045-7937-5cc9-9385-86c0bbc0dfa5 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:03:58 GMT + Pragma: + - no-cache + RequestId: + - 52b39280-6262-52b2-ad4f-388abdf3ce3e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_set/test_set_item_metadata_for_all_types_success[displayName-DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_set/test_set_item_metadata_for_all_types_success[displayName-DeploymentPlan].yaml new file mode 100644 index 000000000..fb365817d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_set/test_set_item_metadata_for_all_types_success[displayName-DeploymentPlan].yaml @@ -0,0 +1,1088 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:59 GMT + Pragma: + - no-cache + RequestId: + - fb4ec4b3-2330-558e-b47e-886873737a86 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:59 GMT + Pragma: + - no-cache + RequestId: + - 94bd7bfa-4fb6-5fe4-a94f-60e95e5c5f8b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:03:59 GMT + Pragma: + - no-cache + RequestId: + - 9413ed0b-0828-5ae9-9e0c-c3a8c0d7f853 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans + response: + body: + string: '{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:01 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 7b251936-0665-5440-ace2-841d0a1b4889 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:01 GMT + Pragma: + - no-cache + RequestId: + - 0ea41ab8-4b2f-5645-ae74-890fdcc22d03 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:01 GMT + Pragma: + - no-cache + RequestId: + - 4d87e010-771a-5caf-bbbe-d5b4ae34f231 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans/e0840c92-3fda-5885-9a30-799065dde584 + response: + body: + string: '{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:01 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - e1127860-e011-52dc-8ba7-7fc3b479063d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + method: PATCH + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans/e0840c92-3fda-5885-9a30-799065dde584 + response: + body: + string: '{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:02 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 27e16bbb-f3c6-5a7e-a645-cf37bb3eae35 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:02 GMT + Pragma: + - no-cache + RequestId: + - 4f5759ba-e9d2-5a1f-951f-698de0f4cf7d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:03 GMT + Pragma: + - no-cache + RequestId: + - 1b725d75-5043-5566-8f88-75456fe375e7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:02 GMT + Pragma: + - no-cache + RequestId: + - d3dcfa2d-0ad3-5a47-af00-da3a037b279c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:03 GMT + Pragma: + - no-cache + RequestId: + - 04b3bf7a-d258-5102-8af2-5c0611eb163c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:04 GMT + Pragma: + - no-cache + RequestId: + - c0b11a38-9816-5d5d-91aa-eac7971ae01a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans/e0840c92-3fda-5885-9a30-799065dde584 + response: + body: + string: '{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:04 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 8e53ae17-317e-564b-b5e2-5cc8fd5d6a7d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items/e0840c92-3fda-5885-9a30-799065dde584/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:04 GMT + Pragma: + - no-cache + RequestId: + - 060605c8-7504-5b76-b292-d52ae63e9d35 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:05 GMT + Pragma: + - no-cache + RequestId: + - 0a4ef770-219e-5161-af58-4a91b5551c62 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:05 GMT + Pragma: + - no-cache + RequestId: + - 5bb87f62-5142-5d8a-9acc-717c7dd34634 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans/e0840c92-3fda-5885-9a30-799065dde584 + response: + body: + string: '{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000002", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:05 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 5cddea43-983b-5695-9ce8-56cba2a06f61 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + method: PATCH + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/deploymentPlans/e0840c92-3fda-5885-9a30-799065dde584 + response: + body: + string: '{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:05 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - e5285dae-9f9d-52e3-a16b-d62562dbfb84 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "7e31fde5-d4f9-5a72-a17f-8d1f8245eb2f", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "2c5d142c-9484-4310-b579-10317d5f9715", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4030' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:06 GMT + Pragma: + - no-cache + RequestId: + - ee8d5cf7-380c-5de5-ac83-8191dc6bcaee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items + response: + body: + string: '{"value": [{"id": "e0840c92-3fda-5885-9a30-799065dde584", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "2c5d142c-9484-4310-b579-10317d5f9715", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 23 Nov 2026 13:04:05 GMT + Pragma: + - no-cache + RequestId: + - d2fe6bf4-fa44-552a-a0a8-74b7ae18d648 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/2c5d142c-9484-4310-b579-10317d5f9715/items/e0840c92-3fda-5885-9a30-799065dde584 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Mon, 23 Nov 2026 13:04:06 GMT + Pragma: + - no-cache + RequestId: + - 1aade9d0-a9ec-59dc-9a4a-775ea05ed74d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 From 8f61829748dff317d60ca53aa1ff214950d1fffa Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Tue, 24 Nov 2026 11:45:20 +0000 Subject: [PATCH 6/7] support open cmd --- src/fabric_cli/core/fab_types.py | 1 + .../test_commands/test_open/class_setup.yaml | 115 +-- ...plan_success[fabric-fabric-developer].yaml | 716 ++++++++++++++++++ ...oyment_plan_success[powerbi-power-bi].yaml | 716 ++++++++++++++++++ .../test_open/test_open_notebook_success.yaml | 488 +++++------- .../test_open_workspace_success.yaml | 113 +-- ...en_workspace_when_claims_none_success.yaml | 113 +-- ...ce_without_query_param_rename_success.yaml | 113 +-- tests/test_commands/test_open.py | 34 +- 9 files changed, 1880 insertions(+), 529 deletions(-) create mode 100644 tests/test_commands/recordings/test_commands/test_open/test_open_deployment_plan_success[fabric-fabric-developer].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_open/test_open_deployment_plan_success[powerbi-power-bi].yaml diff --git a/src/fabric_cli/core/fab_types.py b/src/fabric_cli/core/fab_types.py index ed55718f2..a64432026 100644 --- a/src/fabric_cli/core/fab_types.py +++ b/src/fabric_cli/core/fab_types.py @@ -573,6 +573,7 @@ class MirroredDatabaseFolders(Enum): ItemType.DATAMART: "datamarts", ItemType.DATA_BUILD_TOOL_JOB: "dbtitems", ItemType.DATA_PIPELINE: "pipelines", + ItemType.DEPLOYMENT_PLAN: "deployment-plans", ItemType.DIGITAL_TWIN_BUILDER: "digital-twin-builder", ItemType.DIGITAL_TWIN_BUILDER_FLOW: "digital-twin-builder-flow", ItemType.ENVIRONMENT: "sparkenvironments", diff --git a/tests/test_commands/recordings/test_commands/test_open/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_open/class_setup.yaml index 633712e64..2fe9be637 100644 --- a/tests/test_commands/recordings/test_commands/test_open/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_open/class_setup.yaml @@ -11,30 +11,31 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (None; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.9.0 (None; Linux/6.18.58.1-microsoft-standard-WSL2; Python/3.12.15) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '323' + - '3993' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:39 GMT + - Tue, 24 Nov 2026 11:19:11 GMT Pragma: - no-cache RequestId: - - db93dbd5-c47f-4a61-b29d-812143b3da9a + - 00000000-0000-0000-0000-000000000102 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -42,7 +43,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -60,30 +61,31 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (None; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.9.0 (None; Linux/6.18.58.1-microsoft-standard-WSL2; Python/3.12.15) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '323' + - '3993' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:39 GMT + - Tue, 24 Nov 2026 11:19:11 GMT Pragma: - no-cache RequestId: - - b42170cf-c7ac-4c22-8dde-e029ef6256aa + - 00000000-0000-0000-0000-000000000103 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -91,7 +93,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -109,31 +111,31 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (None; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.9.0 (None; Linux/6.18.58.1-microsoft-standard-WSL2; Python/3.12.15) method: GET uri: https://api.fabric.microsoft.com/v1/capacities response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F16", "region": "West Europe", "state": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '456' + - '593' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:44 GMT + - Tue, 24 Nov 2026 11:19:16 GMT Pragma: - no-cache RequestId: - - 34993638-b682-48c3-9e0a-5ecd0021f731 + - 00000000-0000-0000-0000-000000000104 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -141,14 +143,15 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: code: 200 message: OK - request: - body: '{"displayName": "fabriccli_WorkspacePerTestclass_000001", "capacityId": "00000000-0000-0000-0000-000000000004"}' + body: '{"displayName": "fabriccli_WorkspacePerTestclass_000001", "capacityId": + "00000000-0000-0000-0000-000000000004"}' headers: Accept: - '*/*' @@ -158,35 +161,36 @@ interactions: - keep-alive Content-Length: - '124' - Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (None; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.9.0 (None; Linux/6.18.58.1-microsoft-standard-WSL2; Python/3.12.15) method: POST uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "bbebcd29-98e4-4310-b209-af865aae93ea", "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' + string: '{"id": "00000000-0000-0000-0000-000000000105", "displayName": "fabriccli_WorkspacePerTestclass_000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}' headers: Access-Control-Expose-Headers: - - RequestId,Location + - RequestId,Location,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '186' + - '220' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:53 GMT + - Tue, 24 Nov 2026 11:19:24 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea + - https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105 Pragma: - no-cache RequestId: - - 113cebc6-6f47-4937-9a5e-ff24bf1d9efa + - 00000000-0000-0000-0000-000000000106 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -194,7 +198,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -212,31 +216,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (open; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.9.0 (open; Linux/6.18.58.1-microsoft-standard-WSL2; Python/3.12.15) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:02 GMT + - Tue, 24 Nov 2026 11:20:06 GMT Pragma: - no-cache RequestId: - - 19f31818-16aa-4916-b209-592871a861f8 + - 00000000-0000-0000-0000-000000000107 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -244,7 +251,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -262,15 +269,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (open; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.9.0 (open; Linux/6.18.58.1-microsoft-standard-WSL2; Python/3.12.15) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items response: body: string: '{"value": []}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -280,11 +287,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:02 GMT + - Tue, 24 Nov 2026 11:20:06 GMT Pragma: - no-cache RequestId: - - 638b158e-0c01-48fe-bdfa-9a727ad397a8 + - 00000000-0000-0000-0000-000000000108 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -292,7 +299,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -312,15 +319,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (open; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.9.0 (open; Linux/6.18.58.1-microsoft-standard-WSL2; Python/3.12.15) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105 response: body: string: '' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -330,11 +337,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 03 Sep 2025 06:56:03 GMT + - Tue, 24 Nov 2026 11:20:07 GMT Pragma: - no-cache RequestId: - - 701dbc2a-6baa-45de-8e26-e577e8339772 + - 00000000-0000-0000-0000-000000000109 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -342,7 +349,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: diff --git a/tests/test_commands/recordings/test_commands/test_open/test_open_deployment_plan_success[fabric-fabric-developer].yaml b/tests/test_commands/recordings/test_commands/test_open/test_open_deployment_plan_success[fabric-fabric-developer].yaml new file mode 100644 index 000000000..bb0d42d26 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_open/test_open_deployment_plan_success[fabric-fabric-developer].yaml @@ -0,0 +1,716 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4028' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:53 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000110 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:53 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000111 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:53 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000112 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.9.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/deploymentPlans + response: + body: + string: '{"id": "00000000-0000-0000-0000-000000000113", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:56 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000114 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4028' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:55 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000115 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000113", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:57 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000116 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/deploymentPlans/00000000-0000-0000-0000-000000000113 + response: + body: + string: '{"id": "00000000-0000-0000-0000-000000000113", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:57 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000117 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000113/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:58 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000118 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000113/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:57 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000119 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4028' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:58 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000120 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000113", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:59 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000121 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4028' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:58 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000122 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000113", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:19:59 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000123 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000113 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Tue, 24 Nov 2026 11:19:59 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000124 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_open/test_open_deployment_plan_success[powerbi-power-bi].yaml b/tests/test_commands/recordings/test_commands/test_open/test_open_deployment_plan_success[powerbi-power-bi].yaml new file mode 100644 index 000000000..9aff56932 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_open/test_open_deployment_plan_success[powerbi-power-bi].yaml @@ -0,0 +1,716 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4028' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:00 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000125 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:01 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000126 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:00 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000127 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "DeploymentPlan", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.9.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/deploymentPlans + response: + body: + string: '{"id": "00000000-0000-0000-0000-000000000128", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:03 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000129 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4028' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:02 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000130 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000128", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:03 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000131 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/deploymentPlans/00000000-0000-0000-0000-000000000128 + response: + body: + string: '{"id": "00000000-0000-0000-0000-000000000128", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:03 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000132 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000128/getDefinition + response: + body: + string: '{"definition": {"parts": [{"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIkRlcGxveW1lbnRQbGFuIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:03 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000133 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000128/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:04 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000134 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4028' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:04 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000135 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000128", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:05 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000136 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '4028' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:05 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000137 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000128", "type": "DeploymentPlan", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 24 Nov 2026 11:20:05 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000138 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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.9.0 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000128 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId,Date + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Tue, 24 Nov 2026 11:20:06 GMT + Pragma: + - no-cache + RequestId: + - 00000000-0000-0000-0000-000000000139 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-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_open/test_open_notebook_success.yaml b/tests/test_commands/recordings/test_commands/test_open/test_open_notebook_success.yaml index 24487c20b..7a5e74dfa 100644 --- a/tests/test_commands/recordings/test_commands/test_open/test_open_notebook_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_open/test_open_notebook_success.yaml @@ -11,31 +11,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:57 GMT + - Tue, 24 Nov 2026 11:19:36 GMT Pragma: - no-cache RequestId: - - aa7fc922-a426-435f-a883-276a5894be80 + - 00000000-0000-0000-0000-000000000140 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -43,7 +46,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -61,15 +64,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items response: body: string: '{"value": []}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -79,11 +82,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:57 GMT + - Tue, 24 Nov 2026 11:19:37 GMT Pragma: - no-cache RequestId: - - 08fbb1ac-31a3-4bf1-a547-5d09a8d90bfa + - 00000000-0000-0000-0000-000000000141 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -91,7 +94,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -109,15 +112,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items response: body: string: '{"value": []}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -127,11 +130,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:57 GMT + - Tue, 24 Nov 2026 11:19:37 GMT Pragma: - no-cache RequestId: - - 6dc97be3-f08a-4957-bdc4-80ab5987debc + - 00000000-0000-0000-0000-000000000142 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -139,14 +142,16 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: code: 200 message: OK - request: - body: '{"displayName": "fabcli000001", "type": "Notebook", "folderId": null, "definition": {"parts": [{"path": "notebook-content.py", "payload": "IyBGYWJyaWMgbm90ZWJvb2sgc291cmNlCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAia2VybmVsX2luZm8iOiB7CiMgTUVUQSAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgojIE1FVEEgICB9LAojIE1FVEEgICAiZGVwZW5kZW5jaWVzIjoge30KIyBNRVRBIH0KCiMgQ0VMTCAqKioqKioqKioqKioqKioqKioqKgoKIyBXZWxjb21lIHRvIHlvdXIgbmV3IG5vdGVib29rCiMgVHlwZSBoZXJlIGluIHRoZSBjZWxsIGVkaXRvciB0byBhZGQgY29kZSEKCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAibGFuZ3VhZ2UiOiAicHl0aG9uIiwKIyBNRVRBICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKIyBNRVRBIH0K", "payloadType": "InlineBase64"}]}}' + body: '{"displayName": "fabcli000001", "type": "Notebook", "folderId": null, "definition": + {"parts": [{"path": "notebook-content.py", "payload": "IyBGYWJyaWMgbm90ZWJvb2sgc291cmNlCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAia2VybmVsX2luZm8iOiB7CiMgTUVUQSAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgojIE1FVEEgICB9LAojIE1FVEEgICAiZGVwZW5kZW5jaWVzIjoge30KIyBNRVRBIH0KCiMgQ0VMTCAqKioqKioqKioqKioqKioqKioqKgoKIyBXZWxjb21lIHRvIHlvdXIgbmV3IG5vdGVib29rCiMgVHlwZSBoZXJlIGluIHRoZSBjZWxsIGVkaXRvciB0byBhZGQgY29kZSEKCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAibGFuZ3VhZ2UiOiAicHl0aG9uIiwKIyBNRVRBICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKIyBNRVRBIH0K", + "payloadType": "InlineBase64"}]}}' headers: Accept: - '*/*' @@ -156,19 +161,18 @@ interactions: - keep-alive Content-Length: - '731' - Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/notebooks + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/notebooks response: body: string: 'null' headers: Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,ETag,x-ms-operation-id + - RequestId,Location,Retry-After,ETag,x-ms-operation-id,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -178,15 +182,15 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:58 GMT + - Tue, 24 Nov 2026 11:19:39 GMT ETag: - '""' Location: - - https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/8e885180-ba69-46f6-893d-65aed4eaf632 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/00000000-0000-0000-0000-000000000143 Pragma: - no-cache RequestId: - - c340e70e-cc0d-4cee-8e38-1e02e1e90f27 + - 00000000-0000-0000-0000-000000000144 Retry-After: - '20' Strict-Transport-Security: @@ -196,11 +200,11 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' x-ms-operation-id: - - 8e885180-ba69-46f6-893d-65aed4eaf632 + - 00000000-0000-0000-0000-000000000143 status: code: 202 message: Accepted @@ -216,35 +220,33 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/8e885180-ba69-46f6-893d-65aed4eaf632 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/00000000-0000-0000-0000-000000000143 response: body: - string: '{"status": "Running", "createdTimeUtc": "2025-09-03T06:55:58.9556151", - "lastUpdatedTimeUtc": "2025-09-03T06:55:58.9556151", "percentComplete": null, - "error": null}' + string: '{"status": "Succeeded", "createdTimeUtc": "2026-11-24T11:19:38.7248635", + "lastUpdatedTimeUtc": "2026-11-24T11:19:40.4124945", "percentComplete": 100, + "error": null, "blobInfoId": null, "resultContentType": null}' headers: Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id + - RequestId,Location,x-ms-operation-id,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '120' + - '157' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:59 GMT + - Tue, 24 Nov 2026 11:19:41 GMT Location: - - https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/8e885180-ba69-46f6-893d-65aed4eaf632 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/00000000-0000-0000-0000-000000000143/result Pragma: - no-cache RequestId: - - f95a8066-32ed-464d-9421-3f70b8c7aca7 - Retry-After: - - '20' + - 00000000-0000-0000-0000-000000000145 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -252,7 +254,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 8e885180-ba69-46f6-893d-65aed4eaf632 + - 00000000-0000-0000-0000-000000000143 status: code: 200 message: OK @@ -268,131 +270,28 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/8e885180-ba69-46f6-893d-65aed4eaf632 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/00000000-0000-0000-0000-000000000143/result response: body: - string: '{"status": "Running", "createdTimeUtc": "2025-09-03T06:55:58.9556151", - "lastUpdatedTimeUtc": "2025-09-03T06:55:58.9556151", "percentComplete": null, - "error": null}' + string: '{"id": "00000000-0000-0000-0000-000000000146", "type": "Notebook", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105"}' headers: Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip - Content-Length: - - '120' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 06:55:59 GMT - Location: - - https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/8e885180-ba69-46f6-893d-65aed4eaf632 - Pragma: - - no-cache - RequestId: - - 7d697252-0a15-4831-8a71-1238ca3fca0e - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - 8e885180-ba69-46f6-893d-65aed4eaf632 - 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.0.0 - method: GET - uri: https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/8e885180-ba69-46f6-893d-65aed4eaf632 - response: - body: - string: '{"status": "Succeeded", "createdTimeUtc": "2025-09-03T06:55:58.9556151", - "lastUpdatedTimeUtc": "2025-09-03T06:56:00.5493883", "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: - - Wed, 03 Sep 2025 06:56:00 GMT - Location: - - https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/8e885180-ba69-46f6-893d-65aed4eaf632/result + - Tue, 24 Nov 2026 11:19:42 GMT Pragma: - no-cache RequestId: - - c3b86733-45b9-47ad-bdbf-15f2db8cc7a8 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - 8e885180-ba69-46f6-893d-65aed4eaf632 - 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.0.0 - method: GET - uri: https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/8e885180-ba69-46f6-893d-65aed4eaf632/result - response: - body: - string: '{"id": "17901f30-f747-4574-9a3e-5e5a18dd2325", "type": "Notebook", - "displayName": "fabcli000001", "workspaceId": - "bbebcd29-98e4-4310-b209-af865aae93ea"}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Wed, 03 Sep 2025 06:56:00 GMT - Pragma: - - no-cache - RequestId: - - debe1c19-e911-40f7-92f9-cd0051e1831f + - 00000000-0000-0000-0000-000000000147 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -416,31 +315,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:00 GMT + - Tue, 24 Nov 2026 11:19:42 GMT Pragma: - no-cache RequestId: - - ce5c09ba-efdc-43d9-925d-40cc7cbbec1c + - 00000000-0000-0000-0000-000000000148 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -448,7 +350,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -466,31 +368,31 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items response: body: - string: '{"value": [{"id": "17901f30-f747-4574-9a3e-5e5a18dd2325", "type": "Notebook", - "displayName": "fabcli000001", "workspaceId": - "bbebcd29-98e4-4310-b209-af865aae93ea"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000146", "type": "Notebook", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '177' + - '176' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:00 GMT + - Tue, 24 Nov 2026 11:19:43 GMT Pragma: - no-cache RequestId: - - 224811e6-56e9-4c69-8ad1-2ad8c708db36 + - 00000000-0000-0000-0000-000000000149 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -498,7 +400,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -516,17 +418,17 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/notebooks/17901f30-f747-4574-9a3e-5e5a18dd2325 + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/notebooks/00000000-0000-0000-0000-000000000146 response: body: - string: '{"id": "17901f30-f747-4574-9a3e-5e5a18dd2325", "type": "Notebook", - "displayName": "fabcli000001", "workspaceId": - "bbebcd29-98e4-4310-b209-af865aae93ea"}' + string: '{"id": "00000000-0000-0000-0000-000000000146", "type": "Notebook", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}' headers: Access-Control-Expose-Headers: - - RequestId,ETag + - RequestId,ETag,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -536,13 +438,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:00 GMT + - Tue, 24 Nov 2026 11:19:45 GMT ETag: - '""' Pragma: - no-cache RequestId: - - cba0cdeb-c650-4aa6-abb8-e0c5c416264e + - 00000000-0000-0000-0000-000000000150 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -550,7 +452,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -570,15 +472,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items/17901f30-f747-4574-9a3e-5e5a18dd2325/getDefinition?format=ipynb + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000146/getDefinition?format=ipynb response: body: string: 'null' headers: Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id + - RequestId,Location,Retry-After,x-ms-operation-id,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -588,13 +490,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:00 GMT + - Tue, 24 Nov 2026 11:19:44 GMT Location: - - https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/537f59be-fcde-42fd-b5ec-fa1a34e89ed1 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/00000000-0000-0000-0000-000000000151 Pragma: - no-cache RequestId: - - 81581ccf-4e74-46a4-8f63-a4059c76468f + - 00000000-0000-0000-0000-000000000152 Retry-After: - '20' Strict-Transport-Security: @@ -604,11 +506,11 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' x-ms-operation-id: - - 537f59be-fcde-42fd-b5ec-fa1a34e89ed1 + - 00000000-0000-0000-0000-000000000151 status: code: 202 message: Accepted @@ -624,85 +526,33 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/537f59be-fcde-42fd-b5ec-fa1a34e89ed1 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2025-09-03T06:56:01.6595647", - "lastUpdatedTimeUtc": "2025-09-03T06:56:01.6595647", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 06:56:00 GMT - Location: - - https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/537f59be-fcde-42fd-b5ec-fa1a34e89ed1 - Pragma: - - no-cache - RequestId: - - e37077ed-a340-4e10-8d6d-3f66fd9877fc - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - 537f59be-fcde-42fd-b5ec-fa1a34e89ed1 - 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.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/537f59be-fcde-42fd-b5ec-fa1a34e89ed1 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/00000000-0000-0000-0000-000000000151 response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2025-09-03T06:56:01.6595647", - "lastUpdatedTimeUtc": "2025-09-03T06:56:01.893943", "percentComplete": 100, - "error": null}' + string: '{"status": "Succeeded", "createdTimeUtc": "2026-11-24T11:19:45.430959", + "lastUpdatedTimeUtc": "2026-11-24T11:19:45.807681", "percentComplete": 100, + "error": null, "blobInfoId": null, "resultContentType": null}' headers: Access-Control-Expose-Headers: - - RequestId,Location,x-ms-operation-id + - RequestId,Location,x-ms-operation-id,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '129' + - '154' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:01 GMT + - Tue, 24 Nov 2026 11:19:48 GMT Location: - - https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/537f59be-fcde-42fd-b5ec-fa1a34e89ed1/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/00000000-0000-0000-0000-000000000151/result Pragma: - no-cache RequestId: - - 1980f345-8d70-41ca-b7e6-90b33bb52398 + - 00000000-0000-0000-0000-000000000153 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -710,7 +560,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 537f59be-fcde-42fd-b5ec-fa1a34e89ed1 + - 00000000-0000-0000-0000-000000000151 status: code: 200 message: OK @@ -726,18 +576,18 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://wabi-west-europe-redirect.analysis.windows.net/v1/operations/537f59be-fcde-42fd-b5ec-fa1a34e89ed1/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/00000000-0000-0000-0000-000000000151/result response: body: string: '{"definition": {"parts": [{"path": "notebook-content.ipynb", "payload": - "eyJuYmZvcm1hdCI6NCwibmJmb3JtYXRfbWlub3IiOjUsIm1ldGFkYXRhIjp7Imxhbmd1YWdlX2luZm8iOnsibmFtZSI6InB5dGhvbiJ9LCJrZXJuZWxfaW5mbyI6eyJuYW1lIjoic3luYXBzZV9weXNwYXJrIiwianVweXRlcl9rZXJuZWxfbmFtZSI6bnVsbH0sImEzNjVDb21wdXRlT3B0aW9ucyI6bnVsbCwic2Vzc2lvbktlZXBBbGl2ZVRpbWVvdXQiOjAsImRlcGVuZGVuY2llcyI6eyJsYWtlaG91c2UiOm51bGx9fSwiY2VsbHMiOlt7ImNlbGxfdHlwZSI6ImNvZGUiLCJtZXRhZGF0YSI6eyJtaWNyb3NvZnQiOnsibGFuZ3VhZ2UiOiJweXRob24iLCJsYW5ndWFnZV9ncm91cCI6InN5bmFwc2VfcHlzcGFyayJ9fSwic291cmNlIjpbIiMgV2VsY29tZSB0byB5b3VyIG5ldyBub3RlYm9va1xuIiwiIyBUeXBlIGhlcmUgaW4gdGhlIGNlbGwgZWRpdG9yIHRvIGFkZCBjb2RlIVxuIl0sIm91dHB1dHMiOltdfV19", - "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIk5vdGVib29rIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiLAogICAgImRlc2NyaXB0aW9uIjogIkNyZWF0ZWQgYnkgZmFiIgogIH0sCiAgImNvbmZpZyI6IHsKICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICB9Cn0=", + "eyJuYmZvcm1hdCI6NCwibmJmb3JtYXRfbWlub3IiOjUsIm1ldGFkYXRhIjp7ImRlcGVuZGVuY2llcyI6eyJsYWtlaG91c2UiOm51bGx9LCJsYW5ndWFnZV9pbmZvIjp7Im5hbWUiOiJweXRob24ifSwia2VybmVsX2luZm8iOnsibmFtZSI6InN5bmFwc2VfcHlzcGFyayIsImp1cHl0ZXJfa2VybmVsX25hbWUiOm51bGx9LCJhMzY1Q29tcHV0ZU9wdGlvbnMiOm51bGwsInNlc3Npb25LZWVwQWxpdmVUaW1lb3V0IjowfSwiY2VsbHMiOlt7ImNlbGxfdHlwZSI6ImNvZGUiLCJtZXRhZGF0YSI6eyJtaWNyb3NvZnQiOnsibGFuZ3VhZ2UiOiJweXRob24iLCJsYW5ndWFnZV9ncm91cCI6InN5bmFwc2VfcHlzcGFyayJ9fSwic291cmNlIjpbIiMgV2VsY29tZSB0byB5b3VyIG5ldyBub3RlYm9va1xuIiwiIyBUeXBlIGhlcmUgaW4gdGhlIGNlbGwgZWRpdG9yIHRvIGFkZCBjb2RlIVxuIl0sIm91dHB1dHMiOltdfV19", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIk5vdGVib29rIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", "payloadType": "InlineBase64"}]}}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -745,11 +595,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 03 Sep 2025 06:56:01 GMT + - Tue, 24 Nov 2026 11:19:48 GMT Pragma: - no-cache RequestId: - - 3b78a5b6-9a14-4123-8543-0c1cda1ce6ec + - 00000000-0000-0000-0000-000000000154 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -773,15 +623,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items/17901f30-f747-4574-9a3e-5e5a18dd2325/connections + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000146/connections response: body: string: '{"value": []}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -791,11 +641,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:01 GMT + - Tue, 24 Nov 2026 11:19:49 GMT Pragma: - no-cache RequestId: - - 1d9efc27-205a-429c-9b28-7cee7d80ee47 + - 00000000-0000-0000-0000-000000000155 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -803,7 +653,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -821,15 +671,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items/17901f30-f747-4574-9a3e-5e5a18dd2325/jobs/RunNotebook/schedules + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000146/jobs/RunNotebook/schedules response: body: string: '{"value": []}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -839,11 +689,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:01 GMT + - Tue, 24 Nov 2026 11:19:49 GMT Pragma: - no-cache RequestId: - - 7bd94af4-25fa-47af-853e-c142d10fe1ca + - 00000000-0000-0000-0000-000000000156 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -851,7 +701,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -869,31 +719,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:01 GMT + - Tue, 24 Nov 2026 11:19:50 GMT Pragma: - no-cache RequestId: - - 98b7ebf4-e1c1-4281-bdc0-bedf68aade27 + - 00000000-0000-0000-0000-000000000157 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -901,7 +754,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -919,31 +772,31 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items response: body: - string: '{"value": [{"id": "17901f30-f747-4574-9a3e-5e5a18dd2325", "type": "Notebook", - "displayName": "fabcli000001", "workspaceId": - "bbebcd29-98e4-4310-b209-af865aae93ea"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000146", "type": "Notebook", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '177' + - '176' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:01 GMT + - Tue, 24 Nov 2026 11:19:51 GMT Pragma: - no-cache RequestId: - - 4578947b-a7ed-4585-80ba-28eeaa014e4f + - 00000000-0000-0000-0000-000000000158 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -951,7 +804,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -969,31 +822,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:02 GMT + - Tue, 24 Nov 2026 11:19:51 GMT Pragma: - no-cache RequestId: - - a585e401-1592-4216-9ace-5a5139b089b2 + - 00000000-0000-0000-0000-000000000159 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1001,7 +857,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -1019,31 +875,31 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items response: body: - string: '{"value": [{"id": "17901f30-f747-4574-9a3e-5e5a18dd2325", "type": "Notebook", - "displayName": "fabcli000001", "workspaceId": - "bbebcd29-98e4-4310-b209-af865aae93ea"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000146", "type": "Notebook", + "displayName": "fabcli000001", "description": "", "workspaceId": "00000000-0000-0000-0000-000000000105", + "logicalId": null}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '177' + - '176' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:02 GMT + - Tue, 24 Nov 2026 11:19:52 GMT Pragma: - no-cache RequestId: - - 9ba4a355-d7f2-4024-b2d2-3cff0ebd12ce + - 00000000-0000-0000-0000-000000000160 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1051,7 +907,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -1071,15 +927,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/items/17901f30-f747-4574-9a3e-5e5a18dd2325 + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/items/00000000-0000-0000-0000-000000000146 response: body: string: '' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -1089,11 +945,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 03 Sep 2025 06:56:03 GMT + - Tue, 24 Nov 2026 11:19:52 GMT Pragma: - no-cache RequestId: - - 87effbf7-6fc7-4661-887a-2d61a7829979 + - 00000000-0000-0000-0000-000000000161 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1101,7 +957,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: diff --git a/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_success.yaml b/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_success.yaml index d811a727a..976c096fa 100644 --- a/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_success.yaml @@ -11,31 +11,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:53 GMT + - Tue, 24 Nov 2026 11:19:25 GMT Pragma: - no-cache RequestId: - - 40afcf93-38a6-4744-81b7-a73061ab3ab9 + - 00000000-0000-0000-0000-000000000162 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -43,7 +46,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -61,32 +64,33 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105 response: body: - string: '{"id": "bbebcd29-98e4-4310-b209-af865aae93ea", "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", - "capacityRegion": "West Europe", "oneLakeEndpoints": {"blobEndpoint": "https://westeurope-onelake.blob.fabric.microsoft.com", - "dfsEndpoint": "https://westeurope-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": - "Completed"}' + string: '{"id": "00000000-0000-0000-0000-000000000105", "displayName": "fabriccli_WorkspacePerTestclass_000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", + "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": + "Completed", "licensingInfo": {"licensingMode": "Capacity"}}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '296' + - '309' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:53 GMT + - Tue, 24 Nov 2026 11:19:26 GMT Pragma: - no-cache RequestId: - - e5c2c711-d37d-4312-a640-735d8256c1fb + - 00000000-0000-0000-0000-000000000163 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -94,7 +98,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -112,15 +116,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/managedPrivateEndpoints + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/managedPrivateEndpoints response: body: string: '{"value": []}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -130,11 +134,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:53 GMT + - Tue, 24 Nov 2026 11:19:26 GMT Pragma: - no-cache RequestId: - - ecad064a-f8cb-479b-96b7-78973a01d6d1 + - 00000000-0000-0000-0000-000000000164 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -142,7 +146,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -160,28 +164,30 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/spark/settings + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/spark/settings response: body: string: '{"automaticLog": {"enabled": true}, "highConcurrency": {"notebookInteractiveRunEnabled": true, "notebookPipelineRunEnabled": false}, "pool": {"customizeComputeEnabled": true, "defaultPool": {"name": "Starter Pool", "type": "Workspace", "id": "00000000-0000-0000-0000-000000000000"}, "starterPool": {"maxNodeCount": 10, "maxExecutors": 9}}, "environment": {"runtimeVersion": - "1.3"}, "job": {"conservativeJobAdmissionEnabled": false, "sessionTimeoutInMinutes": + "2.0"}, "job": {"conservativeJobAdmissionEnabled": false, "sessionTimeoutInMinutes": 20}}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,ETag,Date Content-Length: - '600' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:54 GMT + - Tue, 24 Nov 2026 11:19:28 GMT + ETag: + - '"default-v1"' RequestId: - - c11a5bae-ab30-43dd-8758-1aa671acda15 + - 00000000-0000-0000-0000-000000000165 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -189,7 +195,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -207,32 +213,32 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/roleAssignments + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/roleAssignments response: body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000001", "principal": - {"id": "00000000-0000-0000-0000-000000000001", "displayName": "Tenant Admin", - "type": "User", "userDetails": {"userPrincipalName": "mocked@admin_test_user"}}, + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000166", "principal": + {"id": "00000000-0000-0000-0000-000000000166", "displayName": "MSIT Cycle", + "type": "User", "userDetails": {"userPrincipalName": "unknown@mocked_user"}}, "role": "Admin"}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '180' + - '186' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:54 GMT + - Tue, 24 Nov 2026 11:19:28 GMT Pragma: - no-cache RequestId: - - d6234596-2510-4747-a0df-e4fbf66b11cf + - 00000000-0000-0000-0000-000000000167 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -240,7 +246,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -258,31 +264,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:55 GMT + - Tue, 24 Nov 2026 11:19:29 GMT Pragma: - no-cache RequestId: - - 41c0ce6d-21aa-4718-b203-5f55cee4f079 + - 00000000-0000-0000-0000-000000000168 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -290,7 +299,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: diff --git a/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_when_claims_none_success.yaml b/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_when_claims_none_success.yaml index a6567a7c2..499ecc487 100644 --- a/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_when_claims_none_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_when_claims_none_success.yaml @@ -11,31 +11,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:55 GMT + - Tue, 24 Nov 2026 11:19:33 GMT Pragma: - no-cache RequestId: - - fa7f1421-cb90-417b-9479-22c27b68e3cd + - 00000000-0000-0000-0000-000000000169 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -43,7 +46,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -61,32 +64,33 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105 response: body: - string: '{"id": "bbebcd29-98e4-4310-b209-af865aae93ea", "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", - "capacityRegion": "West Europe", "oneLakeEndpoints": {"blobEndpoint": "https://westeurope-onelake.blob.fabric.microsoft.com", - "dfsEndpoint": "https://westeurope-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": - "Completed"}' + string: '{"id": "00000000-0000-0000-0000-000000000105", "displayName": "fabriccli_WorkspacePerTestclass_000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", + "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": + "Completed", "licensingInfo": {"licensingMode": "Capacity"}}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '296' + - '309' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:56 GMT + - Tue, 24 Nov 2026 11:19:34 GMT Pragma: - no-cache RequestId: - - 664cd434-5186-4e40-a0f9-f2db4735c339 + - 00000000-0000-0000-0000-000000000170 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -94,7 +98,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -112,15 +116,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/managedPrivateEndpoints + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/managedPrivateEndpoints response: body: string: '{"value": []}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -130,11 +134,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:57 GMT + - Tue, 24 Nov 2026 11:19:35 GMT Pragma: - no-cache RequestId: - - 5053e1ed-faac-4757-9deb-68a4ac39ada6 + - 00000000-0000-0000-0000-000000000171 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -142,7 +146,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -160,30 +164,30 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/spark/settings + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/spark/settings response: body: string: '{"automaticLog": {"enabled": true}, "highConcurrency": {"notebookInteractiveRunEnabled": true, "notebookPipelineRunEnabled": false}, "pool": {"customizeComputeEnabled": true, "defaultPool": {"name": "Starter Pool", "type": "Workspace", "id": "00000000-0000-0000-0000-000000000000"}, "starterPool": {"maxNodeCount": 10, "maxExecutors": 9}}, "environment": {"runtimeVersion": - "1.3"}, "job": {"conservativeJobAdmissionEnabled": false, "sessionTimeoutInMinutes": + "2.0"}, "job": {"conservativeJobAdmissionEnabled": false, "sessionTimeoutInMinutes": 20}}' headers: Access-Control-Expose-Headers: - - RequestId,ETag + - RequestId,ETag,Date Content-Length: - '600' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:56 GMT + - Tue, 24 Nov 2026 11:19:35 GMT ETag: - - '"0x8DDEAB6EE11805C"' + - '"0x8DF4A1CCE12B520"' RequestId: - - f0e87ca2-ba69-4769-b297-20912d153efd + - 00000000-0000-0000-0000-000000000172 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -191,7 +195,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -209,32 +213,32 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/roleAssignments + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/roleAssignments response: body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000001", "principal": - {"id": "00000000-0000-0000-0000-000000000001", "displayName": "Tenant Admin", - "type": "User", "userDetails": {"userPrincipalName": "mocked@admin_test_user"}}, + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000166", "principal": + {"id": "00000000-0000-0000-0000-000000000166", "displayName": "MSIT Cycle", + "type": "User", "userDetails": {"userPrincipalName": "unknown@mocked_user"}}, "role": "Admin"}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '180' + - '186' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:56 GMT + - Tue, 24 Nov 2026 11:19:35 GMT Pragma: - no-cache RequestId: - - 3ccc1f2e-20a1-43fa-a8c4-0d971e8c61db + - 00000000-0000-0000-0000-000000000173 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -242,7 +246,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -260,31 +264,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:57 GMT + - Tue, 24 Nov 2026 11:19:36 GMT Pragma: - no-cache RequestId: - - afee87a4-2102-4f78-bf27-2f49e8455447 + - 00000000-0000-0000-0000-000000000174 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -292,7 +299,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: diff --git a/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_without_query_param_rename_success.yaml b/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_without_query_param_rename_success.yaml index 745611bd9..dc36ba96e 100644 --- a/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_without_query_param_rename_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_open/test_open_workspace_without_query_param_rename_success.yaml @@ -11,31 +11,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:55 GMT + - Tue, 24 Nov 2026 11:19:29 GMT Pragma: - no-cache RequestId: - - 0247d49d-b727-4819-85d6-babbe36b694a + - 00000000-0000-0000-0000-000000000175 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -43,7 +46,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -61,32 +64,33 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105 response: body: - string: '{"id": "bbebcd29-98e4-4310-b209-af865aae93ea", "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", - "capacityRegion": "West Europe", "oneLakeEndpoints": {"blobEndpoint": "https://westeurope-onelake.blob.fabric.microsoft.com", - "dfsEndpoint": "https://westeurope-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": - "Completed"}' + string: '{"id": "00000000-0000-0000-0000-000000000105", "displayName": "fabriccli_WorkspacePerTestclass_000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", + "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": + "Completed", "licensingInfo": {"licensingMode": "Capacity"}}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '296' + - '309' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:55 GMT + - Tue, 24 Nov 2026 11:19:30 GMT Pragma: - no-cache RequestId: - - 457d1272-c02d-4efa-9bc9-c72ffb51926f + - 00000000-0000-0000-0000-000000000176 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -94,7 +98,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -112,15 +116,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/managedPrivateEndpoints + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/managedPrivateEndpoints response: body: string: '{"value": []}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: @@ -130,11 +134,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:55 GMT + - Tue, 24 Nov 2026 11:19:30 GMT Pragma: - no-cache RequestId: - - 87ccd2fa-4741-420a-829e-29650a1ea812 + - 00000000-0000-0000-0000-000000000177 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -142,7 +146,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -160,30 +164,30 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/spark/settings + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/spark/settings response: body: string: '{"automaticLog": {"enabled": true}, "highConcurrency": {"notebookInteractiveRunEnabled": true, "notebookPipelineRunEnabled": false}, "pool": {"customizeComputeEnabled": true, "defaultPool": {"name": "Starter Pool", "type": "Workspace", "id": "00000000-0000-0000-0000-000000000000"}, "starterPool": {"maxNodeCount": 10, "maxExecutors": 9}}, "environment": {"runtimeVersion": - "1.3"}, "job": {"conservativeJobAdmissionEnabled": false, "sessionTimeoutInMinutes": + "2.0"}, "job": {"conservativeJobAdmissionEnabled": false, "sessionTimeoutInMinutes": 20}}' headers: Access-Control-Expose-Headers: - - RequestId,ETag + - RequestId,ETag,Date Content-Length: - '600' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:55 GMT + - Tue, 24 Nov 2026 11:19:31 GMT ETag: - - '"0x8DDEAB6EE11805C"' + - '"0x8DF4A1CCE12B520"' RequestId: - - 59f480c8-ab0d-413c-b3e7-34d81621f4ef + - 00000000-0000-0000-0000-000000000178 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -191,7 +195,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -209,32 +213,32 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bbebcd29-98e4-4310-b209-af865aae93ea/roleAssignments + uri: https://api.fabric.microsoft.com/v1/workspaces/00000000-0000-0000-0000-000000000105/roleAssignments response: body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000001", "principal": - {"id": "00000000-0000-0000-0000-000000000001", "displayName": "Tenant Admin", - "type": "User", "userDetails": {"userPrincipalName": "mocked@admin_test_user"}}, + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000166", "principal": + {"id": "00000000-0000-0000-0000-000000000166", "displayName": "MSIT Cycle", + "type": "User", "userDetails": {"userPrincipalName": "unknown@mocked_user"}}, "role": "Admin"}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '180' + - '186' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:56 GMT + - Tue, 24 Nov 2026 11:19:31 GMT Pragma: - no-cache RequestId: - - ad6c7418-0d01-442f-a0fa-9143c3a4d1a0 + - 00000000-0000-0000-0000-000000000179 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -242,7 +246,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -260,31 +264,34 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.9.0 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bbebcd29-98e4-4310-b209-af865aae93ea", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000101", "displayName": + "My workspace", "description": "", "type": "Personal", "capacityRegion": "Central + US", "licensingInfo": {"licensingMode": "Pro"}}, {"id": "00000000-0000-0000-0000-000000000105", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "licensingInfo": {"licensingMode": "Capacity"}}]}' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Date Cache-Control: - no-store, must-revalidate, no-cache Content-Encoding: - gzip Content-Length: - - '356' + - '4028' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:55:56 GMT + - Tue, 24 Nov 2026 11:19:32 GMT Pragma: - no-cache RequestId: - - aa237027-26a0-4ad6-a28e-34877475fec8 + - 00000000-0000-0000-0000-000000000180 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -292,7 +299,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: diff --git a/tests/test_commands/test_open.py b/tests/test_commands/test_open.py index 84b10c122..f8c39a993 100644 --- a/tests/test_commands/test_open.py +++ b/tests/test_commands/test_open.py @@ -3,7 +3,8 @@ import argparse import json -from unittest.mock import patch +from typing import Callable +from unittest.mock import Mock, patch import pytest @@ -11,6 +12,8 @@ from fabric_cli.core import fab_constant as constant from fabric_cli.core import fab_handle_context as handle_context from fabric_cli.core.fab_types import ItemType, uri_mapping +from tests.test_commands.commands_parser import CLIExecutor +from tests.test_commands.data.models import EntityMetadata class TestOpen: @@ -93,6 +96,35 @@ def test_open_notebook_success( f"{constant.WEB_URI}/{workspace_id}/{uri_mapping.get(ItemType.NOTEBOOK)}/{item_id}/?experience={constant.FAB_DEFAULT_OPEN_EXPERIENCE_FABRIC}&upn={self.mocked_upn}&ctid={self.mocked_ctid}" ) + @pytest.mark.parametrize( + "experience,expected_experience", + [ + ("fabric", constant.FAB_DEFAULT_OPEN_EXPERIENCE_FABRIC), + ("powerbi", constant.FAB_DEFAULT_OPEN_EXPERIENCE_POWERBI), + ], + ) + @pytest.mark.token_claims({"upn": mocked_upn, "tid": mocked_ctid}) + def test_open_deployment_plan_success( + self, + experience: str, + expected_experience: str, + item_factory: Callable[..., EntityMetadata], + cli_executor: CLIExecutor, + mock_webbrowser_open_new: Mock, + mock_questionary_print: Mock, + mock_fab_set_state_config: Callable[[str, str], None], + ) -> None: + mock_fab_set_state_config(constant.FAB_DEFAULT_OPEN_EXPERIENCE, experience) + deployment_plan = item_factory(ItemType.DEPLOYMENT_PLAN) + get(deployment_plan.full_path, query=".") + data = json.loads(mock_questionary_print.call_args[0][0]) + + cli_executor.exec_command(f"open {deployment_plan.full_path}") + + mock_webbrowser_open_new.assert_called_once_with( + f"{constant.WEB_URI}/{data['workspaceId']}/deployment-plans/{data['id']}/?experience={expected_experience}&upn={self.mocked_upn}&ctid={self.mocked_ctid}" + ) + # endregion From 1f6a856c4cb09e3ff3d161557b40036008f25436 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Tue, 24 Nov 2026 12:15:10 +0000 Subject: [PATCH 7/7] fix recordings --- tests/test_commands/conftest.py | 10 ++++++++-- ..._success[DeploymentPlan-DeploymentPlanFormat].yaml} | 0 ...import_create_new_item_success[DeploymentPlan].yaml | 6 +++--- .../test_import_create_new_plan_item_success.yaml | 8 ++++---- .../test_import_home_directory_path_success.yaml | 6 +++--- 5 files changed, 18 insertions(+), 12 deletions(-) rename tests/test_commands/recordings/test_commands/test_export/{test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat-expected_file_extensions0-expected_folders0].yaml => test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat].yaml} (100%) diff --git a/tests/test_commands/conftest.py b/tests/test_commands/conftest.py index 3df972c16..776f76e3f 100644 --- a/tests/test_commands/conftest.py +++ b/tests/test_commands/conftest.py @@ -146,7 +146,6 @@ import_create_new_item_success_params = pytest.mark.parametrize( "item_type", [ - ItemType.DEPLOYMENT_PLAN, ItemType.NOTEBOOK, ItemType.SPARK_JOB_DEFINITION, ItemType.DATA_PIPELINE, @@ -172,6 +171,7 @@ ItemType.EVENT_SCHEMA_SET, ItemType.ORG_APP, # ItemType.PLAN, + ItemType.DEPLOYMENT_PLAN, ], ) @@ -498,13 +498,19 @@ export_item_format_parameters = pytest.mark.parametrize( "item_type,export_format,expected_file_extensions,expected_folders", [ - (ItemType.DEPLOYMENT_PLAN, "DeploymentPlanFormat", [".yml"], []), (ItemType.NOTEBOOK, ".py", [".py"], []), (ItemType.NOTEBOOK, ".ipynb", [".ipynb"], []), (ItemType.SPARK_JOB_DEFINITION, "SparkJobDefinitionV1", [".json"], []), (ItemType.SPARK_JOB_DEFINITION, "SparkJobDefinitionV2", [".json"], []), (ItemType.SEMANTIC_MODEL, "TMDL", [".pbism"], ["definition"]), (ItemType.SEMANTIC_MODEL, "TMSL", [".pbism", ".bim"], []), + pytest.param( + ItemType.DEPLOYMENT_PLAN, + "DeploymentPlanFormat", + [".yml"], + [], + id="DeploymentPlan-DeploymentPlanFormat", + ), ], ) diff --git a/tests/test_commands/recordings/test_commands/test_export/test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat-expected_file_extensions0-expected_folders0].yaml b/tests/test_commands/recordings/test_commands/test_export/test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat].yaml similarity index 100% rename from tests/test_commands/recordings/test_commands/test_export/test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat-expected_file_extensions0-expected_folders0].yaml rename to tests/test_commands/recordings/test_commands/test_export/test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat].yaml diff --git a/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_item_success[DeploymentPlan].yaml b/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_item_success[DeploymentPlan].yaml index f59f3fe08..b1937bc5c 100644 --- a/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_item_success[DeploymentPlan].yaml +++ b/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_item_success[DeploymentPlan].yaml @@ -541,7 +541,7 @@ interactions: code: 200 message: OK - request: - body: '{"type": "DeploymentPlan", "folderId": null, "displayName": "fabcli000001_new_2", + body: '{"type": "DeploymentPlan", "folderId": null, "displayName": "fabcli000001_new_26", "definition": {"parts": [{"path": ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiRGVwbG95bWVudFBsYW4iLAogICAgICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgICB9LAogICAgImNvbmZpZyI6IHsKICAgICAgICAidmVyc2lvbiI6ICIyLjAiLAogICAgICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogICAgfQp9", "payloadType": "InlineBase64"}, {"path": "plan.yml", "payload": "JHNjaGVtYTogaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vZGVwbG95bWVudFBsYW4vZGVmaW5pdGlvbi9wbGFuLzEuMC4wL3NjaGVtYS5qc29uCnZlcnNpb246IDEuMC4w", "payloadType": "InlineBase64"}]}}' @@ -561,7 +561,7 @@ interactions: response: body: string: '{"id": "c9b25c48-31e0-52bb-9997-45d3c47c5beb", "type": "DeploymentPlan", - "displayName": "fabcli000001_new_2", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", + "displayName": "fabcli000001_new_26", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}' headers: Access-Control-Expose-Headers: @@ -664,7 +664,7 @@ interactions: string: '{"value": [{"id": "858f5e80-fe93-5492-8726-d568356ebb47", "type": "DeploymentPlan", "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}, {"id": "c9b25c48-31e0-52bb-9997-45d3c47c5beb", "type": - "DeploymentPlan", "displayName": "fabcli000001_new_2", "description": "", + "DeploymentPlan", "displayName": "fabcli000001_new_26", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}]}' headers: Access-Control-Expose-Headers: diff --git a/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_plan_item_success.yaml b/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_plan_item_success.yaml index 8d4672df6..e7abda52e 100644 --- a/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_plan_item_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_import/test_import_create_new_plan_item_success.yaml @@ -1314,7 +1314,7 @@ interactions: code: 200 message: OK - request: - body: '{"type": "Plan", "folderId": null, "displayName": "fabcli000001_new_26", + body: '{"type": "Plan", "folderId": null, "displayName": "fabcli000001_new_27", "definition": {"parts": [{"path": ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiUGxhbiIsCiAgICAgICAgImRpc3BsYXlOYW1lIjogImZhYmNsaTAwMDAwMSIKICAgIH0sCiAgICAiY29uZmlnIjogewogICAgICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAgICAgImxvZ2ljYWxJZCI6ICIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiCiAgICB9Cn0=", "payloadType": "InlineBase64"}, {"path": "definition.json", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2l0ZW0vcGxhbi9kZWZpbml0aW9uL0RlZmluaXRpb24vMS4wLjAvc2NoZW1hLmpzb24iLAogICAgImN1YmUiOiB7CiAgICAgICAgInBhcnRpdGlvblJlZklkcyI6IFtdCiAgICB9LAogICAgInNoZWV0cyI6IFtdLAogICAgIndvcmtsb2FkSXRlbU5hbWUiOiAiZmFiY2xpMDAwMDAxIgp9", "payloadType": "InlineBase64"}]}}' @@ -1442,7 +1442,7 @@ interactions: response: body: string: '{"id": "db998a57-d48f-45b6-9477-e72ab86ef771", "type": "Plan", "displayName": - "fabcli000001_new_26", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb"}' + "fabcli000001_new_27", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb"}' headers: Access-Control-Expose-Headers: - RequestId,Date @@ -1644,7 +1644,7 @@ interactions: "SQLDatabase", "displayName": "__fabric_plan_sys", "description": "DoNotEdit Auto-created for storing Planning artifacts Metadata in this workspace", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}, {"id": "db998a57-d48f-45b6-9477-e72ab86ef771", - "type": "Plan", "displayName": "fabcli000001_new_26", "description": "", "workspaceId": + "type": "Plan", "displayName": "fabcli000001_new_27", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}]}' headers: Access-Control-Expose-Headers: @@ -1899,7 +1899,7 @@ interactions: "SQLDatabase", "displayName": "__fabric_plan_sys", "description": "DoNotEdit Auto-created for storing Planning artifacts Metadata in this workspace", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}, {"id": "db998a57-d48f-45b6-9477-e72ab86ef771", - "type": "Plan", "displayName": "fabcli000001_new_26", "description": "", "workspaceId": + "type": "Plan", "displayName": "fabcli000001_new_27", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}]}' headers: Access-Control-Expose-Headers: diff --git a/tests/test_commands/recordings/test_commands/test_import/test_import_home_directory_path_success.yaml b/tests/test_commands/recordings/test_commands/test_import/test_import_home_directory_path_success.yaml index bd63f034a..531efe7b8 100644 --- a/tests/test_commands/recordings/test_commands/test_import/test_import_home_directory_path_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_import/test_import_home_directory_path_success.yaml @@ -1351,7 +1351,7 @@ interactions: code: 200 message: OK - request: - body: '{"type": "Notebook", "folderId": null, "displayName": "fabcli000001_new_27", + body: '{"type": "Notebook", "folderId": null, "displayName": "fabcli000001_new_28", "definition": {"parts": [{"path": ".platform", "payload": "ewogICAgIiRzY2hlbWEiOiAiaHR0cHM6Ly9kZXZlbG9wZXIubWljcm9zb2Z0LmNvbS9qc29uLXNjaGVtYXMvZmFicmljL2dpdEludGVncmF0aW9uL3BsYXRmb3JtUHJvcGVydGllcy8yLjAuMC9zY2hlbWEuanNvbiIsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgInR5cGUiOiAiTm90ZWJvb2siLAogICAgICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgICB9LAogICAgImNvbmZpZyI6IHsKICAgICAgICAidmVyc2lvbiI6ICIyLjAiLAogICAgICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogICAgfQp9", "payloadType": "InlineBase64"}, {"path": "notebook-content.ipynb", "payload": "ewogICAgIm5iZm9ybWF0IjogNCwKICAgICJuYmZvcm1hdF9taW5vciI6IDUsCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICAgImRlcGVuZGVuY2llcyI6IHsKICAgICAgICAgICAgImxha2Vob3VzZSI6IG51bGwKICAgICAgICB9LAogICAgICAgICJsYW5ndWFnZV9pbmZvIjogewogICAgICAgICAgICAibmFtZSI6ICJweXRob24iCiAgICAgICAgfSwKICAgICAgICAia2VybmVsX2luZm8iOiB7CiAgICAgICAgICAgICJuYW1lIjogInN5bmFwc2VfcHlzcGFyayIsCiAgICAgICAgICAgICJqdXB5dGVyX2tlcm5lbF9uYW1lIjogbnVsbAogICAgICAgIH0sCiAgICAgICAgImEzNjVDb21wdXRlT3B0aW9ucyI6IG51bGwsCiAgICAgICAgInNlc3Npb25LZWVwQWxpdmVUaW1lb3V0IjogMAogICAgfSwKICAgICJjZWxscyI6IFsKICAgICAgICB7CiAgICAgICAgICAgICJjZWxsX3R5cGUiOiAiY29kZSIsCiAgICAgICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICAgICAgICJtaWNyb3NvZnQiOiB7CiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlIjogInB5dGhvbiIsCiAgICAgICAgICAgICAgICAgICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgInNvdXJjZSI6IFsKICAgICAgICAgICAgICAgICIjIFdlbGNvbWUgdG8geW91ciBuZXcgbm90ZWJvb2tcbiIsCiAgICAgICAgICAgICAgICAiIyBUeXBlIGhlcmUgaW4gdGhlIGNlbGwgZWRpdG9yIHRvIGFkZCBjb2RlIVxuIgogICAgICAgICAgICBdLAogICAgICAgICAgICAib3V0cHV0cyI6IFtdCiAgICAgICAgfQogICAgXQp9", @@ -1480,7 +1480,7 @@ interactions: response: body: string: '{"id": "dea2910a-bc33-4a2a-a235-80fd2ef33106", "type": "Notebook", - "displayName": "fabcli000001_new_27", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb"}' + "displayName": "fabcli000001_new_28", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb"}' headers: Access-Control-Expose-Headers: - RequestId,Date @@ -1676,7 +1676,7 @@ interactions: "logicalId": null}, {"id": "697b786b-47ac-4087-a94e-3838bb1ae07b", "type": "Notebook", "displayName": "fabcli000001", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}, {"id": "dea2910a-bc33-4a2a-a235-80fd2ef33106", - "type": "Notebook", "displayName": "fabcli000001_new_27", "description": "", + "type": "Notebook", "displayName": "fabcli000001_new_28", "description": "", "workspaceId": "f5077233-b988-43a5-8f51-27dff3a6a8eb", "logicalId": null}]}' headers: Access-Control-Expose-Headers: