mirror of https://github.com/pulumi/pulumi.git
b842c7296f
This adds support to `pulumi import` for generating code for resources from parameterized packages. This requires two things. Firstly we need the whole state when generating code so we can look up providers (there was a very old `TODO` comment that we should have been doing this anyway so we used the correct package versions). Looking up the provider means we can pull all the package information off it to look up the schema correctly. We also emit that package information to the generated PCL as package blocks, so that the language code generator also has full access to the package information so it can correctly load schemas inside its `GenerateProgram` call. Part of #17507 |
||
---|---|---|
.. | ||
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