mirror of https://github.com/pulumi/pulumi.git
3d8158b744
### Description This PR adds support for specifying invokes options in PCL and extends program-gen in C#, TypeScript, Python and Go to support generating the options correctly from PCL. Previously the options parameter from the invoke was expected to be a string which is incorrect, it must be an object with fields `provider`, `parent`, `version` and `pluginDownloadUrl`. Soon we will add `dependsOn` to these options so it will be nice to have the foundation for it. For Go, TypeScript and Python added a conformance test `l2-invoke-options` which exercise the usage of these options although runtime-wise the results of the invoke are the same. Since we don't have conformance tests for .NET yet, I've added a simple program-gen test for C# that has invoke options to make sure the generated program compiles. |
||
---|---|---|
.. | ||
benchmarks/go-alias-norm | ||
examples | ||
integration | ||
performance | ||
testdata | ||
testprovider | ||
.gitignore | ||
README.md | ||
about_test.go | ||
config_test.go | ||
go.mod | ||
go.sum | ||
history_test.go | ||
login_test.go | ||
main_test.go | ||
policy_new_test.go | ||
preview_only_test.go | ||
remote_test.go | ||
roundtrip_test.go | ||
smoke_test.go | ||
stack_test.go |
README.md
Integration Tests
This module provides integration tests for the Pulumi CLI.
The tests can be run via:
make test_all
Usage of Go build tags
In order to speed up integration tests in GitHub actions, Go build tags are used to conditionally compile the desired test cases.
// integration_nodejs_test.go
//go:build (nodejs || all) && !xplatform-acceptance
// integration_nodejs_acceptance_test.go
//go:build nodejs || all