@@ -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