2023-01-30 19:30:30 +00:00
|
|
|
//go:build (python || all) && !xplatform_acceptance
|
2020-09-02 16:11:15 +00:00
|
|
|
|
2020-02-13 18:40:56 +00:00
|
|
|
package ints
|
|
|
|
|
|
|
|
import (
|
|
|
|
"path/filepath"
|
|
|
|
"testing"
|
|
|
|
|
2021-03-17 13:20:05 +00:00
|
|
|
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
|
2020-02-13 18:40:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestCustomTimeouts(t *testing.T) {
|
2022-03-04 08:17:41 +00:00
|
|
|
t.Parallel()
|
|
|
|
|
2020-02-13 18:40:56 +00:00
|
|
|
opts := &integration.ProgramTestOptions{
|
2020-02-23 03:32:06 +00:00
|
|
|
Dir: filepath.Join(".", "python", "success"),
|
2020-02-13 18:40:56 +00:00
|
|
|
Dependencies: []string{
|
|
|
|
filepath.Join("..", "..", "..", "sdk", "python", "env", "src"),
|
|
|
|
},
|
2022-03-04 08:17:41 +00:00
|
|
|
Quick: true,
|
|
|
|
DestroyOnCleanup: true,
|
2020-02-23 03:32:06 +00:00
|
|
|
}
|
|
|
|
integration.ProgramTest(t, opts)
|
|
|
|
|
|
|
|
opts = &integration.ProgramTestOptions{
|
|
|
|
Dir: filepath.Join(".", "python", "failure"),
|
|
|
|
Dependencies: []string{
|
|
|
|
filepath.Join("..", "..", "..", "sdk", "python", "env", "src"),
|
2020-02-13 18:40:56 +00:00
|
|
|
},
|
2022-03-04 08:17:41 +00:00
|
|
|
Quick: true,
|
|
|
|
DestroyOnCleanup: true,
|
|
|
|
ExpectFailure: true,
|
2020-02-13 18:40:56 +00:00
|
|
|
}
|
|
|
|
integration.ProgramTest(t, opts)
|
|
|
|
}
|