Unverified Commit c38b0e0e authored by Chris Hoffman's avatar Chris Hoffman Committed by GitHub
Browse files

Only run cassandra test with VAULT_ACC set

parent 2ee62e00
Showing with 2 additions and 3 deletions
+2 -3
......@@ -62,7 +62,6 @@ func prepareCassandraTestContainer(t *testing.T) (func(), string, int) {
Password: "cassandra",
}
clusterConfig.ProtoVersion = 4
clusterConfig.DisableInitialHostLookup = true
clusterConfig.Port = port
session, err := clusterConfig.CreateSession()
......@@ -79,7 +78,7 @@ func prepareCassandraTestContainer(t *testing.T) (func(), string, int) {
}
func TestBackend_basic(t *testing.T) {
if os.Getenv("TRAVIS") != "true" {
if os.Getenv("VAULT_ACC") == "" {
t.SkipNow()
}
config := logical.TestBackendConfig()
......@@ -103,7 +102,7 @@ func TestBackend_basic(t *testing.T) {
}
func TestBackend_roleCrud(t *testing.T) {
if os.Getenv("TRAVIS") != "true" {
if os.Getenv("VAULT_ACC") == "" {
t.SkipNow()
}
config := logical.TestBackendConfig()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment