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