mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-17 08:41:12 +01:00
Only run cassandra test with VAULT_ACC set
This commit is contained in:
parent
2ee62e004d
commit
c38b0e0ee7
@ -62,7 +62,6 @@ func prepareCassandraTestContainer(t *testing.T) (func(), string, int) {
|
|||||||
Password: "cassandra",
|
Password: "cassandra",
|
||||||
}
|
}
|
||||||
clusterConfig.ProtoVersion = 4
|
clusterConfig.ProtoVersion = 4
|
||||||
clusterConfig.DisableInitialHostLookup = true
|
|
||||||
clusterConfig.Port = port
|
clusterConfig.Port = port
|
||||||
|
|
||||||
session, err := clusterConfig.CreateSession()
|
session, err := clusterConfig.CreateSession()
|
||||||
@ -79,7 +78,7 @@ func prepareCassandraTestContainer(t *testing.T) (func(), string, int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestBackend_basic(t *testing.T) {
|
func TestBackend_basic(t *testing.T) {
|
||||||
if os.Getenv("TRAVIS") != "true" {
|
if os.Getenv("VAULT_ACC") == "" {
|
||||||
t.SkipNow()
|
t.SkipNow()
|
||||||
}
|
}
|
||||||
config := logical.TestBackendConfig()
|
config := logical.TestBackendConfig()
|
||||||
@ -103,7 +102,7 @@ func TestBackend_basic(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestBackend_roleCrud(t *testing.T) {
|
func TestBackend_roleCrud(t *testing.T) {
|
||||||
if os.Getenv("TRAVIS") != "true" {
|
if os.Getenv("VAULT_ACC") == "" {
|
||||||
t.SkipNow()
|
t.SkipNow()
|
||||||
}
|
}
|
||||||
config := logical.TestBackendConfig()
|
config := logical.TestBackendConfig()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user