moduletest: update provider to match recent provider interface changes (#27904)

this fixes a bad merge on my part
This commit is contained in:
Kristin Laemmert 2021-02-24 12:29:45 -05:00 committed by GitHub
parent ff05362d51
commit e5a7586559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -481,10 +481,10 @@ func (p *Provider) ImportResourceState(req providers.ImportResourceStateRequest)
return res
}
// ValidateDataSourceConfig is used to to validate the resource configuration values.
func (p *Provider) ValidateDataSourceConfig(req providers.ValidateDataSourceConfigRequest) providers.ValidateDataSourceConfigResponse {
// ValidateDataResourceConfig is used to to validate the resource configuration values.
func (p *Provider) ValidateDataResourceConfig(req providers.ValidateDataResourceConfigRequest) providers.ValidateDataResourceConfigResponse {
// This provider has no data resouce types at all.
var res providers.ValidateDataSourceConfigResponse
var res providers.ValidateDataResourceConfigResponse
res.Diagnostics = res.Diagnostics.Append(fmt.Errorf("unsupported data source %s", req.TypeName))
return res
}