This integration test treats infrastructure deployed by a Pulumi program as a "black box". It deploys the infrastructure, retrieves an endpoint from stack outputs, sends an HTTP request to the endpoint, validates the response, and tears down the infrastructure again.
This test deploys a static website as an AWS S3 bucket and checks that the site is reachable.
Run the tests:
go testYou should see output similar to the following:
PASS
ok github.com/pulumi/examples/testing-integration 65.749s
Learn more about testing Pulumi programs: