Skip to content

Filter projects by ACTIVE status #108

Closed
@walterdolce

Description

@walterdolce

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions