Skip to content

Commit

Permalink
Add new detector definition in provider
Browse files Browse the repository at this point in the history
  • Loading branch information
MovieStoreGuy committed Oct 28, 2024
1 parent f7b8775 commit bfac47b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/definition/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/signalfx/signalfx-go"

"github.com/splunk-terraform/terraform-provider-signalfx/internal/definition/detector"
"github.com/splunk-terraform/terraform-provider-signalfx/internal/definition/dimension"
"github.com/splunk-terraform/terraform-provider-signalfx/internal/definition/team"
pmeta "github.com/splunk-terraform/terraform-provider-signalfx/internal/providermeta"
Expand Down Expand Up @@ -71,7 +72,8 @@ func New() *schema.Provider {
},
},
ResourcesMap: map[string]*schema.Resource{
team.ResourceName: team.NewResource(),
team.ResourceName: team.NewResource(),
detector.ResourceName: detector.NewResource(),
},
DataSourcesMap: map[string]*schema.Resource{
dimension.DataSourceName: dimension.NewDataSource(),
Expand Down
1 change: 1 addition & 0 deletions internal/definition/provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func TestProviderHasResource(t *testing.T) {

expected := []string{
"signalfx_team",
"signalfx_detector",
}

for name := range p.ResourcesMap {
Expand Down

0 comments on commit bfac47b

Please sign in to comment.