update gcs to use the new backend tests

This commit is contained in:
James Bardin 2018-02-20 20:36:08 -05:00
parent 85d6b1d9cc
commit 1fee5ae172
1 changed files with 8 additions and 3 deletions

View File

@ -136,8 +136,11 @@ func TestBackend(t *testing.T) {
be1 := setupBackend(t, bucket, noPrefix, noEncryptionKey)
backend.TestBackend(t, be0, be1)
backend.TestBackendStates(t, be0)
backend.TestBackendStateLocks(t, be0, be1)
backend.TestBackendStateForceUnlock(t, be0, be1)
}
func TestBackendWithPrefix(t *testing.T) {
t.Parallel()
@ -149,7 +152,8 @@ func TestBackendWithPrefix(t *testing.T) {
be1 := setupBackend(t, bucket, prefix+"/", noEncryptionKey)
backend.TestBackend(t, be0, be1)
backend.TestBackendStates(t, be0)
backend.TestBackendStateLocks(t, be0, be1)
}
func TestBackendWithEncryption(t *testing.T) {
t.Parallel()
@ -161,7 +165,8 @@ func TestBackendWithEncryption(t *testing.T) {
be1 := setupBackend(t, bucket, noPrefix, encryptionKey)
backend.TestBackend(t, be0, be1)
backend.TestBackendStates(t, be0)
backend.TestBackendStateLocks(t, be0, be1)
}
// setupBackend returns a new GCS backend.