Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3421 regression test for update #3679

Merged
merged 2 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/examples_nodejs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,17 @@ func TestRegress3421(t *testing.T) {
integration.ProgramTest(t, &test)
}

func TestRegress3421Update(t *testing.T) {
test := pulumitest.NewPulumiTest(t, "regress-3421",
opttest.LocalProviderPath("aws", filepath.Join(getCwd(t), "..", "bin")),
)

test.SetConfig("listenerPort", "80")
test.Up()
test.SetConfig("listenerPort", "81")
test.Up()
}

func getJSBaseOptions(t *testing.T) integration.ProgramTestOptions {
envRegion := getEnvRegion(t)
baseJS := integration.ProgramTestOptions{
Expand Down
5 changes: 4 additions & 1 deletion examples/regress-3421/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as aws from "@pulumi/aws";
import * as pulumi from "@pulumi/pulumi";

const vpc = new aws.ec2.Vpc("main", { cidrBlock: "10.0.0.0/16" });

Expand Down Expand Up @@ -37,9 +38,11 @@ const targetGroup = new aws.lb.TargetGroup("payload-tg", {
vpcId: vpc.id,
});

const listenerPort = new pulumi.Config().getNumber("listenerPort") || 80;

new aws.lb.Listener("payload-lb-listner-http", {
loadBalancerArn: loadbalancer.arn,
port: 80,
port: listenerPort,
protocol: "HTTP",
defaultActions: [
{
Expand Down
Loading