URL details: antonydenyer.github.io/2020-08-14-kotlin-testcontainers-mockk-gcs/

URL title: Testing Google Cloud Storage with Testcontainers and MockK
URL description: I wanted to be able to test our integration with Google Cloud Storage. We’ve got a simple private bucket with some text blobs. The code to get the data out is straightforward. val storage: Storage = StorageOptions.newBuilder() .build() .service fun get(file: String): String { val buffer = ByteArrayOutputStream() storage.get("my_bucket", file) .downloadTo(buffer) return buffer.toString() } Testing with MockK But to test this code is a bit of a pig. The sdk implementation doesn’t have a simple way to get the
URL last crawled: 2022-09-18
URL speed: 0.562 MB/s, downloaded in 0.080 seconds

open external url

We found no external links pointing to this url.