-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow overriding role expiry without having to remove and recreate ro…
…le (#1119) * feat: allow overriding role expiry without having to remove and recreate role * fix: remove some tests for outdated behavior
- Loading branch information
1 parent
2658e7a
commit 0ebd022
Showing
6 changed files
with
144 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
...snapshots__/PlayerController/Assigning the same role for same gameserver should fail.json
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...es/test/src/__snapshots__/PlayerController/Assigning the same role twice should fail.json
This file was deleted.
Oops, something went wrong.
82 changes: 82 additions & 0 deletions
82
...test/src/__snapshots__/PlayerController/Can override the expiry of a role assignment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"body": { | ||
"meta": {}, | ||
"data": { | ||
"createdAt": "2024-08-17T14:54:58.892Z", | ||
"updatedAt": "2024-08-17T14:54:59.406Z", | ||
"id": "0bc2831c-42fb-4bc8-876d-37a7f789cf63", | ||
"name": "Candice_Berge", | ||
"steamId": "xf5eryn8r1gs02tu", | ||
"xboxLiveId": "ne67y6p9cmjncz8m", | ||
"epicOnlineServicesId": "x606jagm8uou2go9", | ||
"steamAvatar": null, | ||
"steamLastFetch": null, | ||
"steamAccountCreated": null, | ||
"steamCommunityBanned": null, | ||
"steamEconomyBan": null, | ||
"steamVacBanned": null, | ||
"steamsDaysSinceLastBan": null, | ||
"steamNumberOfVACBans": null, | ||
"steamLevel": null, | ||
"roleAssignments": [ | ||
{ | ||
"createdAt": "2024-08-17T14:54:59.664Z", | ||
"updatedAt": "2024-08-17T14:54:59.690Z", | ||
"id": "0a6d9fe7-e80a-410a-bf12-7095eac25143", | ||
"playerId": "0bc2831c-42fb-4bc8-876d-37a7f789cf63", | ||
"roleId": "e6de15d8-f192-4a90-a663-c5322f2e2d6f", | ||
"gameServerId": null, | ||
"expiresAt": "2024-08-17T15:54:59.646Z", | ||
"role": { | ||
"createdAt": "2024-08-17T14:54:59.638Z", | ||
"updatedAt": "2024-08-17T14:54:59.639Z", | ||
"id": "e6de15d8-f192-4a90-a663-c5322f2e2d6f", | ||
"name": "Test role", | ||
"system": false, | ||
"permissions": [ | ||
{ | ||
"createdAt": "2024-08-17T14:54:59.641Z", | ||
"updatedAt": "2024-08-17T14:54:59.641Z", | ||
"id": "95ca3c75-4659-4be8-a1a9-3784cf84f0ea", | ||
"roleId": "e6de15d8-f192-4a90-a663-c5322f2e2d6f", | ||
"count": 0, | ||
"permissionId": "3b7f6e7e-14fa-48b2-9b62-2aff6575350f" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"playerId": "0bc2831c-42fb-4bc8-876d-37a7f789cf63", | ||
"roleId": "7b6d0471-cc33-4226-8155-d5584d559601", | ||
"role": { | ||
"createdAt": "2024-08-17T14:54:58.381Z", | ||
"updatedAt": "2024-08-17T14:54:58.382Z", | ||
"id": "7b6d0471-cc33-4226-8155-d5584d559601", | ||
"name": "Player", | ||
"system": true, | ||
"permissions": [] | ||
} | ||
} | ||
], | ||
"ipHistory": [] | ||
} | ||
}, | ||
"status": 200, | ||
"test": { | ||
"group": "PlayerController", | ||
"snapshot": true, | ||
"name": "Can override the expiry of a role assignment", | ||
"filteredFields": [ | ||
"name", | ||
"playerId", | ||
"steamId", | ||
"roleId", | ||
"gameServerId", | ||
"epicOnlineServicesId", | ||
"xboxLiveId", | ||
"expiresAt" | ||
], | ||
"expectedStatus": 200, | ||
"standardEnvironment": true | ||
} | ||
} |