mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-08-30 02:08:40 +01:00
Update CloudShell API version to 2025-09-01-preview
This commit is contained in:
@@ -85,7 +85,7 @@ describe("CloudShellClient", () => {
|
|||||||
host: MOCK_ARM_ENDPOINT,
|
host: MOCK_ARM_ENDPOINT,
|
||||||
path: "/providers/Microsoft.Portal/userSettings/cloudconsole",
|
path: "/providers/Microsoft.Portal/userSettings/cloudconsole",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
});
|
});
|
||||||
expect(result).toEqual(mockSettings);
|
expect(result).toEqual(mockSettings);
|
||||||
});
|
});
|
||||||
@@ -100,7 +100,7 @@ describe("CloudShellClient", () => {
|
|||||||
host: MOCK_ARM_ENDPOINT,
|
host: MOCK_ARM_ENDPOINT,
|
||||||
path: "/providers/Microsoft.Portal/userSettings/cloudconsole",
|
path: "/providers/Microsoft.Portal/userSettings/cloudconsole",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -116,7 +116,7 @@ describe("CloudShellClient", () => {
|
|||||||
host: MOCK_ARM_ENDPOINT,
|
host: MOCK_ARM_ENDPOINT,
|
||||||
path: "/providers/Microsoft.Portal/userSettings/cloudconsole",
|
path: "/providers/Microsoft.Portal/userSettings/cloudconsole",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
body: {
|
body: {
|
||||||
properties: {
|
properties: {
|
||||||
preferredOsType: OsType.Linux,
|
preferredOsType: OsType.Linux,
|
||||||
@@ -144,7 +144,7 @@ describe("CloudShellClient", () => {
|
|||||||
host: MOCK_ARM_ENDPOINT,
|
host: MOCK_ARM_ENDPOINT,
|
||||||
path: "/providers/Microsoft.Portal/userSettings/cloudconsole",
|
path: "/providers/Microsoft.Portal/userSettings/cloudconsole",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
body: {
|
body: {
|
||||||
properties: {
|
properties: {
|
||||||
preferredOsType: OsType.Linux,
|
preferredOsType: OsType.Linux,
|
||||||
@@ -247,7 +247,7 @@ describe("CloudShellClient", () => {
|
|||||||
host: MOCK_ARM_ENDPOINT,
|
host: MOCK_ARM_ENDPOINT,
|
||||||
path: "providers/Microsoft.Portal/consoles/default",
|
path: "providers/Microsoft.Portal/consoles/default",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
customHeaders: {
|
customHeaders: {
|
||||||
"x-ms-console-preferred-location": "eastus",
|
"x-ms-console-preferred-location": "eastus",
|
||||||
},
|
},
|
||||||
@@ -271,7 +271,7 @@ describe("CloudShellClient", () => {
|
|||||||
host: MOCK_ARM_ENDPOINT,
|
host: MOCK_ARM_ENDPOINT,
|
||||||
path: "providers/Microsoft.Portal/consoles/default",
|
path: "providers/Microsoft.Portal/consoles/default",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
customHeaders: {
|
customHeaders: {
|
||||||
"x-ms-console-preferred-location": "eastus",
|
"x-ms-console-preferred-location": "eastus",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const getUserSettings = async (): Promise<CloudShellSettings> => {
|
|||||||
host: configContext.ARM_ENDPOINT,
|
host: configContext.ARM_ENDPOINT,
|
||||||
path: `/providers/Microsoft.Portal/userSettings/cloudconsole`,
|
path: `/providers/Microsoft.Portal/userSettings/cloudconsole`,
|
||||||
method: "GET",
|
method: "GET",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ export const putEphemeralUserSettings = async (
|
|||||||
host: configContext.ARM_ENDPOINT,
|
host: configContext.ARM_ENDPOINT,
|
||||||
path: `/providers/Microsoft.Portal/userSettings/cloudconsole`,
|
path: `/providers/Microsoft.Portal/userSettings/cloudconsole`,
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
body: ephemeralSettings,
|
body: ephemeralSettings,
|
||||||
timeoutMs: CLOUDSHELL_ARM_TIMEOUT_MS,
|
timeoutMs: CLOUDSHELL_ARM_TIMEOUT_MS,
|
||||||
});
|
});
|
||||||
@@ -92,7 +92,7 @@ export const provisionConsole = async (consoleLocation: string): Promise<Provisi
|
|||||||
host: configContext.ARM_ENDPOINT,
|
host: configContext.ARM_ENDPOINT,
|
||||||
path: `providers/Microsoft.Portal/consoles/default`,
|
path: `providers/Microsoft.Portal/consoles/default`,
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
apiVersion: "2023-02-01-preview",
|
apiVersion: "2025-09-01-preview",
|
||||||
customHeaders: {
|
customHeaders: {
|
||||||
"x-ms-console-preferred-location": consoleLocation,
|
"x-ms-console-preferred-location": consoleLocation,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user