Skip to content

Commit d59795c

Browse files
committed
fix integ test
1 parent e3188cf commit d59795c

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

test/AWS.Deploy.CLI.IntegrationTests/ConsoleAppTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,13 @@ public async Task DefaultConfigurations(params string[] components)
120120

121121
[Theory]
122122
[InlineData("testapps", "ConsoleAppService", "ConsoleAppService.csproj")]
123-
[InlineData("testapps", "ConsoleAppTask", "ConsoleAppTask.csproj")]
124123
public async Task FargateArmDeployment(params string[] components)
125124
{
126125
_stackName = $"{components[1]}Arm{Guid.NewGuid().ToString().Split('-').Last()}";
127126

128127
// Arrange input for deploy
129128
await _interactiveService.StdInWriter.WriteAsync(Environment.NewLine); // Select default recommendation
130-
await _interactiveService.StdInWriter.WriteLineAsync("8"); // Select "Environment Architecture"
129+
await _interactiveService.StdInWriter.WriteLineAsync("7"); // Select "Environment Architecture"
131130
await _interactiveService.StdInWriter.WriteLineAsync("2"); // Select "Arm64"
132131
await _interactiveService.StdInWriter.WriteAsync(Environment.NewLine); // Confirm selection and deploy
133132
await _interactiveService.StdInWriter.FlushAsync();

test/AWS.Deploy.CLI.UnitTests/DeploymentBundleHandlerTests.cs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -399,37 +399,6 @@ public async Task CreateDotnetPublishZip_UnsupportedFramework_AlreadySetAsSelfCo
399399
Assert.Equal(expectedCommand, _commandLineWrapper.CommandsToExecute.First().Command);
400400
}
401401

402-
[Theory]
403-
[InlineData("arn:aws:elasticbeanstalk:us-west-2::platform/.NET 8 running on 64bit Amazon Linux 2023")]
404-
[InlineData("arn:aws:elasticbeanstalk:us-west-2::platform/.NET 8 running on 64bit Amazon Linux 2023/invalidversion")]
405-
public async Task CreateDotnetPublishZip_InvalidPlatformArn(string platformArn)
406-
{
407-
var projectPath = SystemIOUtilities.ResolvePath(Path.Combine("ConsoleAppTask"));
408-
var project = await _projectDefinitionParser.Parse(projectPath);
409-
_recipeDefinition.TargetService = RecipeIdentifier.TARGET_SERVICE_ELASTIC_BEANSTALK;
410-
_recipeDefinition.OptionSettings.Add(
411-
new OptionSettingItem(
412-
"ElasticBeanstalkPlatformArn",
413-
"ElasticBeanstalkPlatformArn",
414-
"Beanstalk Platform",
415-
"The name of the Elastic Beanstalk platform to use with the environment.")
416-
{
417-
DefaultValue = platformArn
418-
});
419-
var recommendation = new Recommendation(_recipeDefinition, project, 100, new Dictionary<string, object>());
420-
421-
await _deploymentBundleHandler.CreateDotnetPublishZip(recommendation);
422-
423-
Assert.False(recommendation.DeploymentBundle.DotnetPublishSelfContainedBuild);
424-
425-
var expectedCommand =
426-
$"dotnet publish \"{project.ProjectPath}\"" +
427-
$" -o \"{_directoryManager.CreatedDirectories.First()}\"" +
428-
" -c Release ";
429-
430-
Assert.Equal(expectedCommand, _commandLineWrapper.CommandsToExecute.First().Command);
431-
}
432-
433402
[Theory]
434403
[InlineData("arn:aws:elasticbeanstalk:us-west-2::platform/.NET Core running on 64bit Amazon Linux 2/2.7.3")]
435404
[InlineData("arn:aws:elasticbeanstalk:us-west-2::platform/.NET 6 running on 64bit Amazon Linux 2023/3.1.3")]

0 commit comments

Comments
 (0)