package vault import ( "fmt" "testing" r "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) func TestDataSourceGenericSecret(t *testing.T) { r.Test(t, r.TestCase{ Providers: testProviders, PreCheck: func() { testAccPreCheck(t) }, Steps: []r.TestStep{ r.TestStep{ Config: testDataSourceGenericSecret_config, Check: testDataSourceGenericSecret_check, }, }, }) } var testDataSourceGenericSecret_config = ` resource "vault_generic_secret" "test" { path = "secret/foo" data_json = <