From e50e331ffc15b79489f84f373cb7ba4599acff13 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 1 Jul 2016 11:45:56 -0400 Subject: [PATCH] Always run transit acceptance tests --- builtin/logical/transit/backend_test.go | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/builtin/logical/transit/backend_test.go b/builtin/logical/transit/backend_test.go index 01e74145e..49296a0f9 100644 --- a/builtin/logical/transit/backend_test.go +++ b/builtin/logical/transit/backend_test.go @@ -4,7 +4,6 @@ import ( "encoding/base64" "fmt" "math/rand" - "os" "strconv" "strings" "sync" @@ -24,8 +23,7 @@ const ( func TestBackend_basic(t *testing.T) { decryptData := make(map[string]interface{}) logicaltest.Test(t, logicaltest.TestCase{ - AcceptanceTest: true, - Factory: Factory, + Factory: Factory, Steps: []logicaltest.TestStep{ testAccStepWritePolicy(t, "test", false), testAccStepReadPolicy(t, "test", false, false), @@ -48,8 +46,7 @@ func TestBackend_basic(t *testing.T) { func TestBackend_upsert(t *testing.T) { decryptData := make(map[string]interface{}) logicaltest.Test(t, logicaltest.TestCase{ - AcceptanceTest: true, - Factory: Factory, + Factory: Factory, Steps: []logicaltest.TestStep{ testAccStepReadPolicy(t, "test", true, false), testAccStepEncryptUpsert(t, "test", testPlaintext, decryptData), @@ -62,8 +59,7 @@ func TestBackend_upsert(t *testing.T) { func TestBackend_datakey(t *testing.T) { dataKeyInfo := make(map[string]interface{}) logicaltest.Test(t, logicaltest.TestCase{ - AcceptanceTest: true, - Factory: Factory, + Factory: Factory, Steps: []logicaltest.TestStep{ testAccStepWritePolicy(t, "test", false), testAccStepReadPolicy(t, "test", false, false), @@ -78,8 +74,7 @@ func TestBackend_rotation(t *testing.T) { decryptData := make(map[string]interface{}) encryptHistory := make(map[int]map[string]interface{}) logicaltest.Test(t, logicaltest.TestCase{ - AcceptanceTest: true, - Factory: Factory, + Factory: Factory, Steps: []logicaltest.TestStep{ testAccStepWritePolicy(t, "test", false), testAccStepEncryptVX(t, "test", testPlaintext, decryptData, 0, encryptHistory), @@ -136,8 +131,7 @@ func TestBackend_rotation(t *testing.T) { func TestBackend_basic_derived(t *testing.T) { decryptData := make(map[string]interface{}) logicaltest.Test(t, logicaltest.TestCase{ - AcceptanceTest: true, - Factory: Factory, + Factory: Factory, Steps: []logicaltest.TestStep{ testAccStepWritePolicy(t, "test", true), testAccStepReadPolicy(t, "test", false, true), @@ -672,12 +666,6 @@ func TestConvergentEncryption(t *testing.T) { } func TestPolicyFuzzing(t *testing.T) { - // Don't run if not during acceptance tests - if os.Getenv(logicaltest.TestEnvVar) == "" { - t.Skip(fmt.Sprintf("Acceptance tests skipped unless env '%s' set", logicaltest.TestEnvVar)) - return - } - var be *backend sysView := logical.TestSystemView()