You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Update a personal access token returns "Bad Request" response
371
371
Given new "UpdatePersonalAccessToken" request
372
-
And request contains "pat_uuid" parameter from "REPLACE.ME"
372
+
And request contains "pat_id" parameter from "REPLACE.ME"
373
373
And body with value {"data": {"attributes": {"name": "Updated Personal Access Token", "scopes": ["dashboards_read", "dashboards_write"]}, "id": "00112233-4455-6677-8899-aabbccddeeff", "type": "personal_access_tokens"}}
Scenario: Update a personal access token returns "Not Found" response
379
379
Given new "UpdatePersonalAccessToken" request
380
-
And request contains "pat_uuid" parameter from "REPLACE.ME"
380
+
And request contains "pat_id" parameter from "REPLACE.ME"
381
381
And body with value {"data": {"attributes": {"name": "Updated Personal Access Token", "scopes": ["dashboards_read", "dashboards_write"]}, "id": "00112233-4455-6677-8899-aabbccddeeff", "type": "personal_access_tokens"}}
382
382
When the request is sent
383
383
Then the response status is 404 Not Found
@@ -386,7 +386,7 @@ Feature: Key Management
386
386
Scenario: Update a personal access token returns "OK" response
387
387
Given there is a valid "personal_access_token" in the system
388
388
And new "UpdatePersonalAccessToken" request
389
-
And request contains "pat_uuid" parameter from "personal_access_token.data.id"
389
+
And request contains "pat_id" parameter from "personal_access_token.data.id"
390
390
And body with value {"data": {"type": "personal_access_tokens", "id": "{{ personal_access_token.data.id }}", "attributes": {"name": "{{ unique }}-updated"}}}
Scenario: Update an access token for a service account returns "Bad Request" response
249
249
Given new "UpdateServiceAccountAccessToken" request
250
250
And request contains "service_account_id" parameter from "REPLACE.ME"
251
-
And request contains "pat_uuid" parameter from "REPLACE.ME"
251
+
And request contains "pat_id" parameter from "REPLACE.ME"
252
252
And body with value {"data": {"attributes": {"name": "Updated Personal Access Token", "scopes": ["dashboards_read", "dashboards_write"]}, "id": "00112233-4455-6677-8899-aabbccddeeff", "type": "personal_access_tokens"}}
253
253
When the request is sent
254
254
Then the response status is 400 Bad Request
@@ -257,7 +257,7 @@ Feature: Service Accounts
257
257
Scenario: Update an access token for a service account returns "Not Found" response
258
258
Given new "UpdateServiceAccountAccessToken" request
259
259
And request contains "service_account_id" parameter from "REPLACE.ME"
260
-
And request contains "pat_uuid" parameter from "REPLACE.ME"
260
+
And request contains "pat_id" parameter from "REPLACE.ME"
261
261
And body with value {"data": {"attributes": {"name": "Updated Personal Access Token", "scopes": ["dashboards_read", "dashboards_write"]}, "id": "00112233-4455-6677-8899-aabbccddeeff", "type": "personal_access_tokens"}}
262
262
When the request is sent
263
263
Then the response status is 404 Not Found
@@ -268,7 +268,7 @@ Feature: Service Accounts
268
268
And there is a valid "service_account_access_token" for "service_account_user"
269
269
And new "UpdateServiceAccountAccessToken" request
270
270
And request contains "service_account_id" parameter from "service_account_user.data.id"
271
-
And request contains "pat_uuid" parameter from "service_account_access_token.data.id"
271
+
And request contains "pat_id" parameter from "service_account_access_token.data.id"
272
272
And body with value {"data": {"id": "{{ service_account_access_token.data.id }}", "type": "personal_access_tokens", "attributes": {"name": "{{ service_account_access_token.data.attributes.name }}-updated"}}}
0 commit comments