Hey Fabio, the way we managed it is that we created a new class that inherits ComponentResource (Python) and expose these resources as class properties, so we can access them from the outside
f
freezing-van-87649
10/22/2021, 6:17 PM
One option we’ve been experimenting with is capturing them in the mock.
We’ve got a mock option that captures all the resource/api call invocations and added some helper methods to find resources created with a given type.
h
hallowed-teacher-48474
10/22/2021, 11:31 PM
@freezing-van-87649 Nicee, this could be useful! 🤓
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.