Skip to content

Commit ebf87dd

Browse files
rsamborskim-strzelczyk
authored andcommitted
dee-migration: fixing tests
1 parent 5d91332 commit ebf87dd

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

privateca/snippets/noxfile_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
3131
# build specific Cloud project. You can also use your own string
3232
# to use your own Cloud project.
33-
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
34-
# "gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_PROJECT",
33+
# "gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
34+
"gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_PROJECT",
3535
# A dictionary you want to inject into your test. Don't put any
3636
# secrets here. These values will override predefined values.
3737
"envs": {},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pytest==7.2.1
22
google-auth==2.16.0
33
cryptography==39.0.0
4-
backoff=2.2.1
4+
backoff==2.2.1

privateca/snippets/test_certificate_authorities.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import re
1616
import typing
1717
import uuid
18-
import backoff
1918

19+
import backoff
2020
import google.auth
2121

2222
from create_ca_pool import create_ca_pool
@@ -39,8 +39,8 @@
3939
def generate_name() -> str:
4040
return "i" + uuid.uuid4().hex[:10]
4141

42-
@backoff.on_exception(backoff.expo,
43-
Exception, max_tries=3)
42+
43+
@backoff.on_exception(backoff.expo, Exception, max_tries=3)
4444
def test_create_certificate(capsys: typing.Any) -> None:
4545
CA_POOL_NAME = generate_name()
4646
CA_NAME = generate_name()

privateca/snippets/test_subordinate_ca.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import re
1717
import typing
1818
import uuid
19-
import backoff
2019

20+
import backoff
2121
import google.auth
2222
import google.cloud.security.privateca_v1 as privateca_v1
2323

@@ -37,8 +37,8 @@
3737
def generate_name() -> str:
3838
return "test-" + uuid.uuid4().hex[:10]
3939

40-
@backoff.on_exception(backoff.expo,
41-
Exception, max_tries=3)
40+
41+
@backoff.on_exception(backoff.expo, Exception, max_tries=3)
4242
def test_subordinate_certificate_authority(
4343
certificate_authority, capsys: typing.Any
4444
) -> None:

0 commit comments

Comments
 (0)