Only run cassandra tests on Travis for right now

This commit is contained in:
Jeff Mitchell 2017-05-09 08:36:20 -04:00
parent 37d9b58769
commit 2e567bd5e7
2 changed files with 18 additions and 0 deletions

View File

@ -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)

View File

@ -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()