Skip to content

Commit a3bd414

Browse files
committed
Continued changing of dev to lite
1 parent f23e89e commit a3bd414

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

packages/wrangler/src/__tests__/cloudchamber/create.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe("cloudchamber create", () => {
119119
--label Deployment labels [array]
120120
--all-ssh-keys To add all SSH keys configured on your account to be added to this deployment, set this option to true [boolean]
121121
--ssh-key-id ID of the SSH key to add to the deployment [array]
122-
--instance-type Instance type to allocate to this deployment [choices: \\"dev\\", \\"basic\\", \\"standard\\"]
122+
--instance-type Instance type to allocate to this deployment [choices: \\"lite\\", \\"basic\\", \\"standard-1\\", \\"standard-2\\", \\"standard-3\\", \\"standard-4\\"]
123123
--vcpu Number of vCPUs to allocate to this deployment. [number]
124124
--memory Amount of memory (GiB, MiB...) to allocate to this deployment. Ex: 4GiB. [string]
125125
--ipv4 Include an IPv4 in the deployment [boolean]"
@@ -190,7 +190,7 @@ describe("cloudchamber create", () => {
190190
runWrangler("cloudchamber create ")
191191
).rejects.toThrowErrorMatchingInlineSnapshot(
192192
`[Error: Processing wrangler.toml configuration:
193-
- "instance_type" should be one of 'lite', 'basic', 'standard-1', 'standard-2', 'standard-3', or 'standard-4', but got invalid]`
193+
- "instance_type" should be one of 'lite', 'basic', 'standard-1', 'standard-2', 'standard-3', or 'standard-4', but got invalid]`
194194
);
195195
});
196196

@@ -250,7 +250,7 @@ describe("cloudchamber create", () => {
250250
);
251251
expect(std.err).toMatchInlineSnapshot(`""`);
252252
await runWrangler(
253-
"cloudchamber create --image hello:world --location sfo06 --var HELLO:WORLD --var YOU:CONQUERED --instance-type dev --ipv4 true"
253+
"cloudchamber create --image hello:world --location sfo06 --var HELLO:WORLD --var YOU:CONQUERED --instance-type lite --ipv4 true"
254254
);
255255
expect(std.out).toMatchInlineSnapshot(`"{}"`);
256256
});

packages/wrangler/src/__tests__/cloudchamber/limits.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ describe("ensureContainerLimits", () => {
143143
} as CompleteAccountCustomer,
144144
containerConfig: {
145145
vcpu: 1,
146-
memory_mib: 8192,
146+
memory_mib: 999999,
147147
disk_bytes: 4000 * MB,
148148
} as ContainerNormalizedConfig,
149149
})
150150
).rejects.toThrowErrorMatchingInlineSnapshot(
151-
`[Error: Exceeded account limits: Your container configuration uses 8192 MiB of memory which exceeds the account limit of 4096 MiB.]`
151+
`[Error: Exceeded account limits: Your container configuration uses 999999 MiB of memory which exceeds the account limit of 12288 MiB.]`
152152
);
153153
});
154154

packages/wrangler/src/cloudchamber/create.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,14 @@ export function createCommandOptionalYargs(yargs: CommonYargsArgv) {
9898
})
9999
.option("instance-type", {
100100
requiresArg: true,
101-
choices: ["dev", "basic", "standard"] as const,
101+
choices: [
102+
"lite",
103+
"basic",
104+
"standard-1",
105+
"standard-2",
106+
"standard-3",
107+
"standard-4",
108+
] as const,
102109
demandOption: false,
103110
describe: "Instance type to allocate to this deployment",
104111
})

0 commit comments

Comments
 (0)