Permalink
Browse files

Change default site test to match Azure

  • Loading branch information...
1 parent 800c5ed commit 1ccd958cbd0d92bd765968426fe8703abd88a60e @davidebbo davidebbo committed Dec 7, 2012
@@ -516,7 +516,7 @@ public void PushingToNonMasterBranchNoOps()
// Assert
Assert.Equal(0, results.Count);
- KuduAssert.VerifyUrl(appManager.SiteUrl, "The web site is under construction");
+ KuduAssert.VerifyUrl(appManager.SiteUrl, KuduAssert.DefaultPageContent);
});
}
}
@@ -1076,7 +1076,7 @@ public void SpecificDeploymentConfigurationForNonDeployableProjectFile()
{
VerifyDeploymentConfiguration("SpecificDeploymentConfigurationForNonDeployableProjectFile",
"MvcApplicationRemovedFromSolution.Tests/MvcApplicationRemovedFromSolution.Tests.csproj",
- "The web site is under construction",
+ KuduAssert.DefaultPageContent,
DeployStatus.Failed);
}
@@ -1085,7 +1085,7 @@ public void SpecificDeploymentConfigurationForNonDeployableProject()
{
VerifyDeploymentConfiguration("SpecificDeploymentConfigurationForNonDeployableProject",
"MvcApplicationRemovedFromSolution.Tests",
- "The web site is under construction",
+ KuduAssert.DefaultPageContent,
DeployStatus.Failed,
"is not a deployable project");
}
@@ -1095,7 +1095,7 @@ public void SpecificDeploymentConfigurationForDirectoryThatDoesNotExist()
{
VerifyDeploymentConfiguration("SpecificDeploymentConfigurationForDirectoryThatDoesNotExist",
"IDoNotExist",
- "The web site is under construction",
+ KuduAssert.DefaultPageContent,
DeployStatus.Failed);
}
@@ -12,6 +12,8 @@ namespace Kudu.FunctionalTests.Infrastructure
{
public static class KuduAssert
{
+ public const string DefaultPageContent = "This web site has been successfully created";
+
public static T ThrowsUnwrapped<T>(Action action) where T : Exception
{
var ex = Assert.Throws<AggregateException>(() => action());
@@ -127,14 +127,14 @@ public Site CreateSite(string applicationName)
FileSystemHelpers.EnsureDirectory(webRoot);
File.WriteAllText(Path.Combine(webRoot, "index.html"), @"<html>
<head>
-<title>The web site is under construction</title>
+<title>This web site has been successfully created</title>
<style type=""text/css"">
BODY { color: #444444; background-color: #E5F2FF; font-family: verdana; margin: 0px; text-align: center; margin-top: 100px; }
H1 { font-size: 16pt; margin-bottom: 4px; }
</style>
</head>
<body>
-<h1>The web site is under construction</h1><br/>
+<h1>This web site has been successfully created</h1><br/>
</body>
</html>");
@@ -119,7 +119,7 @@ public static void Run(string applicationName, Action<ApplicationManager> action
appManager.RepositoryManager.Delete(deleteWebRoot: true).Wait();
// Make sure we start with the correct default file as some tests expect it
- appManager.VfsWebRootManager.WriteAllText("index.html", "<h1>The web site is under construction</h1>");
+ appManager.VfsWebRootManager.WriteAllText("index.html", "<h1>This web site has been successfully created</h1>");
}
var dumpPath = Path.Combine(PathHelper.TestResultsPath, applicationName, applicationName + ".zip");

0 comments on commit 1ccd958

Please sign in to comment.