Skip to content

Commit

Permalink
fix: patch unit tests, return ntauthstoreproperties to static
Browse files Browse the repository at this point in the history
  • Loading branch information
urangel committed Oct 3, 2023
1 parent 4119c6b commit bebdd5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/CommonLib/Processors/LDAPPropertyProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public static Dictionary<string, object> ReadEnrollmentServiceProperties(ISearch

return props;
}
public Dictionary<string, object> ReadNTAuthStoreProperties(ISearchResultEntry entry)
public static Dictionary<string, object> ReadNTAuthStoreProperties(ISearchResultEntry entry)
{
var ntAuthStoreProps = new NTAuthStoreProperties
{
Expand Down
5 changes: 2 additions & 3 deletions test/unit/LDAPPropertyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,8 @@ public void LDAPPropertyProcessor_ReadNTAuthStoreProperties()
{"whencreated", 1683986131},
}, "2F9F3630-F46A-49BF-B186-6629994EBCF9", Label.NTAuthStore);

var processor = new LDAPPropertyProcessor(new MockLDAPUtils());
var props = processor.ReadNTAuthStoreProperties(mock);
var keys = props.Keys;
var test = LDAPPropertyProcessor.ReadNTAuthStoreProperties(mock);
var keys = test.Keys;

Assert.Contains("description", keys);
Assert.Contains("whencreated", keys);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/LDAPUtilsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void BuildLdapPath_BadDomain_ReturnsNull()
Assert.Null(result);
}

[Fact]
[WindowsOnlyFact]
public void BuildLdapPath_HappyPath()
{
var mock = new Mock<LDAPUtils>();
Expand Down

0 comments on commit bebdd5b

Please sign in to comment.