File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
test/Microsoft.NET.Build.Containers.IntegrationTests Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -690,6 +690,39 @@ public void EndToEnd_NoAPI_Console(string baseImage)
690
690
privateNuGetAssets . Delete ( true ) ;
691
691
}
692
692
693
+ [ DockerAvailableFact ]
694
+ public void EndToEnd_SingleArch_NoRid ( )
695
+ {
696
+ // Create a new console project
697
+ DirectoryInfo newProjectDir = CreateNewProject ( "console" ) ;
698
+
699
+ string imageName = NewImageName ( ) ;
700
+ string imageTag = "1.0" ;
701
+
702
+ // Run PublishContainer for multi-arch
703
+ CommandResult commandResult = new DotnetCommand (
704
+ _testOutput ,
705
+ "publish" ,
706
+ "/t:PublishContainer" ,
707
+ $ "/p:ContainerBaseImage={ DockerRegistryManager . FullyQualifiedBaseImageAspNet } ",
708
+ $ "/p:ContainerRepository={ imageName } ",
709
+ $ "/p:ContainerImageTag={ imageTag } ",
710
+ "/p:EnableSdkContainerSupport=true" )
711
+ . WithWorkingDirectory ( newProjectDir . FullName )
712
+ . Execute ( ) ;
713
+ commandResult . Should ( ) . Pass ( ) ;
714
+
715
+ // Check that the containers can be run
716
+ CommandResult processResultX64 = ContainerCli . RunCommand (
717
+ _testOutput ,
718
+ "--rm" ,
719
+ "--name" ,
720
+ $ "test-container-singlearch-norid",
721
+ $ "{ imageName } :{ imageTag } ")
722
+ . Execute ( ) ;
723
+ processResultX64 . Should ( ) . Pass ( ) . And . HaveStdOut ( "Hello, World!" ) ;
724
+ }
725
+
693
726
[ DockerIsAvailableAndSupportsArchFact ( "linux/arm64" ) ]
694
727
public void EndToEndMultiArch_LocalRegistry ( )
695
728
{
You can’t perform that action at this time.
0 commit comments