From b869d9f4998b0b3bb4c62926849247fdb0976c2f Mon Sep 17 00:00:00 2001 From: Dominion Date: Sun, 2 Apr 2023 12:54:48 -0400 Subject: [PATCH] Actually implement the config test, dear god. --- .../Tgstation.Server.Tests/Instance/ConfigurationTest.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Tgstation.Server.Tests/Instance/ConfigurationTest.cs b/tests/Tgstation.Server.Tests/Instance/ConfigurationTest.cs index 45307a22f3..05227e7328 100644 --- a/tests/Tgstation.Server.Tests/Instance/ConfigurationTest.cs +++ b/tests/Tgstation.Server.Tests/Instance/ConfigurationTest.cs @@ -87,6 +87,14 @@ namespace Tgstation.Server.Tests.Instance var tmp = (TestDir.Path?.StartsWith('/') ?? false) ? '.' + TestDir.Path : TestDir.Path; var path = Path.Combine(instance.Path, "Configuration", tmp); Assert.IsFalse(Directory.Exists(path)); + + // leave a directory there to test the deployment process + var staticDir = new ConfigurationFileRequest + { + Path = "/GameStaticFiles/data" + }; + + await configurationClient.CreateDirectory(staticDir, cancellationToken); } public async Task Run(CancellationToken cancellationToken)