Skip to content

Commit

Permalink
fix integration test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thoward committed Jan 31, 2025
1 parent 2b7341f commit 3b55f83
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
test:
ensure:
make -C ../custom-policy-pack-python ensure

test: ensure
PULUMI_CONFIG_PASSPHRASE="foo" pulumi login --local
PULUMI_CONFIG_PASSPHRASE="foo" pulumi install
-PULUMI_CONFIG_PASSPHRASE="foo" pulumi cancel --stack organization/custom-policy-pack-integration-test-python/dev --yes
Expand All @@ -7,4 +10,5 @@ test:
PULUMI_CONFIG_PASSPHRASE="foo" pulumi stack select organization/custom-policy-pack-integration-test-python/dev
-PULUMI_CONFIG_PASSPHRASE="foo" pulumi config set aws:region us-west-2
PULUMI_CONFIG_PASSPHRASE="foo" pulumi preview --policy-pack ../custom-policy-pack-python
.PHONY: test

.PHONY: test ensure
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
test:
ensure:
make -C ../custom-policy-pack-typescript ensure

test: ensure

PULUMI_CONFIG_PASSPHRASE="foo" pulumi login --local
PULUMI_CONFIG_PASSPHRASE="foo" pulumi install
-PULUMI_CONFIG_PASSPHRASE="foo" pulumi cancel --stack organization/custom-policy-pack-integration-test/dev --yes
Expand All @@ -7,4 +11,5 @@ test:
PULUMI_CONFIG_PASSPHRASE="foo" pulumi stack select organization/custom-policy-pack-integration-test/dev
-PULUMI_CONFIG_PASSPHRASE="foo" pulumi config set aws:region us-west-2
PULUMI_CONFIG_PASSPHRASE="foo" pulumi preview --policy-pack ../custom-policy-pack-typescript
.PHONY: test

.PHONY: test ensure
2 changes: 1 addition & 1 deletion static/programs/custom-policy-pack-python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ clean:
find . -type f -name *.pyc -delete
find . -type d -name __pycache__ -delete

.PHONY: test
.PHONY: test ensure
7 changes: 5 additions & 2 deletions static/programs/custom-policy-pack-typescript/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
test:
ensure:
npm install -g mocha
npm install

test: ensure
npm test
.PHONY: test

.PHONY: test ensure

0 comments on commit 3b55f83

Please sign in to comment.