Skip to content

Commit

Permalink
remove test for validation
Browse files Browse the repository at this point in the history
I'm comfortable with Terraform handling this well
  • Loading branch information
jharley committed Sep 8, 2023
1 parent b560432 commit fc1c144
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions honeycombio/resource_column_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package honeycombio
import (
"context"
"fmt"
"regexp"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
Expand Down Expand Up @@ -61,28 +60,3 @@ resource "honeycombio_column" "test" {
dataset = "%s"
}`, keyName, dataset)
}

func TestAccHoneycombioColumn_validationErrors(t *testing.T) {
dataset := testAccDataset()

resource.ParallelTest(t, resource.TestCase{
PreCheck: testAccPreCheck(t),
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
{
Config: testAccColumnConfigWithType(dataset, "string"),
ExpectError: regexp.MustCompile(`expected type to be one of \[string float integer boolean\], got String`),
},
},
})
}

func testAccColumnConfigWithType(dataset, typeStr string) string {
return fmt.Sprintf(`
resource "honeycombio_column" "test" {
key_name = "duration_ms_test"
type = "%s"
dataset = "%s"
}`, typeStr, dataset)
}

0 comments on commit fc1c144

Please sign in to comment.