From 0823c5802c2ca82c1cba4dbdca4dc7a61c6326b9 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Wed, 15 Apr 2015 21:51:46 -0700 Subject: [PATCH] Cleanup. --- test/E2ETests/NtlmAuthentationTest.cs | 9 +-------- test/E2ETests/OpenIdConnectTests.cs | 9 +-------- test/E2ETests/PublishAndRunTests.cs | 9 +-------- test/E2ETests/SmokeTests.cs | 9 +-------- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/test/E2ETests/NtlmAuthentationTest.cs b/test/E2ETests/NtlmAuthentationTest.cs index 5535d21d79..93ece6beb5 100644 --- a/test/E2ETests/NtlmAuthentationTest.cs +++ b/test/E2ETests/NtlmAuthentationTest.cs @@ -50,8 +50,6 @@ namespace E2ETests "SQLAZURECONNSTR_DefaultConnection", string.Format(DbUtils.CONNECTION_STRING_FORMAT, musicStoreDbName))); - bool testSuccessful = false; - using (var deployer = ApplicationDeployerFactory.Create(deploymentParameters, logger)) { var deploymentResult = deployer.Deploy(); @@ -73,12 +71,7 @@ namespace E2ETests //Should be able to access the store as the Startup adds necessary permissions for the current user validator.AccessStoreWithPermissions(); - testSuccessful = true; - } - - if (!testSuccessful) - { - logger.LogError("Some tests failed."); + logger.LogInformation("Variation completed successfully."); } } } diff --git a/test/E2ETests/OpenIdConnectTests.cs b/test/E2ETests/OpenIdConnectTests.cs index 8f0e8d67f1..f18a556c5f 100644 --- a/test/E2ETests/OpenIdConnectTests.cs +++ b/test/E2ETests/OpenIdConnectTests.cs @@ -59,8 +59,6 @@ namespace E2ETests "SQLAZURECONNSTR_DefaultConnection", string.Format(DbUtils.CONNECTION_STRING_FORMAT, musicStoreDbName))); - bool testSuccessful = false; - using (var deployer = ApplicationDeployerFactory.Create(deploymentParameters, logger)) { var deploymentResult = deployer.Deploy(); @@ -82,12 +80,7 @@ namespace E2ETests // OpenIdConnect login. validator.LoginWithOpenIdConnect(); - testSuccessful = true; - } - - if (!testSuccessful) - { - logger.LogError("Some tests failed."); + logger.LogInformation("Variation completed successfully."); } } } diff --git a/test/E2ETests/PublishAndRunTests.cs b/test/E2ETests/PublishAndRunTests.cs index fffa3df7b9..dfcc9d9ca5 100644 --- a/test/E2ETests/PublishAndRunTests.cs +++ b/test/E2ETests/PublishAndRunTests.cs @@ -81,8 +81,6 @@ namespace E2ETests "SQLAZURECONNSTR_DefaultConnection", string.Format(DbUtils.CONNECTION_STRING_FORMAT, musicStoreDbName))); - bool testSuccessful = false; - using (var deployer = ApplicationDeployerFactory.Create(deploymentParameters, logger)) { var deploymentResult = deployer.Deploy(); @@ -113,12 +111,7 @@ namespace E2ETests } } - testSuccessful = true; - } - - if (!testSuccessful) - { - logger.LogError("Some tests failed."); + logger.LogInformation("Variation completed successfully."); } } } diff --git a/test/E2ETests/SmokeTests.cs b/test/E2ETests/SmokeTests.cs index 6417730a20..7a04767ebf 100644 --- a/test/E2ETests/SmokeTests.cs +++ b/test/E2ETests/SmokeTests.cs @@ -148,8 +148,6 @@ namespace E2ETests "SQLAZURECONNSTR_DefaultConnection", string.Format(DbUtils.CONNECTION_STRING_FORMAT, musicStoreDbName))); - bool testSuccessful = false; - using (var deployer = ApplicationDeployerFactory.Create(deploymentParameters, logger)) { var deploymentResult = deployer.Deploy(); @@ -252,12 +250,7 @@ namespace E2ETests // MicrosoftAccountLogin validator.LoginWithMicrosoftAccount(); - testSuccessful = true; - } - - if (!testSuccessful) - { - logger.LogError("Some tests failed."); + logger.LogInformation("Variation completed successfully."); } } }