Description
At the moment, with the gcp_projects is possible to filter by project_id; project_name and project_number.
In a scenario where one is verifying the state of resources and the project name is like /^foo/
, but there are two projects called foo
with one of them scheduled for deletion, that will cause tests to fail because:
× Subnetwork platform-engineering-01-test
Project XXXXXX has been scheduled for deletion and cannot be used for API calls. Visit https://console.developers.google.com/iam-admin/projects?pendingDeletion=true to undelete the project.
But that's not a real failure, as something that does not exist anymore can't be tested.
It would be great to have the ability to filter by project status. Or completely discard projects which are not active (therefore not implementing the filter at all).
Does that make sense?
What do you think?
Activity