Skip to content

Commit

Permalink
chore: supress/fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Jul 22, 2024
1 parent 7757f2f commit f062342
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/unit/ContainerProcessorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public async Task ContainerProcessor_GetContainerChildObjects_ReturnsCorrectData
}

[Fact]
public async Task ContainerProcessor_ReadBlocksInheritance_ReturnsCorrectValues()
public void ContainerProcessor_ReadBlocksInheritance_ReturnsCorrectValues()
{
var test = ContainerProcessor.ReadBlocksInheritance(null);
var test2 = ContainerProcessor.ReadBlocksInheritance("3");
Expand Down
2 changes: 2 additions & 0 deletions test/unit/Facades/LSAMocks/DCMocks/MockDCLSAPolicy.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.Shared;
using SharpHoundRPC.Wrappers;

namespace CommonLibTest.Facades.LSAMocks.DCMocks
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockDCLSAPolicy : ILSAPolicy
{
public Result<(string Name, string Sid)> GetLocalDomainInformation()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.Shared;
using SharpHoundRPC.Wrappers;

namespace CommonLibTest.Facades.LSAMocks.WorkstationMocks
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockWorkstationLSAPolicy : ILSAPolicy
{
public Result<(string Name, string Sid)> GetLocalDomainInformation()
Expand Down
2 changes: 2 additions & 0 deletions test/unit/Facades/MockLdapUtils.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.DirectoryServices.ActiveDirectory;
using System.Linq;
using System.Security.Principal;
Expand All @@ -16,6 +17,7 @@

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockLdapUtils : ILdapUtils
{
private readonly ConcurrentDictionary<string, byte> _domainControllers = new();
Expand Down
4 changes: 3 additions & 1 deletion test/unit/Facades/MockableDomain.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.DirectoryServices.ActiveDirectory;
using System.Diagnostics.CodeAnalysis;
using System.DirectoryServices.ActiveDirectory;

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockableDomain
{
public static Domain Construct(string domainName)
Expand Down
4 changes: 3 additions & 1 deletion test/unit/Facades/MockableForest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.DirectoryServices.ActiveDirectory;
using System.Diagnostics.CodeAnalysis;
using System.DirectoryServices.ActiveDirectory;

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockableForest
{
public static Forest Construct(string forestDnsName)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.Wrappers;

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockDCAliasAdministrators : ISAMAlias
{
public Result<IEnumerable<SecurityIdentifier>> GetMembers()
Expand Down
2 changes: 2 additions & 0 deletions test/unit/Facades/SAMMocks/DCMocks/MockDCAliasUsers.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.Wrappers;

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockDCAliasUsers : ISAMAlias
{
public Result<IEnumerable<SecurityIdentifier>> GetMembers()
Expand Down
2 changes: 2 additions & 0 deletions test/unit/Facades/SAMMocks/DCMocks/MockDCSAMServer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.SAMRPCNative;
Expand All @@ -8,6 +9,7 @@

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockDCSAMServer : ISAMServer
{
public bool IsNull { get; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.Wrappers;

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockWorkstationAliasAdministrators : ISAMAlias
{
public Result<IEnumerable<SecurityIdentifier>> GetMembers()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.Wrappers;

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockWorkstationAliasRDP : ISAMAlias
{
public Result<IEnumerable<SecurityIdentifier>> GetMembers()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.Wrappers;

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockWorkstationAliasTestGroup : ISAMAlias
{
public Result<IEnumerable<SecurityIdentifier>> GetMembers()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Principal;
using SharpHoundRPC;
using SharpHoundRPC.SAMRPCNative;
Expand All @@ -8,6 +9,7 @@

namespace CommonLibTest.Facades
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class MockWorkstationSAMServer : ISAMServer
{
public bool IsNull { get; }
Expand All @@ -23,7 +25,7 @@ public class MockWorkstationSAMServer : ISAMServer

public Result<SecurityIdentifier> LookupDomain(string name)
{
throw new System.NotImplementedException();
throw new NotImplementedException();
}

public Result<SecurityIdentifier> GetMachineSid(string testName = null)
Expand Down

0 comments on commit f062342

Please sign in to comment.