Skip to content

Add negative QueryResultChecks to confirm that a resource is not included in list results #555

@gdavison

Description

@gdavison

terraform-plugin-testing version

github.com/hashicorp/terraform-plugin-testing v1.14.0-beta.1

Use cases

When a list resource is configured to return a subset of remote resources, we are likely to want to validate that the correct resources are not included in the results.

Proposal

Add QueryResultChecks such as:

  • querycheck.ContainsNoResourceWithName
  • querycheck.ExpectNoIdentity

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions