@@ -94,7 +94,7 @@ def call_get_secret():
9494 secret_response = client .get_secret ("secret_label" )
9595 self .assertEqual (secret_response , secret )
9696 self ._test_client (call_get_secret ,
97- '/requests/GetUserSecretByLabelRequest' , {'Label' : "secret_label" , 'JWE' : _TEST_JWT },
97+ '/requests/GetUserSecretByLabelRequest' , {'Label' : "secret_label" },
9898 secret = secret )
9999
100100 def test_get_secret_handles_unsuccessful (self ):
@@ -103,7 +103,7 @@ def call_get_secret():
103103 with self .assertRaises (BackendError ):
104104 secret_response = client .get_secret ("secret_label" )
105105 self ._test_client (call_get_secret ,
106- '/requests/GetUserSecretByLabelRequest' , {'Label' : "secret_label" , 'JWE' : _TEST_JWT },
106+ '/requests/GetUserSecretByLabelRequest' , {'Label' : "secret_label" },
107107 success = False )
108108
109109 def test_get_secret_validates_label (self ):
@@ -122,7 +122,7 @@ def call_get_secret():
122122 secret_response = client .get_gcloud_credential ()
123123 self .assertEqual (secret_response , secret )
124124 self ._test_client (call_get_secret ,
125- '/requests/GetUserSecretByLabelRequest' , {'Label' : "__gcloud_sdk_auth__" , 'JWE' : _TEST_JWT },
125+ '/requests/GetUserSecretByLabelRequest' , {'Label' : "__gcloud_sdk_auth__" },
126126 secret = secret )
127127
128128 def test_get_gcloud_secret_handles_unsuccessful (self ):
@@ -131,7 +131,7 @@ def call_get_secret():
131131 with self .assertRaises (NotFoundError ):
132132 secret_response = client .get_gcloud_credential ()
133133 self ._test_client (call_get_secret ,
134- '/requests/GetUserSecretByLabelRequest' , {'Label' : "__gcloud_sdk_auth__" , 'JWE' : _TEST_JWT },
134+ '/requests/GetUserSecretByLabelRequest' , {'Label' : "__gcloud_sdk_auth__" },
135135 success = False )
136136
137137
@@ -150,10 +150,10 @@ def call_get_gcs_access_token():
150150 secret_response = client ._get_gcs_access_token ()
151151 self .assertEqual (secret_response , (secret , now + timedelta (seconds = 3600 )))
152152 self ._test_client (call_get_bigquery_access_token ,
153- '/requests/GetUserSecretRequest' , {'Target' : GcpTarget .BIGQUERY .target , 'JWE' : _TEST_JWT },
153+ '/requests/GetUserSecretRequest' , {'Target' : GcpTarget .BIGQUERY .target },
154154 secret = secret )
155155 self ._test_client (call_get_gcs_access_token ,
156- '/requests/GetUserSecretRequest' , {'Target' : GcpTarget .GCS .target , 'JWE' : _TEST_JWT },
156+ '/requests/GetUserSecretRequest' , {'Target' : GcpTarget .GCS .target },
157157 secret = secret )
158158
159159 def test_get_access_token_handles_unsuccessful (self ):
@@ -162,4 +162,4 @@ def call_get_access_token():
162162 with self .assertRaises (BackendError ):
163163 client .get_bigquery_access_token ()
164164 self ._test_client (call_get_access_token ,
165- '/requests/GetUserSecretRequest' , {'Target' : GcpTarget .BIGQUERY .target , 'JWE' : _TEST_JWT }, success = False )
165+ '/requests/GetUserSecretRequest' , {'Target' : GcpTarget .BIGQUERY .target }, success = False )
0 commit comments