Use default web site for file creation test.

This commit is contained in:
Jimmy Campbell 2016-12-05 14:39:34 -08:00
Родитель 2da7e026c6
Коммит 9f9074eebf
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -262,12 +262,12 @@ namespace Microsoft.IIS.Administration.Tests
using (HttpClient client = ApiHttpClient.Create()) {
Sites.EnsureNoSite(client, TEST_SITE_NAME);
JObject site = Sites.CreateSite(client, TEST_SITE_NAME, 50311, Sites.TEST_SITE_PATH);
JObject site = Sites.GetSite(client, "Default Web Site");
var rootDir = Utils.FollowLink(client, site, "files");
object newFile = new {
object newFile = new
{
type = "file",
parent = rootDir,
name = testFileName
@ -287,8 +287,7 @@ namespace Microsoft.IIS.Administration.Tests
Assert.True(result == testContent);
Assert.True(client.Delete(Utils.Self(fileMetadata)));
Assert.True(client.Delete(Utils.Self(site)));
}
}
}
}
}