File tree Expand file tree Collapse file tree 10 files changed +39
-21
lines changed
Expand file tree Collapse file tree 10 files changed +39
-21
lines changed Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
22using System . Linq ;
33using Pulumi ;
4- using Boilerplate = Mynamespace . ProviderBoilerplate ;
4+ using Boilerplate = Pulumi . ProviderBoilerplate ;
55
66return await Deployment . RunAsync ( ( ) =>
77{
1515 Length = 24 ,
1616 } ) ;
1717
18- return new Dictionary < string , object ? >
19- {
20- [ "output" ] =
21- {
22- { "value" , myRandomResource . Result } ,
23- } ,
24- } ;
18+ return new Dictionary < string , object ? > { } ;
2519} ) ;
2620
Original file line number Diff line number Diff line change 33
44package examples
55
6- import "testing"
6+ import (
7+ "testing"
8+
9+ "github.com/pulumi/providertest/pulumitest"
10+ "github.com/pulumi/providertest/pulumitest/opttest"
11+ )
712
813func TestDotnet (t * testing.T ) {
9- // TODO
14+ pt := pulumitest .NewPulumiTest (t , "dotnet" ,
15+ opttest .DotNetReference ("Pulumi.ProviderBoilerplate" , "../sdk/dotnet" ),
16+ opttest .AttachProviderServer ("provider-boilerplate" , providerFactory ),
17+ )
18+
19+ pt .Preview (t )
20+ pt .Up (t )
21+ pt .Destroy (t )
1022}
Original file line number Diff line number Diff line change 11import * as pulumi from "@pulumi/pulumi" ;
2- import * as boilerplate from "@mynamespace /provider-boilerplate" ;
2+ import * as boilerplate from "@pulumi /provider-boilerplate" ;
33
44const myRandomResource = new boilerplate . Random ( "myRandomResource" , {
55 length : 24 ,
Original file line number Diff line number Diff line change 55 },
66 "dependencies" : {
77 "typescript" : " ^4.0.0" ,
8- "@pulumi/pulumi" : " 3.207.0" ,
9- "@mynamespace/provider-boilerplate" : " 1.0.0-alpha.0+dev"
8+ "@pulumi/pulumi" : " 3.207.0"
109 }
1110}
Original file line number Diff line number Diff line change @@ -11,10 +11,8 @@ import (
1111)
1212
1313func TestNodejsExampleLifecycle (t * testing.T ) {
14- t .Skip ("linking isn't working correctly" )
15-
1614 pt := pulumitest .NewPulumiTest (t , "nodejs" ,
17- opttest .YarnLink ("@mynamespace /provider-boilerplate" ),
15+ opttest .YarnLink ("@pulumi /provider-boilerplate" ),
1816 opttest .AttachProviderServer ("provider-boilerplate" , providerFactory ),
1917 )
2018
Original file line number Diff line number Diff line change 11import pulumi
2- import provider_boilerplate as boilerplate
2+ import pulumi_provider_boilerplate as boilerplate
33
44my_random_resource = boilerplate .Random ("myRandomResource" , length = 24 )
55my_random_component = boilerplate .RandomComponent ("myRandomComponent" , length = 24 )
Original file line number Diff line number Diff line change 1- pulumi-provide-boilerplate = =1.0.0
1+ pulumi_provide_boilerplate > =1.0.0
22pulumi >= 3.0.0 ,< 4.0.0
Original file line number Diff line number Diff line change 33
44package examples
55
6- import "testing"
6+ import (
7+ "testing"
8+
9+ "github.com/pulumi/providertest/pulumitest"
10+ "github.com/pulumi/providertest/pulumitest/opttest"
11+ )
712
813func TestPython (t * testing.T ) {
9- // TODO: https://github.com/pulumi/providertest/issues/39
14+ pt := pulumitest .NewPulumiTest (t , "python" ,
15+ opttest .SkipInstall (),
16+ opttest .PythonLink ("../sdk/python" ),
17+ opttest .AttachProviderServer ("provider-boilerplate" , providerFactory ),
18+ )
19+
20+ pt .Preview (t )
21+ pt .Up (t )
22+ pt .Destroy (t )
1023}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ toolchain go1.24.10
66
77require (
88 github.com/blang/semver v3.5.1+incompatible
9- github.com/pulumi/providertest v0.3.1
9+ github.com/pulumi/providertest v0.3.2-0.20251024161007-0fa5050ab7c9
1010 github.com/pulumi/pulumi-go-provider v1.1.2
1111 github.com/pulumi/pulumi-random/sdk/v4 v4.18.4
1212 github.com/pulumi/pulumi/sdk/v3 v3.206.0
Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob
181181github.com/pulumi/inflector v0.1.1 /go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY =
182182github.com/pulumi/providertest v0.3.1 h1:vlftr7TZlObh81mL88IhhF0/9ZbLrZZos4NAvR4HUUw =
183183github.com/pulumi/providertest v0.3.1 /go.mod h1:fFHUP4/9DRyYnHWiRnwcynMtM/a7hHR/QcJfcuZKO3A =
184+ github.com/pulumi/providertest v0.3.2-0.20251024161007-0fa5050ab7c9 h1:MecwPUe14foKgjw3OiQw0CXLuVCm4oICbEty2PjYJGw =
185+ github.com/pulumi/providertest v0.3.2-0.20251024161007-0fa5050ab7c9 /go.mod h1:OBpIGSQrw1FW9VNaHBtKCRxEoTISvx8JsxECmRqRgRQ =
184186github.com/pulumi/pulumi-go-provider v1.1.2 h1:NUQDXaftBDFTPMBPwxo8FhJUX0ymkv6a1XiXTnCDpvg =
185187github.com/pulumi/pulumi-go-provider v1.1.2 /go.mod h1:3lNIuxT/BArFyiKrVfv+UT7gMMtplss7V69KuBZ4zIk =
186188github.com/pulumi/pulumi-random/sdk/v4 v4.18.4 h1:mkZ3nB3xLTFZ8Fbh50bXTxiroGpjSyonTFcKovLxWME =
You can’t perform that action at this time.
0 commit comments