From f1f5caf931fe9f54fbea14cea6a4fa6c14d752d5 Mon Sep 17 00:00:00 2001 From: Malhar Khimsaria Date: Mon, 9 Aug 2021 11:18:04 -0400 Subject: [PATCH] fix: Fix integration tests that are failing in CodePipeline --- .../SaveCdkDeploymentProject/CustomRecipeLocatorTests.cs | 2 +- .../SaveCdkDeploymentProject/SaveCdkDeploymentProjectTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/AWS.Deploy.CLI.IntegrationTests/SaveCdkDeploymentProject/CustomRecipeLocatorTests.cs b/test/AWS.Deploy.CLI.IntegrationTests/SaveCdkDeploymentProject/CustomRecipeLocatorTests.cs index 5d39978aa..c179eb09b 100644 --- a/test/AWS.Deploy.CLI.IntegrationTests/SaveCdkDeploymentProject/CustomRecipeLocatorTests.cs +++ b/test/AWS.Deploy.CLI.IntegrationTests/SaveCdkDeploymentProject/CustomRecipeLocatorTests.cs @@ -47,7 +47,7 @@ public CustomRecipeLocatorTests() var commandLineWrapper = new CommandLineWrapper(consoleOrchestratorLogger); _customRecipeLocator = new CustomRecipeLocator(deploymentManifestEngine, consoleOrchestratorLogger, commandLineWrapper, directoryManager); - var solutionPath = new ProjectDefinitionParser(fileManager, directoryManager).Parse(_webAppWithDockerFilePath).Result.ProjectSolutionPath; + var solutionPath = Path.Combine(testAppsDirectoryPath, "..", "AWS.Deploy.sln"); _solutionDirectoryPath = directoryManager.GetDirectoryInfo(solutionPath).Parent.FullName; } diff --git a/test/AWS.Deploy.CLI.IntegrationTests/SaveCdkDeploymentProject/SaveCdkDeploymentProjectTests.cs b/test/AWS.Deploy.CLI.IntegrationTests/SaveCdkDeploymentProject/SaveCdkDeploymentProjectTests.cs index 341c84dd9..397e779dd 100644 --- a/test/AWS.Deploy.CLI.IntegrationTests/SaveCdkDeploymentProject/SaveCdkDeploymentProjectTests.cs +++ b/test/AWS.Deploy.CLI.IntegrationTests/SaveCdkDeploymentProject/SaveCdkDeploymentProjectTests.cs @@ -57,7 +57,7 @@ public async Task InvalidSaveCdkDirectoryInsideProjectDirectory() [Fact] public async Task InvalidNonEmptySaveCdkDirectory() { - Directory.CreateDirectory(Path.Combine(_testArtifactsDirectoryPath, "MyCdkAPP", "MyFolder")); + Directory.CreateDirectory(Path.Combine(_testArtifactsDirectoryPath, "MyCdkApp", "MyFolder")); _saveDirectoryPath = Path.Combine(_testArtifactsDirectoryPath, "MyCdkApp"); await Utilities.CreateCDKDeploymentProject(_targetApplicationProjectPath, _saveDirectoryPath, false); CleanUp();