INNER CODE UNIT · Go
TestDataSource_Query_EmptyElementValue
hashicorp/terraform-provider-external · internal/provider/data_source_test.go:196
func TestDataSource_Query_EmptyElementValue(t *testing.T) {
programPath, err := buildDataSourceTestProgram()
if err != nil {
t.Fatal(err)
return
}
resource.UnitTest(t, resource.TestCase{
ProtoV5ProviderFactories: protoV5ProviderFactories(),
Steps: []resource.TestStep{
{
Config: fmt.Sprintf(`
data "external" "test" {
program = [%[1]q]
query = {
value = "",
}