package vault import ( "fmt" "testing" r "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" "github.com/hashicorp/vault/api" ) func TestResourcePolicy(t *testing.T) { r.Test(t, r.TestCase{ Providers: testProviders, PreCheck: func() { testAccPreCheck(t) }, Steps: []r.TestStep{ r.TestStep{ Config: testResourcePolicy_initialConfig, Check: testResourcePolicy_initialCheck, }, r.TestStep{ Config: testResourcePolicy_updateConfig, Check: testResourcePolicy_updateCheck, }, }, }) } var testResourcePolicy_initialConfig = ` resource "vault_policy" "test" { name = "dev-team" policy = <