2023-08-02 16:09:08 -05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using Robust.Shared.Toolshed;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.IntegrationTests.Tests.Toolshed;
|
|
|
|
|
|
|
|
|
|
|
|
[TestFixture]
|
|
|
|
|
|
public sealed class AdminTest : ToolshedTest
|
|
|
|
|
|
{
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
public async Task AllCommandsHavePermissions()
|
|
|
|
|
|
{
|
|
|
|
|
|
await Server.WaitAssertion(() =>
|
|
|
|
|
|
{
|
|
|
|
|
|
Assert.That(InvokeCommand("cmd:list where { acmd:perms isnull }", out var res));
|
2023-08-23 16:03:41 -05:00
|
|
|
|
Assert.That((IEnumerable<CommandSpec>) res, Is.Empty, "All commands must have admin permissions set up.");
|
2023-08-02 16:09:08 -05:00
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|