Skip to content

Commit

Permalink
Remove check for project id
Browse files Browse the repository at this point in the history
  • Loading branch information
UnstoppableMango committed Nov 5, 2024
1 parent de0955b commit 8e55e0b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions examples/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ import (
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
)

func getProjectId(t *testing.T) string {
name := os.Getenv("SCW_DEFAULT_PROJECT_ID")
if name == "" {
t.Skipf("Skipping test due to missing SCW_DEFAULT_PROJECT_ID environment variable")
}

return name
}

func getCwd(t *testing.T) string {
cwd, err := os.Getwd()
if err != nil {
Expand All @@ -34,11 +25,7 @@ func getCwd(t *testing.T) string {
}

func getBaseOptions(t *testing.T) integration.ProgramTestOptions {
project_id := getProjectId(t)
return integration.ProgramTestOptions{
Config: map[string]string{
"project_id": project_id,
},
LocalProviders: []integration.LocalDependency{{
Package: "talos",
Path: filepath.Join(getCwd(t), "..", "bin"),
Expand Down

0 comments on commit 8e55e0b

Please sign in to comment.