Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#general
Title
t
tall-stone-8237
02/24/2020, 9:08 PM
Hello!!! I’m new to Pulumi. Is there a testing facility for Dynamic providers?
w
white-balloon-205
02/24/2020, 9:22 PM
There's not dedicated testing just for Dynamic providers, but you can write general Pulumi tests that exercise various life-cycles for dynamic providers and any other resources using either an approach like
https://www.pulumi.com/blog/unit-testing-infrastructure-in-nodejs-and-mocha/
, using Policy as Code
https://www.pulumi.com/docs/get-started/crossguard/#get-started-with-policy-as-code
, or via integration tests using something like
https://github.com/pulumi/pulumi-aws/blob/master/examples/examples_test.go#L62
. We're also working on a lot more content on testing strategies for Pulumi over the coming weeks!
t
tall-stone-8237
02/25/2020, 5:59 PM
Thanks
@white-balloon-205
!!
Post