-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Merge changes for EntraCP v27.0 to release branch (#282) * Update Yvand.EntraCP.nuspec * Fix missing group members when only users members of some groups can be found (#273) * Update Populate-EntraIDTenant.ps1 * Update EntraIDEntityProvider.cs * add pagination to get all group members * fix init of lists * improve tests * update tests * return entities cloned from their source list * Update CHANGELOG.md * Update tests (#276) * start work * in progress * continue work * progress * work * rename types * Update UnitTestsHelper.cs * Update UnitTestsHelper.cs * Update UnitTestsHelper.cs * work * Add sample of a custom claims provider (#278) * publish sample * Add README files * update README * Add a Bruno collection to replay requests to Microsoft Graph (#280) * initial commit * rename files * set auth to inherit * remove tests * update doc * Update README.md * Update get access token.bru * Update CHANGELOG.md * reorganize folders * Update UnitTestsHelper.cs * remove outdated pipelines * Improve tests (#281) * work * work * work * Update Populate-EntraIDTenant.ps1 * work * work * work; * work * Update Populate-EntraIDTenant.ps1 * Update reusable-prepare-dtl-env.yml * Update reusable-prepare-dtl-env.yml * Update run-tests.yml * simplify the setup of tests * Update run-tests.yml * Update run-tests.yml * Update Yvand.EntraCP.sln * update workflows * update workflows * Update Yvand.EntraCP.Tests.csproj * Update CHANGELOG.md * Update reusable-build.yml * Revert "Update reusable-build.yml" This reverts commit d4b71d6. * update build settings * Update prepare-dtl-env.yml * Update prepare-dtl-env.yml * Update CHANGELOG.md
- Loading branch information
Showing
67 changed files
with
1,503 additions
and
770 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
.github/workflows/verify-prs-and-commits.yml → .github/workflows/build.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ on: | |
permissions: | ||
issues: write | ||
pull-requests: write | ||
actions: write | ||
|
||
jobs: | ||
stale: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
using Microsoft.SharePoint.Administration.Claims; | ||
using NUnit.Framework; | ||
using System.Security.Claims; | ||
using Yvand.EntraClaimsProvider.Configuration; | ||
|
||
namespace Yvand.EntraClaimsProvider.Tests | ||
{ | ||
[TestFixture] | ||
[Parallelizable(ParallelScope.Children)] | ||
public class BypassDirectoryOnClaimTypesTests : ClaimsProviderTestsBase | ||
{ | ||
string PrefixBypassUserSearch = "bypass-user:"; | ||
string PrefixBypassGroupSearch = "bypass-group:"; | ||
const string PrefixBypassUserSearch = "bypass-user:"; | ||
const string PrefixBypassGroupSearch = "bypass-group:"; | ||
public override void InitializeSettings() | ||
{ | ||
base.InitializeSettings(); | ||
|
@@ -26,28 +25,28 @@ public override void CheckSettingsTest() | |
base.CheckSettingsTest(); | ||
} | ||
|
||
[Test, TestCaseSource(typeof(EntraIdTestUsersSource), nameof(EntraIdTestUsersSource.GetTestData), null)] | ||
public void TestAllEntraIDUsers(EntraIdTestUser user) | ||
[Test, TestCaseSource(typeof(TestEntitySourceManager), nameof(TestEntitySourceManager.GetSomeUsers), new object[] { TestEntitySourceManager.MaxNumberOfUsersToTest })] | ||
public void TestUsers(TestUser user) | ||
{ | ||
base.TestSearchAndValidateForEntraIDUser(user); | ||
base.TestSearchAndValidateForTestUser(user); | ||
user.UserPrincipalName = user.DisplayName; | ||
user.Mail = user.DisplayName; | ||
user.DisplayName = $"{PrefixBypassUserSearch}{user.DisplayName}"; | ||
base.TestSearchAndValidateForEntraIDUser(user); | ||
base.TestSearchAndValidateForTestUser(user); | ||
} | ||
|
||
[Test, TestCaseSource(typeof(EntraIdTestGroupsSource), nameof(EntraIdTestGroupsSource.GetTestData), new object[] { true })] | ||
public void TestAllEntraIDGroups(EntraIdTestGroup group) | ||
[Test, TestCaseSource(typeof(TestEntitySourceManager), nameof(TestEntitySourceManager.GetSomeGroups), new object[] { TestEntitySourceManager.MaxNumberOfGroupsToTest, true })] | ||
public void TestGroups(TestGroup group) | ||
{ | ||
TestSearchAndValidateForEntraIDGroup(group); | ||
TestSearchAndValidateForTestGroup(group); | ||
group.Id = group.DisplayName; | ||
group.DisplayName = $"{PrefixBypassGroupSearch}{group.DisplayName}"; | ||
TestSearchAndValidateForEntraIDGroup(group); | ||
TestSearchAndValidateForTestGroup(group); | ||
} | ||
|
||
[TestCase("bypass-user:[email protected]", 1, "[email protected]")] | ||
[TestCase("bypass-user:", 0, "")] | ||
[TestCase("bypass-group:", 0, "")] | ||
[TestCase(PrefixBypassUserSearch + "[email protected]", 1, "[email protected]")] | ||
[TestCase(PrefixBypassUserSearch, 0, "")] | ||
[TestCase(PrefixBypassGroupSearch, 0, "")] | ||
public void TestBypassDirectoryByClaimType(string inputValue, int expectedCount, string expectedClaimValue) | ||
{ | ||
TestSearchOperation(inputValue, expectedCount, expectedClaimValue); | ||
|
@@ -77,16 +76,16 @@ public override void CheckSettingsTest() | |
base.CheckSettingsTest(); | ||
} | ||
|
||
[Test, TestCaseSource(typeof(EntraIdTestGroupsSource), nameof(EntraIdTestGroupsSource.GetTestData), new object[] { true })] | ||
public void TestAllEntraIDGroups(EntraIdTestGroup group) | ||
[Test, TestCaseSource(typeof(TestEntitySourceManager), nameof(TestEntitySourceManager.GetSomeGroups), new object[] { TestEntitySourceManager.MaxNumberOfGroupsToTest, true })] | ||
public void TestGroups(TestGroup group) | ||
{ | ||
TestSearchAndValidateForEntraIDGroup(group); | ||
TestSearchAndValidateForTestGroup(group); | ||
} | ||
|
||
[Test, TestCaseSource(typeof(EntraIdTestUsersSource), nameof(EntraIdTestUsersSource.GetTestData), null)] | ||
public void TestAllEntraIDUsers(EntraIdTestUser user) | ||
[Test, TestCaseSource(typeof(TestEntitySourceManager), nameof(TestEntitySourceManager.GetSomeUsers), new object[] { TestEntitySourceManager.MaxNumberOfUsersToTest })] | ||
public void TestUsers(TestUser user) | ||
{ | ||
base.TestSearchAndValidateForEntraIDUser(user); | ||
base.TestSearchAndValidateForTestUser(user); | ||
} | ||
|
||
[Test] | ||
|
Oops, something went wrong.