Skip to content
Snippets Groups Projects

Introduce GCS adapter for remote cache

Merged Tomasz Maczukin requested to merge introduce-gcs-cache-support into master
1 unresolved thread
Compare and Show latest version
3 files
+ 3
5
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -105,7 +105,7 @@ func TestAdapterOperation_MissingCredentials(t *testing.T) {
"no-credentials": {expectedError: "storage: missing required GoogleAccessID"},
"no-access-id": {privateKey: privateKey, expectedError: "storage: missing required GoogleAccessID"},
"no-private-key": {accessId: "access-id", expectedError: "storage: exactly one of PrivateKey or SignedBytes must be set"},
"no-gcs-config": {noGCSConfig: true, expectedError: "Missing GCS credentials"},
"no-gcs-config": {noGCSConfig: true, expectedError: "Missing GCS credentials"},
}
for name, tc := range tests {
@@ -145,7 +145,6 @@ func testAdapterOperation(t *testing.T, name string, operation func() *url.URL)
})
}
func TestAdapterOperation(t *testing.T) {
config := defaultGCSCache()
build := defaultCacheBuild(config)
@@ -157,4 +156,4 @@ func TestAdapterOperation(t *testing.T) {
testAdapterOperation(t, "GetDownloadURL", adapter.GetDownloadURL)
testAdapterOperation(t, "GetUploadURL", adapter.GetUploadURL)
}
\ No newline at end of file
}
Loading