Skip to content

Commit 5a413f1

Browse files
committed
fix configuration test failures
1 parent fdc3211 commit 5a413f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/wrangler/src/__tests__/config/configuration.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,10 +2454,10 @@ describe("normalizeAndValidateConfig()", () => {
24542454
- The image \\"something\\" does not appear to be a valid path to a Dockerfile, or a valid image registry path:
24552455
If this is an image registry path, it needs to include at least a tag ':' (e.g: docker.io/httpd:1)
24562456
- Expected \\"containers.rollout_kind\\" field to be one of [\\"full_auto\\",\\"full_manual\\",\\"none\\"] but got \\"invalid\\".
2457-
- Expected \\"containers.instance_type\\" field to be one of [\\"dev\\",\\"basic\\",\\"standard\\"] but got \\"invalid\\".
24582457
- Expected \\"containers.max_instances\\" to be of type number but got \\"invalid\\".
24592458
- Expected \\"containers.image_vars\\" to be of type object but got \\"invalid\\".
2460-
- Expected \\"containers.scheduling_policy\\" field to be one of [\\"regional\\",\\"moon\\",\\"default\\"] but got \\"invalid\\"."
2459+
- Expected \\"containers.scheduling_policy\\" field to be one of [\\"regional\\",\\"moon\\",\\"default\\"] but got \\"invalid\\".
2460+
- Expected \\"containers.instance_type\\" field to be one of [\\"dev\\",\\"basic\\",\\"standard\\"] but got \\"invalid\\"."
24612461
`);
24622462
});
24632463

@@ -2485,7 +2485,7 @@ describe("normalizeAndValidateConfig()", () => {
24852485

24862486
expect(diagnostics.renderWarnings()).toMatchInlineSnapshot(`
24872487
"Processing wrangler configuration:
2488-
- \\"containers.configuration\\" is deprecated. Use top level \\"containers\\" fields instead. \\"configuration.image\\" should be \\"image\\", \\"configuration.disk\\" should be set via \\"instance_type\\".
2488+
- \\"containers.configuration\\" is deprecated. Use top level \\"containers\\" fields instead. \\"configuration.image\\" should be \\"image\\", limits should be set via \\"instance_type\\".
24892489
- \\"containers.instances\\" is deprecated. Use \\"containers.max_instances\\" instead.
24902490
- \\"containers.durable_objects\\" is deprecated. Use the \\"class_name\\" field instead."
24912491
`);
@@ -2519,7 +2519,7 @@ describe("normalizeAndValidateConfig()", () => {
25192519

25202520
expect(diagnostics.renderWarnings()).toMatchInlineSnapshot(`
25212521
"Processing wrangler configuration:
2522-
- \\"containers.configuration\\" is deprecated. Use top level \\"containers\\" fields instead. \\"configuration.image\\" should be \\"image\\", \\"configuration.disk\\" should be set via \\"instance_type\\".
2522+
- \\"containers.configuration\\" is deprecated. Use top level \\"containers\\" fields instead. \\"configuration.image\\" should be \\"image\\", limits should be set via \\"instance_type\\".
25232523
- Unexpected fields found in containers.configuration field: \\"memory\\",\\"invalid_field\\",\\"another_invalid\\""
25242524
`);
25252525
});

0 commit comments

Comments
 (0)