Skip to content

Commit

Permalink
Bump pf for 3.90.0 (#2402)
Browse files Browse the repository at this point in the history
Bump bridge dependency in PF for 3.90.0
  • Loading branch information
VenelinMartinov authored Sep 6, 2024
2 parents ae899ed + 3532882 commit 7af357e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dynamic/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require (
github.com/hexops/autogold/v2 v2.2.1
github.com/opentofu/opentofu/shim v0.0.0-00010101000000-000000000000
github.com/pulumi/pulumi-terraform-bridge/pf v0.0.0-00010101000000-000000000000
github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0
github.com/stretchr/testify v1.9.0
google.golang.org/protobuf v1.34.0
)
Expand Down
3 changes: 2 additions & 1 deletion dynamic/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ func TestSchemaGeneration(t *testing.T) {
}

testSchema("hashicorp/random", "3.3.0")
testSchema("Azure/alz", "0.11.1")
// TODO[pulumi/pulumi-terraform-bridge#2401]: Re-enable these tests once the issue is resolved.
// testSchema("Azure/alz", "0.11.1")
testSchema("Backblaze/b2", "0.8.9")
testSchema("databricks/databricks", "1.50.0")
}
Expand Down
2 changes: 1 addition & 1 deletion pf/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0
github.com/hexops/autogold/v2 v2.2.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8
github.com/stretchr/testify v1.9.0
google.golang.org/grpc v1.63.2
Expand Down
2 changes: 1 addition & 1 deletion pf/tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/hexops/autogold/v2 v2.2.1
github.com/pulumi/providertest v0.0.15
github.com/pulumi/pulumi-terraform-bridge/pf v0.0.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0
github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tests v0.0.0-00010101000000-000000000000
github.com/stretchr/testify v1.9.0
github.com/terraform-providers/terraform-provider-random/randomshim v0.0.0
Expand Down
14 changes: 9 additions & 5 deletions pf/tests/schema_and_program_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tfbridgetests

import (
"context"
"encoding/json"
"os"
"path/filepath"
"testing"
Expand Down Expand Up @@ -138,11 +139,14 @@ resources:
res := pt.Preview(optpreview.Diff())
t.Log(res.StdOut)

diffs, err := pt.GrpcLog().Diffs()
require.NoError(t, err)

assert.Len(t, diffs, 1)
assert.Equal(t, "DIFF_SOME", diffs[0].Response.Changes.String())
for _, entry := range pt.GrpcLog().Entries {
if entry.Method == "/pulumirpc.ResourceProvider/Diff" {
var diff map[string]interface{}
err := json.Unmarshal(entry.Response, &diff)
require.NoError(t, err)
assert.Equal(t, "DIFF_SOME", diff["changes"])
}
}
}

func TestIDAttribute(t *testing.T) {
Expand Down

0 comments on commit 7af357e

Please sign in to comment.