mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-14 09:33:22 +01:00
Add a test for creating instances in the installation directory
This commit is contained in:
@@ -51,6 +51,13 @@ namespace Tgstation.Server.Tests
|
||||
}, cancellationToken)).ConfigureAwait(false);
|
||||
await Assert.ThrowsExceptionAsync<ConflictException>(() => instanceManagerClient.CreateOrAttach(firstTest, cancellationToken)).ConfigureAwait(false);
|
||||
|
||||
//can't create instances in installation directory
|
||||
await Assert.ThrowsExceptionAsync<ConflictException>(() => instanceManagerClient.CreateOrAttach(new Api.Models.Instance
|
||||
{
|
||||
Path = "./A/Local/Path",
|
||||
Name = "NoInstallDirTest"
|
||||
}, cancellationToken)).ConfigureAwait(false);
|
||||
|
||||
//can't move to existent directories
|
||||
await Assert.ThrowsExceptionAsync<ConflictException>(() => instanceManagerClient.Update(new Api.Models.Instance
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user