Skip to content

Commit

Permalink
Reverted changes to unrelated file
Browse files Browse the repository at this point in the history
  • Loading branch information
HansDahle committed Nov 6, 2024
1 parent ceb6b16 commit 6626a3a
Showing 1 changed file with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ public SecurityMatrixTests(ResourceApiFixture fixture, ITestOutputHelper output)
var creator = fixture.AddProfile(FusionAccountType.Employee);
var resourceOwner = fixture.AddProfile(FusionAccountType.Employee);
resourceOwner.IsResourceOwner = true;



var resourceOwnerCreator = fixture.AddProfile(FusionAccountType.Employee);
resourceOwnerCreator.IsResourceOwner = true;
Expand Down Expand Up @@ -850,34 +848,6 @@ private ApiPersonProfileV3 CreateTestUserWithRole(string scope)
return testUser;
}

private ApiPersonProfileV3 CreateOrgUnitManager(string department)
{
var testUser = fixture.AddProfile(FusionAccountType.Employee);

// Ref workday, managers will exist in parent department.
var userDepartment = new DepartmentPath(department).Parent();
RolesClientMock.AddPersonRole(testUser.AzureUniqueId.Value, new Fusion.Integration.Roles.RoleAssignment
{
Identifier = $"{Guid.NewGuid()}",
RoleName = "Fusion.LineOrg.Manager",
Scope = new Fusion.Integration.Roles.RoleAssignment.RoleScope("OrgUnit", scope),
ValidTo = DateTime.UtcNow.AddDays(1),
Source = "Test project"
});
testUser.Department = "EPN SUB WS WPN";
testUser.Roles = new List<ApiPersonRoleV3>
{
new ApiPersonRoleV3
{
Name = AccessRoles.ResourceOwner,
Scope = new ApiPersonRoleScopeV3 { Type = "OrgUnit", Value = scope },
ActiveToUtc = DateTime.UtcNow.AddDays(1),
IsActive = true,
}
};
return testUser;
}

private Task<TestApiInternalRequestModel> CreateAndStartRequest()
=> CreateAndStartRequest(testPosition);
private async Task<TestApiInternalRequestModel> CreateAndStartRequest(ApiPositionV2 position)
Expand Down

0 comments on commit 6626a3a

Please sign in to comment.