Skip to content

Commit

Permalink
chore: fix go init template test to unblock v2 pipeline (#24472)
Browse files Browse the repository at this point in the history
The v2 pipeline is currently blocked due to the new go integ test failing.
This change adds the correct go replacement and fixes a failing test in the sample app.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mrgrain authored Mar 6, 2023
1 parent a4856e9 commit 9251610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { integTest, withTemporaryDirectory, ShellHelper, withPackages } from '..
await context.packages.makeCliAvailable();

await shell.shell(['cdk', 'init', '-l', 'go', template]);
await shell.shell(['go', 'mod', 'edit', '-replace', 'github.com/aws/aws-cdk-go/awscdk=$dist_root/go/awscdk']);
await shell.shell(['go', 'mod', 'edit', '-replace', 'github.com/aws/aws-cdk-go/awscdk/v2=$CODEBUILD_SRC_DIR/go/awscdk']);
await shell.shell(['go', 'mod', 'tidy']);
await shell.shell(['go', 'test']);
await shell.shell(['cdk', 'synth']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func Test%name.PascalCased%Stack(t *testing.T) {
stack := New%name.PascalCased%Stack(app, "MyStack", nil)

// THEN
template := assertions.Template_FromStack(stack)
template := assertions.Template_FromStack(stack, nil)

template.HasResourceProperties(jsii.String("AWS::SQS::Queue"), map[string]interface{}{
"VisibilityTimeout": 300,
Expand Down

0 comments on commit 9251610

Please sign in to comment.