mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 12:01:23 +02:00
Only run cassandra tests on Travis for right now
This commit is contained in:
parent
37d9b58769
commit
2e567bd5e7
@ -74,6 +74,9 @@ func cleanupTestContainer(t *testing.T, cid dockertest.ContainerID) {
|
||||
}
|
||||
|
||||
func TestBackend_basic(t *testing.T) {
|
||||
if os.Getenv("TRAVIS") != "true" {
|
||||
t.SkipNow()
|
||||
}
|
||||
config := logical.TestBackendConfig()
|
||||
config.StorageView = &logical.InmemStorage{}
|
||||
b, err := Factory(config)
|
||||
@ -97,6 +100,9 @@ func TestBackend_basic(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestBackend_roleCrud(t *testing.T) {
|
||||
if os.Getenv("TRAVIS") != "true" {
|
||||
t.SkipNow()
|
||||
}
|
||||
config := logical.TestBackendConfig()
|
||||
config.StorageView = &logical.InmemStorage{}
|
||||
b, err := Factory(config)
|
||||
|
||||
@ -70,6 +70,9 @@ func prepareCassandraTestContainer(t *testing.T) (cleanup func(), retURL string)
|
||||
}
|
||||
|
||||
func TestCassandra_Initialize(t *testing.T) {
|
||||
if os.Getenv("TRAVIS") != "true" {
|
||||
t.SkipNow()
|
||||
}
|
||||
cleanup, connURL := prepareCassandraTestContainer(t)
|
||||
defer cleanup()
|
||||
|
||||
@ -100,6 +103,9 @@ func TestCassandra_Initialize(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCassandra_CreateUser(t *testing.T) {
|
||||
if os.Getenv("TRAVIS") != "true" {
|
||||
t.SkipNow()
|
||||
}
|
||||
cleanup, connURL := prepareCassandraTestContainer(t)
|
||||
defer cleanup()
|
||||
|
||||
@ -132,6 +138,9 @@ func TestCassandra_CreateUser(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMyCassandra_RenewUser(t *testing.T) {
|
||||
if os.Getenv("TRAVIS") != "true" {
|
||||
t.SkipNow()
|
||||
}
|
||||
cleanup, connURL := prepareCassandraTestContainer(t)
|
||||
defer cleanup()
|
||||
|
||||
@ -169,6 +178,9 @@ func TestMyCassandra_RenewUser(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCassandra_RevokeUser(t *testing.T) {
|
||||
if os.Getenv("TRAVIS") != "true" {
|
||||
t.SkipNow()
|
||||
}
|
||||
cleanup, connURL := prepareCassandraTestContainer(t)
|
||||
defer cleanup()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user