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

Demo provider record-replay #929

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Demo provider record-replay #929

wants to merge 1 commit into from

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Dec 21, 2022

Description

Demonstrates how to use pulumi/pulumi#11710 record-and-replay feature.

Note that you need to install Pulumi CLI from 11710 for this to work.

Running the following example is 13s with provider replay mocks vs 200s against the actual cloud. The PR includes the pre-recorded provider mocks.

make test_example.aws-java-webserver

Fixes # (issue)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@@ -90,6 +90,13 @@ func TestExamples(t *testing.T) {
assert.True(t, strings.Contains(publicHostName, "."))
},
})

test.StackName = "awsjavawebserverstack"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StackName must be set because a randomly chosen stack name currently confuses the record-replay framework and it fails to replay. Unfortunate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant