Skip to content

Commit

Permalink
add some info why the test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dikhan committed Sep 14, 2019
1 parent 7bf7c12 commit e020425
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openapi/data_source_factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ func TestDataSourceRead(t *testing.T) {
expectedError error
}{
{
// TODO: fix this test. The reason why it fails is because the data source is currently not configuring the properties
// of the resource in the terraform schema hence the call to save the data for label failing:
// Expected nil, but got: &errors.errorString{s:"Invalid address to set: []string{\"label\"}"}
// See: https://github.com/dikhan/terraform-provider-openapi/blob/feature/data-source-support/openapi/data_source_factory.go#L41
name: "fetch selected data source as per filter configuration (label=someLabel)",
filtersInput: []map[string]interface{}{
newFilter("label", []string{"someLabel"}),
Expand Down

0 comments on commit e020425

Please sign in to comment.