Skip to content

Commit afd9366

Browse files
committed
adapt to new versions
Signed-off-by: Javier G. Sogo <[email protected]>
1 parent 8d6636e commit afd9366

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/network/token_provider.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ mod tests {
192192
when.method(POST)
193193
.path(endpoint)
194194
.header("Accept", "application/json")
195-
.x_www_form_urlencoded_tuple("reponse_type", "cloud_iam")
196-
.x_www_form_urlencoded_tuple("grant_type", "urn:ibm:params:oauth:grant-type:apikey")
197-
.x_www_form_urlencoded_tuple("apikey", apikey);
195+
.form_urlencoded_tuple("reponse_type", "cloud_iam")
196+
.form_urlencoded_tuple("grant_type", "urn:ibm:params:oauth:grant-type:apikey")
197+
.form_urlencoded_tuple("apikey", apikey);
198198
then.status(200)
199199
.header("content-type", "application/json")
200200
.json_body(serde_json::json!(

0 commit comments

Comments
 (0)