terraform-provider-ibm
terraform-provider-ibm copied to clipboard
Update datasource to return nil if resource group does not exist instead of error
Community Note
- Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request
Resolves https://github.com/IBM-Cloud/terraform-provider-ibm/issues/3960
Output from acceptance testing:
make testacc TEST=./ibm/service/resourcemanager TESTARGS='-run=TestAccIBMResourceGroupDataSource*'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./ibm/service/resourcemanager -v -run=TestAccIBMResourceGroupDataSource* -timeout 700m
=== RUN TestAccIBMResourceGroupDataSource_Basic
--- PASS: TestAccIBMResourceGroupDataSource_Basic (20.37s)
=== RUN TestAccIBMResourceGroupDataSource_Default_false
--- PASS: TestAccIBMResourceGroupDataSource_Default_false (1.63s)
PASS