Skip to content

Commit

Permalink
revert specific azure-native plugin host
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-Ajaj committed Jan 8, 2025
1 parent 3cbd95b commit e61da82
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions pkg/codegen/java/gen_program_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import (

"github.com/pulumi/pulumi/pkg/v3/codegen/pcl"
"github.com/pulumi/pulumi/pkg/v3/codegen/testing/test"
"github.com/pulumi/pulumi/pkg/v3/codegen/testing/utils"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin"
"github.com/stretchr/testify/assert"
)

Expand All @@ -32,21 +30,9 @@ func TestGenerateJavaProgram(t *testing.T) {
continue
}

var pluginHost plugin.Host
if name == "azure-native-pp" {
pluginHost = utils.NewHostWithProviders(testdataPath,
utils.NewSchemaProvider("azure-native", "1.56.0"))
}

bindOptions := []pcl.BindOption{pcl.SkipResourceTypechecking}

if pluginHost != nil {
bindOptions = append(bindOptions, pcl.PluginHost(pluginHost))
}

tests = append(tests, test.ProgramTest{
Directory: strings.TrimSuffix(name, "-pp"),
BindOptions: bindOptions,
BindOptions: []pcl.BindOption{pcl.SkipResourceTypechecking},
})
}
test.TestProgramCodegen(t, test.ProgramCodegenOptions{
Expand Down

0 comments on commit e61da82

Please sign in to comment.