Skip to content

Commit 9f8117e

Browse files
authored
[automated] Merge branch 'release/8.0.4xx' => 'release/9.0.1xx' (#45824)
2 parents e444393 + d41457e commit 9f8117e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

test/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,39 @@ public void EndToEnd_NoAPI_Console()
688688
privateNuGetAssets.Delete(true);
689689
}
690690

691+
[DockerAvailableFact]
692+
public void EndToEnd_SingleArch_NoRid()
693+
{
694+
// Create a new console project
695+
DirectoryInfo newProjectDir = CreateNewProject("console");
696+
697+
string imageName = NewImageName();
698+
string imageTag = "1.0";
699+
700+
// Run PublishContainer for multi-arch
701+
CommandResult commandResult = new DotnetCommand(
702+
_testOutput,
703+
"publish",
704+
"/t:PublishContainer",
705+
$"/p:ContainerBaseImage={DockerRegistryManager.FullyQualifiedBaseImageAspNet}",
706+
$"/p:ContainerRepository={imageName}",
707+
$"/p:ContainerImageTag={imageTag}",
708+
"/p:EnableSdkContainerSupport=true")
709+
.WithWorkingDirectory(newProjectDir.FullName)
710+
.Execute();
711+
commandResult.Should().Pass();
712+
713+
// Check that the containers can be run
714+
CommandResult processResultX64 = ContainerCli.RunCommand(
715+
_testOutput,
716+
"--rm",
717+
"--name",
718+
$"test-container-singlearch-norid",
719+
$"{imageName}:{imageTag}")
720+
.Execute();
721+
processResultX64.Should().Pass().And.HaveStdOut("Hello, World!");
722+
}
723+
691724
[DockerIsAvailableAndSupportsArchFact("linux/arm64")]
692725
public void EndToEndMultiArch_LocalRegistry()
693726
{

0 commit comments

Comments
 (0)