brash-gigabyte-81569
04/06/2023, 3:31 PMlimited-rainbow-51650
04/06/2023, 5:46 PMancient-policeman-24615
04/06/2023, 6:10 PMConstruct
function, so you can test them by calling server.Construct
(here) instead of calling server.Invoke
.brash-gigabyte-81569
04/06/2023, 6:14 PMancient-policeman-24615
04/06/2023, 6:15 PMbrash-gigabyte-81569
04/06/2023, 6:17 PMserver := integration.NewServer("foo", semver.Version{Minor: 1}, provider())
r, err := server.Construct(p.ConstructRequest{
URN: "urn:pulumi:dev::test::foo:bar:Bar::test",
Preview: false,
Construct: func(ctx p.Context, cf p.ConstructFunc) (p.ConstructResponse, error) {
comp, err := cf(ctx, ComponentArgs{
Fizz: "Buzz",
})
if err != nil {
return nil, err
}
return ????, nil
},
})
ancient-policeman-24615
04/07/2023, 12:16 AMintegration
with a component resources right now.p.ConstructResponse{}
and assert within the p.ConstructRequest.Construct
function that comp
has the desired output.brash-gigabyte-81569
04/07/2023, 7:25 PM