GCS kullanan yazılımları test etmek için TestContainers kullanılabilir. Bir örnek burada. Açıklaması şöyle
Google Cloud offers a series of emulators for Testcontainers, such as an emulator for BigQuery or PubSub. Unfortunately, an emulator for Google Cloud Storage is not available.However, fsouza, a GitHub user, generously made an Open Source library for emulating Google Cloud Storage API.
Açıklaması şöyle
From the left menu, go to Cloud Storage and then you can create a bucket.
Şeklen şöyle
Google Cloud Storage'a erişmek için Service Account lazım. Şöyle yaparız
- Click on the left menu and IAM & Admin -> Service Accounts
- Click on the CREATE SERVICE ACCOUNT
- Now you can fill in the required details.
- Then click on the created service account email.
- Then click on KEYS -> ADD KEY -> Create new key as below.
- Then it will ask about the key type, choose JSON and the key will be downloaded. This is required for the Spring Boot service.
Hiç yorum yok:
Yorum Gönder