mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-09 04:25:57 +00:00
changed throughput above limit
This commit is contained in:
@@ -60,7 +60,7 @@ test.describe("Autoscale and Manual throughput", () => {
|
|||||||
const softAllowedMaxThroughput = Number(softAllowedMaxThroughputString.replace(/,/g, ""));
|
const softAllowedMaxThroughput = Number(softAllowedMaxThroughputString.replace(/,/g, ""));
|
||||||
|
|
||||||
// Try to set autoscale max throughput above allowed limit
|
// Try to set autoscale max throughput above allowed limit
|
||||||
await getThroughputInput("autopilot").fill((softAllowedMaxThroughput + 1000).toString());
|
await getThroughputInput("autopilot").fill((softAllowedMaxThroughput * 10).toString());
|
||||||
await expect(explorer.commandBarButton(CommandBarButton.Save)).toBeDisabled();
|
await expect(explorer.commandBarButton(CommandBarButton.Save)).toBeDisabled();
|
||||||
await expect(getThroughputInputErrorMessage("autopilot")).toContainText(
|
await expect(getThroughputInputErrorMessage("autopilot")).toContainText(
|
||||||
"This update isn't possible because it would increase the total throughput",
|
"This update isn't possible because it would increase the total throughput",
|
||||||
@@ -98,7 +98,7 @@ test.describe("Autoscale and Manual throughput", () => {
|
|||||||
const softAllowedMaxThroughput = Number(softAllowedMaxThroughputString.replace(/,/g, ""));
|
const softAllowedMaxThroughput = Number(softAllowedMaxThroughputString.replace(/,/g, ""));
|
||||||
|
|
||||||
// Try to set manual throughput above allowed limit
|
// Try to set manual throughput above allowed limit
|
||||||
await getThroughputInput("manual").fill((softAllowedMaxThroughput + 1000).toString());
|
await getThroughputInput("manual").fill((softAllowedMaxThroughput * 10).toString());
|
||||||
await expect(explorer.commandBarButton(CommandBarButton.Save)).toBeDisabled();
|
await expect(explorer.commandBarButton(CommandBarButton.Save)).toBeDisabled();
|
||||||
await expect(getThroughputInputErrorMessage("manual")).toContainText(
|
await expect(getThroughputInputErrorMessage("manual")).toContainText(
|
||||||
"This update isn't possible because it would increase the total throughput",
|
"This update isn't possible because it would increase the total throughput",
|
||||||
|
|||||||
Reference in New Issue
Block a user