Skip to content

Commit

Permalink
fix failing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
philasmar committed Jul 24, 2024
1 parent d33a17c commit 60e17be
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion test/AWS.Deploy.CLI.UnitTests/DeploymentBundleHandlerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public DeploymentBundleHandlerTests()
_recipeHandler = new RecipeHandler(_deploymentManifestEngine, _orchestratorInteractiveService, _directoryManager, _fileManager, optionSettingHandler, validatorFactory);
_projectDefinitionParser = new ProjectDefinitionParser(new FileManager(), new DirectoryManager());

_deploymentBundleHandler = new DeploymentBundleHandler(_commandLineWrapper, awsResourceQueryer, interactiveService, _directoryManager, zipFileManager, new FileManager());
_deploymentBundleHandler = new DeploymentBundleHandler(_commandLineWrapper, awsResourceQueryer, interactiveService, _directoryManager, zipFileManager, new FileManager(), optionSettingHandler);

_recipeDefinition = new Mock<RecipeDefinition>(
It.IsAny<string>(),
Expand Down Expand Up @@ -192,6 +192,12 @@ public async Task CreateDotnetPublishZip_NotSelfContained()
{
var projectPath = SystemIOUtilities.ResolvePath("ConsoleAppTask");
var project = await _projectDefinitionParser.Parse(projectPath);
_recipeDefinition.OptionSettings.Add(
new OptionSettingItem(
"ElasticBeanstalkPlatformArn",
"ElasticBeanstalkPlatformArn",
"Beanstalk Platform",
"The name of the Elastic Beanstalk platform to use with the environment.") { DefaultValue = "arn:aws:elasticbeanstalk:us-west-2::platform/.NET 8 running on 64bit Amazon Linux 2023/3.1.3" });
var recommendation = new Recommendation(_recipeDefinition, project, 100, new Dictionary<string, object>());

recommendation.DeploymentBundle.DotnetPublishSelfContainedBuild = false;
Expand All @@ -215,6 +221,12 @@ public async Task CreateDotnetPublishZip_SelfContained()
{
var projectPath = SystemIOUtilities.ResolvePath("ConsoleAppTask");
var project = await _projectDefinitionParser.Parse(projectPath);
_recipeDefinition.OptionSettings.Add(
new OptionSettingItem(
"ElasticBeanstalkPlatformArn",
"ElasticBeanstalkPlatformArn",
"Beanstalk Platform",
"The name of the Elastic Beanstalk platform to use with the environment.") { DefaultValue = "arn:aws:elasticbeanstalk:us-west-2::platform/.NET 8 running on 64bit Amazon Linux 2023/3.1.3" });
var recommendation = new Recommendation(_recipeDefinition, project, 100, new Dictionary<string, object>());

recommendation.DeploymentBundle.DotnetPublishSelfContainedBuild = true;
Expand Down Expand Up @@ -244,6 +256,12 @@ public async Task CreateDotnetPublishZip_SelfContained_Net7()
var projectPath = SystemIOUtilities.ResolvePath(Path.Combine("docker", "WebAppNet7"));
var project = await _projectDefinitionParser.Parse(projectPath);
_recipeDefinition.TargetService = RecipeIdentifier.TARGET_SERVICE_ELASTIC_BEANSTALK;
_recipeDefinition.OptionSettings.Add(
new OptionSettingItem(
"ElasticBeanstalkPlatformArn",
"ElasticBeanstalkPlatformArn",
"Beanstalk Platform",
"The name of the Elastic Beanstalk platform to use with the environment.") { DefaultValue = "arn:aws:elasticbeanstalk:us-west-2::platform/.NET 8 running on 64bit Amazon Linux 2023/3.1.3" });
var recommendation = new Recommendation(_recipeDefinition, project, 100, new Dictionary<string, object>());

recommendation.DeploymentBundle.DotnetPublishBuildConfiguration = "Release";
Expand Down

0 comments on commit 60e17be

Please sign in to comment.