Upgrade pulumi-go-provider (#268)

Fixes https://github.com/pulumi/pulumi-docker-build/issues/262.

@iwahbe I realized while putting this together that the provider config
case wasn't actually tested e2e, and I'm skeptical it was ever actually
working. I think it would be reasonable to pull in
https://github.com/pulumi/pulumi-docker-build/pull/253 IMO.
This commit is contained in:
Bryce Lampe
2024-09-27 09:57:50 -07:00
committed by GitHub
parent 242d99d4d6
commit 30a26f61e4
7 changed files with 39 additions and 3 deletions

View File

@@ -147,6 +147,18 @@ func TestCaching(t *testing.T) {
}
}
func TestConfig(t *testing.T) {
cwd, err := os.Getwd()
require.NoError(t, err)
test := integration.ProgramTestOptions{
Dir: path.Join(cwd, "tests", "config"),
Dependencies: []string{"@pulumi/docker-build"},
}
integration.ProgramTest(t, &test)
}
type ECR struct {
address string
username string

View File

@@ -0,0 +1,3 @@
name: test-buildx-config
runtime: nodejs
description: A minimal TypeScript Pulumi program

View File

@@ -0,0 +1,5 @@
import * as buildx from "@pulumi/docker-build";
new buildx.Provider("with-structured-config", {
registries: [{ username: "foo", password: "bar", address: "docker.io" }],
});

View File

@@ -0,0 +1,9 @@
{
"name": "test-buildx-caching",
"devDependencies": {
"@types/node": "^20.0.0"
},
"dependencies": {
"@pulumi/pulumi": "^3.128.0"
}
}