Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Consolidated csrun tests

  • Loading branch information...
commit bec649753cb3f576cb05e4be18e8e9075db202be 1 parent a52d3b0
@markcowl markcowl authored
View
17 AzureDeploymentCmdlets/src/AzureDeploymentCmdlets.Test/Tests/AzureTools/CsPackTests.cs
@@ -37,21 +37,6 @@ public void CreateLocalPackageWithOneWebRoleTest()
string standardOutput;
string standardError;
AzureService service = new AzureService(files.RootPath, serviceName, null);
- service.AddWebRole();
- service.CreatePackage(DevEnv.Local, out standardOutput, out standardError);
-
- AzureAssert.ScaffoldingExists(Path.Combine(service.Paths.LocalPackage, @"roles\WebRole1\approot"), Path.Combine(Resources.NodeScaffolding, Resources.WebRole));
- }
- }
-
- [TestMethod]
- public void CreateLocalPackageWithOneWebRoleAndLogsDirectoryTest()
- {
- using (FileSystemHelper files = new FileSystemHelper(this))
- {
- string standardOutput;
- string standardError;
- AzureService service = new AzureService(files.RootPath, serviceName, null);
RoleInfo webRoleInfo = service.AddWebRole();
string logsDir = Path.Combine(service.Paths.RootPath, webRoleInfo.Name, "server.js.logs");
string logFile = Path.Combine(logsDir, "0.txt");
@@ -59,14 +44,12 @@ public void CreateLocalPackageWithOneWebRoleAndLogsDirectoryTest()
files.CreateDirectory(logsDir);
files.CreateEmptyFile(logFile);
service.CreatePackage(DevEnv.Local, out standardOutput, out standardError);
- Console.WriteLine("Checking for existence: '{0} => '{1}'", logFile, targetLogsFile);
AzureAssert.ScaffoldingExists(Path.Combine(service.Paths.LocalPackage, @"roles\WebRole1\approot"), Path.Combine(Resources.NodeScaffolding, Resources.WebRole));
Assert.IsTrue(File.Exists(targetLogsFile));
}
}
-
[TestMethod]
public void CreateLocalPackageWithWorkerRoleTest()
{
Please sign in to comment.
Something went wrong with that request. Please try again.