@@ -94,7 +94,7 @@ def call_get_secret():
94
94
secret_response = client .get_secret ("secret_label" )
95
95
self .assertEqual (secret_response , secret )
96
96
self ._test_client (call_get_secret ,
97
- '/requests/GetUserSecretByLabelRequest' , {'Label' : "secret_label" , 'JWE' : _TEST_JWT },
97
+ '/requests/GetUserSecretByLabelRequest' , {'Label' : "secret_label" },
98
98
secret = secret )
99
99
100
100
def test_get_secret_handles_unsuccessful (self ):
@@ -103,7 +103,7 @@ def call_get_secret():
103
103
with self .assertRaises (BackendError ):
104
104
secret_response = client .get_secret ("secret_label" )
105
105
self ._test_client (call_get_secret ,
106
- '/requests/GetUserSecretByLabelRequest' , {'Label' : "secret_label" , 'JWE' : _TEST_JWT },
106
+ '/requests/GetUserSecretByLabelRequest' , {'Label' : "secret_label" },
107
107
success = False )
108
108
109
109
def test_get_secret_validates_label (self ):
@@ -122,7 +122,7 @@ def call_get_secret():
122
122
secret_response = client .get_gcloud_credential ()
123
123
self .assertEqual (secret_response , secret )
124
124
self ._test_client (call_get_secret ,
125
- '/requests/GetUserSecretByLabelRequest' , {'Label' : "__gcloud_sdk_auth__" , 'JWE' : _TEST_JWT },
125
+ '/requests/GetUserSecretByLabelRequest' , {'Label' : "__gcloud_sdk_auth__" },
126
126
secret = secret )
127
127
128
128
def test_get_gcloud_secret_handles_unsuccessful (self ):
@@ -131,7 +131,7 @@ def call_get_secret():
131
131
with self .assertRaises (NotFoundError ):
132
132
secret_response = client .get_gcloud_credential ()
133
133
self ._test_client (call_get_secret ,
134
- '/requests/GetUserSecretByLabelRequest' , {'Label' : "__gcloud_sdk_auth__" , 'JWE' : _TEST_JWT },
134
+ '/requests/GetUserSecretByLabelRequest' , {'Label' : "__gcloud_sdk_auth__" },
135
135
success = False )
136
136
137
137
@@ -150,10 +150,10 @@ def call_get_gcs_access_token():
150
150
secret_response = client ._get_gcs_access_token ()
151
151
self .assertEqual (secret_response , (secret , now + timedelta (seconds = 3600 )))
152
152
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 },
154
154
secret = secret )
155
155
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 },
157
157
secret = secret )
158
158
159
159
def test_get_access_token_handles_unsuccessful (self ):
@@ -162,4 +162,4 @@ def call_get_access_token():
162
162
with self .assertRaises (BackendError ):
163
163
client .get_bigquery_access_token ()
164
164
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