Skip to content

Commit 19cf08b

Browse files
m-strzelczyktelpirion
authored andcommitted
docs(kms): Adding notes about required roles for running tests (#9169)
* docs(kms): Adding notes about required roles for running tests
1 parent 02b6b7e commit 19cf08b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

kms/snippets/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ To run this sample:
3434

3535
More information about the Cloud KMS quickstart is available at https://cloud.google.com/kms/docs/quickstart
3636

37+
## Test permissions
38+
39+
The service account running the tests needs to have the following roles:
40+
* roles/cloudkms.admin
41+
* roles/cloudkms.cryptoKeyEncrypterDecrypter
42+
* roles/cloudkms.cryptoOperator
43+
* roles/cloudkms.publicKeyViewer
44+
* roles/cloudkms.signerVerifier
45+
3746
## Additional Information
3847

3948
These samples use the [Google Cloud Client Library for Python][client_library_python].

kms/snippets/snippets_test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
13+
"""
14+
Tests for the KMS samples.
15+
16+
The service account running the tests needs to have the following roles:
17+
* roles/cloudkms.admin
18+
* roles/cloudkms.cryptoKeyEncrypterDecrypter
19+
* roles/cloudkms.cryptoOperator
20+
* roles/cloudkms.publicKeyViewer
21+
* roles/cloudkms.signerVerifier
22+
"""
1323

1424
import datetime
1525
import hashlib

0 commit comments

Comments
 (0)