Fix compilation of the perf test refactor
MODIFY
misc/test/aws_test.go
misc/test/aws_test.go
@@ -6,7 +6,6 @@ import (
"encoding/base64"
"fmt"
"net/url"
- "os"
"path"
"strings"
"testing"
@@ -65,8 +64,6 @@ func TestAccAwsGoFargate(t *testing.T) {
integration.ProgramTest(t, &test)
}
-
-
func TestAccAwsGoS3FolderComponent(t *testing.T) {
test := getAWSBase(t).
With(integration.ProgramTestOptions{
@@ -554,24 +551,3 @@ func TestAccAwsTsLambdaEfs(t *testing.T) {
integration.ProgramTest(t, &test)
}
-
-func getAWSBase(t *testing.T) integration.ProgramTestOptions {
- awsRegion := getAwsRegion()
- base := getBaseOptions(t)
- awsBase := base.With(integration.ProgramTestOptions{
- Config: map[string]string{
- "aws:region": awsRegion,
- },
- })
- return awsBase
-}
-
-func getAwsRegion() string {
- awsRegion := os.Getenv("AWS_REGION")
- if awsRegion == "" {
- awsRegion = "us-west-1"
- fmt.Println("Defaulting AWS_REGION to 'us-west-1'. You can override using the AWS_REGION environment variable")
- }
-
- return awsRegion
-}

MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -139,3 +139,26 @@ func assertHTTPHelloWorld(t *testing.T, output interface{}, headers map[string]s
return assert.Equal(t, "Hello, World!\n", s)
})
}
+
+// Below: aws-specifics shared so that -tags Performance and -tags Aws compilation works.
+
+func getAWSBase(t *testing.T) integration.ProgramTestOptions {
+ awsRegion := getAwsRegion()
+ base := getBaseOptions(t)
+ awsBase := base.With(integration.ProgramTestOptions{
+ Config: map[string]string{
+ "aws:region": awsRegion,
+ },
+ })
+ return awsBase
+}
+
+func getAwsRegion() string {
+ awsRegion := os.Getenv("AWS_REGION")
+ if awsRegion == "" {
+ awsRegion = "us-west-1"
+ fmt.Println("Defaulting AWS_REGION to 'us-west-1'. You can override using the AWS_REGION environment variable")
+ }
+
+ return awsRegion
+}

MODIFY
misc/test/performance_tests.go
misc/test/performance_tests.go
package test
+import (
+ "path"
+ "testing"
+ "time"
+
+ "github.com/pulumi/pulumi/pkg/v3/testing/integration"
+ "github.com/stretchr/testify/assert"
+)
+
func TestAccAwsGoS3Folder(t *testing.T) {
test := getAWSBase(t).
With(integration.ProgramTestOptions{

Fix compilation of the perf test refactor (#1018)