Skip to content

Commit

Permalink
chore: formatting of snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Apr 29, 2024
1 parent 82228cf commit 1b11f65
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/cdktf/test/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ test("app synth throws error when provider is missing", () => {
expect(() => app.synth()).toThrowErrorMatchingInlineSnapshot(`
"Validation failed with the following errors:
[MyStack] Found resources without a matching provider construct. Please make sure to add provider constructs [e.g. new RandomProvider(...)] to your stack 'MyStack' for the following providers: test-provider
If you wish to ignore these validations, pass 'skipValidation: true' to your App configuration.
"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/cdktf/test/resource.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ test("tokens as ids", () => {
name: "foo",
});
}).toThrowErrorMatchingInlineSnapshot(`
"You cannot use a token (e.g., a reference to an attribute) as the id of a construct. Ids of constructs must be known at synthesis time, and token values are only known when Terraform runs. Please use a concrete value for your constructs ID instead.
"You cannot use a token (e.g., a reference to an attribute) as the id of a construct. Ids of constructs must be known at synthesis time, and token values are only known when Terraform runs. Please use a concrete value for your constructs ID instead.
You passed the following id: "resource-\${TfToken[TOKEN.8]}"
"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/cdktf/test/stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ test("getting Stack for construct which was added to root app returns friendly e
expect(() => new LocalBackend(app, {})).toThrowErrorMatchingInlineSnapshot(`
"No stack could be identified for the construct at path 'backend'. You seem to have passed your root App as scope to a construct. Pass a stack (inheriting from TerraformStack) as scope to your construct instead.
You can only use constructs as part of a TerraformStack.
You can only use constructs as part of a TerraformStack.
To learn more about Constructs vs. TerraformStacks, refer to: https://developer.hashicorp.com/terraform/cdktf/concepts/constructs#:~:text=Constructs%20vs.%20Stacks
"
Expand Down
8 changes: 4 additions & 4 deletions packages/cdktf/test/validations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test("validations are executed recursively", () => {
[MyStack/custom] custom_error_1
[MyStack/custom] custom_error_2
[MyStack/custom/nested] custom_nested_error
If you wish to ignore these validations, pass 'skipValidation: true' to your App configuration.
"
`);
Expand Down Expand Up @@ -82,7 +82,7 @@ describe("ValidateBinaryVersion", () => {
expect(() => app.synth()).toThrowErrorMatchingInlineSnapshot(`
"Validation failed with the following errors:
[MyStack/testResource] terraform version 1.2.0 is lower than the required version >=1.3.0 for this construct.
If you wish to ignore these validations, pass 'skipValidation: true' to your App configuration.
"
`);
Expand Down Expand Up @@ -120,7 +120,7 @@ describe("ValidateBinaryVersion", () => {
expect(() => app.synth()).toThrowErrorMatchingInlineSnapshot(`
"Validation failed with the following errors:
[MyStack/testResource] Could not determine version of terraform, exit 1 failed: Error: Command failed: exit 1
If you wish to ignore these validations, pass 'skipValidation: true' to your App configuration.
"
`);
Expand All @@ -140,7 +140,7 @@ describe("ValidateBinaryVersion", () => {
expect(() => app.synth()).toThrowErrorMatchingInlineSnapshot(`
"Validation failed with the following errors:
[MyStack/testResource] Could not determine version of terraform (running echo "foo")
If you wish to ignore these validations, pass 'skipValidation: true' to your App configuration.
"
`);
Expand Down

0 comments on commit 1b11f65

Please sign in to comment.