diff --git a/examples/tests/test-vendor/vendor.yaml b/examples/tests/test-vendor/vendor.yaml index 258a28e81..1b9561be6 100644 --- a/examples/tests/test-vendor/vendor.yaml +++ b/examples/tests/test-vendor/vendor.yaml @@ -41,3 +41,13 @@ spec: version: "latest" targets: - "components/terraform/infra/my-vpc1" + - component: "vpc-src" + source: "../../demo-library/weather" # required for test URI contain path traversal + targets: + - "components/terraform/vpc-src" + included_paths: + - "**/*.tf" + - "**/*.md" + - "**/*.tftmpl" + - "**/modules/**" + excluded_paths: [] diff --git a/tests/fixtures/scenarios/complete/vendor.yaml b/tests/fixtures/scenarios/complete/vendor.yaml index 3e8cda7c2..ab64e00df 100644 --- a/tests/fixtures/scenarios/complete/vendor.yaml +++ b/tests/fixtures/scenarios/complete/vendor.yaml @@ -24,16 +24,6 @@ spec: # In 'source', Golang templates are supported https://pkg.go.dev/text/template. # If 'version' is provided, '{{.Version}}' will be replaced with the 'version' value before pulling the files from 'source'. # Download the component from the AWS public ECR registry (https://docs.aws.amazon.com/AmazonECR/latest/public/public-registries.html). - - component: "vpc-src" - source: "../../src" # required for test URI contain path traversal - targets: - - "components/terraform/vpc" - included_paths: - - "**/*.tf" - - "**/*.md" - - "**/*.tftmpl" - - "**/modules/**" - excluded_paths: [] - component: "vpc" source: "oci://public.ecr.aws/cloudposse/components/terraform/stable/aws/vpc:{{.Version}}" version: "latest" diff --git a/tests/test-cases/demo-stacks.yaml b/tests/test-cases/demo-stacks.yaml index e95e2c018..f823ac11e 100644 --- a/tests/test-cases/demo-stacks.yaml +++ b/tests/test-cases/demo-stacks.yaml @@ -189,4 +189,8 @@ tests: - "./components/terraform/weather/main/providers.tf" - "./components/terraform/weather/main/variables.tf" - "./components/terraform/weather/main/versions.tf" + - "./components/terraform/vpc-src/main.tf" + - "./components/terraform/vpc-src/outputs.tf" + - "./components/terraform/vpc-src/variables.tf" + - "./components/terraform/vpc-src/versions.tf" exit_code: 0