Permalink
Browse files

Modify test to also work on the original site builder factory, as thi…

…s feature (deployment script cache) we are testing (the specific asserts) are not relevant there.
  • Loading branch information...
1 parent e21ceb4 commit 438774907eb00ee1fa18a289cb4feba68332b5e7 Amit Apple committed Apr 1, 2013
Showing with 14 additions and 6 deletions.
  1. +14 −6 Kudu.FunctionalTests/GitRepositoryManagementTests.cs
@@ -800,8 +800,12 @@ public void RedeployNodeSite()
Assert.Equal(1, results.Count);
Assert.Equal(DeployStatus.Success, results[0].Status);
- var log1 = GetLog(appManager, results[0].Id);
- Assert.Contains("Using the following command to generate deployment script", log1);
+ if (!KuduUtils.TestOriginalSiteBuilderFactory)
+ {
+ // Only relevant for new generator deployment logic
+ var log1 = GetLog(appManager, results[0].Id);
+ Assert.Contains("Using the following command to generate deployment script", log1);
+ }
string id = results[0].Id;
@@ -821,10 +825,14 @@ public void RedeployNodeSite()
Assert.Equal(DeployStatus.Success, results[0].Status);
Assert.Equal(DeployStatus.Success, results[1].Status);
- var log2 = GetLog(appManager, results[0].Id);
- var log3 = GetLog(appManager, results[1].Id);
- Assert.Contains("Using cached version of deployment script", log2);
- Assert.Contains("Using cached version of deployment script", log3);
+ if (!KuduUtils.TestOriginalSiteBuilderFactory)
+ {
+ // Only relevant for new generator deployment logic
+ var log2 = GetLog(appManager, results[0].Id);
+ var log3 = GetLog(appManager, results[1].Id);
+ Assert.Contains("Using cached version of deployment script", log2);
+ Assert.Contains("Using cached version of deployment script", log3);
+ }
});
}
}

0 comments on commit 4387749

Please sign in to comment.