Add root-aware privileged CI test lane
All checks were successful
smoke / smoke (push) Successful in 29s

This commit is contained in:
Vibe Myass
2026-03-16 04:36:14 +00:00
parent 481d70ce72
commit 3b523b78df
5 changed files with 133 additions and 7 deletions

View File

@@ -71,6 +71,27 @@ public sealed class NftablesClientIntegrationTests
}
}
[Fact]
[Trait("Category", "Privileged")]
public void Snapshot_WithPrivilegedLane_ReturnsRuleset()
{
if (!CanCreateClient())
{
return;
}
if (!NativeTestSupport.ShouldRunPrivilegedTests())
{
return;
}
var client = new NftablesClient();
NftSnapshot snapshot = client.Snapshot();
Assert.False(string.IsNullOrWhiteSpace(snapshot.RulesetText));
}
[Fact]
public void ValidateRuleset_WithTypedSetDefinition_ReturnsValidResult()
{