1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00

Fix SecretAccessPoliciesUpdatesQueryTest (#4619)

This commit is contained in:
Thomas Avery 2024-08-12 16:58:30 -05:00 committed by GitHub
parent 47afe97379
commit e2f05f4b8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,8 +122,8 @@ public class SecretAccessPoliciesUpdatesQueryTests
{ {
OrganizationUserId = data.UserAccessPolicies.First().OrganizationUserId, OrganizationUserId = data.UserAccessPolicies.First().OrganizationUserId,
GrantedSecretId = data.SecretId, GrantedSecretId = data.SecretId,
Read = !data.ServiceAccountAccessPolicies.First().Read, Read = !data.UserAccessPolicies.First().Read,
Write = !data.ServiceAccountAccessPolicies.First().Write Write = !data.UserAccessPolicies.First().Write
}; };
return (updatePolicy, currentPolicyToDelete); return (updatePolicy, currentPolicyToDelete);
@ -138,8 +138,8 @@ public class SecretAccessPoliciesUpdatesQueryTests
{ {
GroupId = data.GroupAccessPolicies.First().GroupId, GroupId = data.GroupAccessPolicies.First().GroupId,
GrantedSecretId = data.SecretId, GrantedSecretId = data.SecretId,
Read = !data.ServiceAccountAccessPolicies.First().Read, Read = !data.GroupAccessPolicies.First().Read,
Write = !data.ServiceAccountAccessPolicies.First().Write Write = !data.GroupAccessPolicies.First().Write
}; };
return (updatePolicy, currentPolicyToDelete); return (updatePolicy, currentPolicyToDelete);