Skip to content

Commit 7e0bb3f

Browse files
nagilsongithub-actions
authored andcommitted
add even more tests
1 parent de701df commit 7e0bb3f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public CreateImageIndexTests(ITestOutputHelper testOutput)
2222
_testOutput = testOutput;
2323
}
2424

25-
[DockerAvailableFact]
25+
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")]
2626
public async Task CreateImageIndex_Baseline()
2727
{
2828
DirectoryInfo newProjectDir = CreateNewProject();

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public CreateNewImageTests(ITestOutputHelper testOutput)
2020
_testOutput = testOutput;
2121
}
2222

23-
[DockerAvailableFact]
23+
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")]
2424
public void CreateNewImage_Baseline()
2525
{
2626
DirectoryInfo newProjectDir = new(GetTestDirectoryName());
@@ -52,7 +52,7 @@ public void CreateNewImage_Baseline()
5252
task.BaseImageTag = "7.0";
5353

5454
task.OutputRegistry = "localhost:5010";
55-
task.LocalRegistry = DockerAvailableFactAttribute.LocalRegistry;
55+
task.LocalRegistry = DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")Attribute.LocalRegistry;
5656
task.PublishDirectory = Path.Combine(newProjectDir.FullName, "bin", "Release", ToolsetInfo.CurrentTargetFramework, "linux-arm64", "publish");
5757
task.Repository = "dotnet/create-new-image-baseline";
5858
task.ImageTags = new[] { "latest" };
@@ -70,7 +70,7 @@ private static ImageConfig GetImageConfigFromTask(CreateNewImage task)
7070
return new(task.GeneratedContainerConfiguration);
7171
}
7272

73-
[DockerAvailableFact]
73+
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")]
7474
public void ParseContainerProperties_EndToEnd()
7575
{
7676
DirectoryInfo newProjectDir = new(GetTestDirectoryName());
@@ -133,7 +133,7 @@ public void ParseContainerProperties_EndToEnd()
133133
/// <summary>
134134
/// Creates a console app that outputs the environment variable added to the image.
135135
/// </summary>
136-
[DockerAvailableFact()]
136+
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")()]
137137
public void Tasks_EndToEnd_With_EnvironmentVariable_Validation()
138138
{
139139
DirectoryInfo newProjectDir = new(GetTestDirectoryName());
@@ -198,7 +198,7 @@ public void Tasks_EndToEnd_With_EnvironmentVariable_Validation()
198198
cni.ContainerEnvironmentVariables = pcp.NewContainerEnvironmentVariables;
199199
cni.ContainerRuntimeIdentifier = "linux-x64";
200200
cni.RuntimeIdentifierGraphPath = ToolsetUtils.GetRuntimeGraphFilePath();
201-
cni.LocalRegistry = DockerAvailableFactAttribute.LocalRegistry;
201+
cni.LocalRegistry = DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")Attribute.LocalRegistry;
202202

203203
Assert.True(cni.Execute(), FormatBuildMessages(errors));
204204

@@ -216,7 +216,7 @@ public void Tasks_EndToEnd_With_EnvironmentVariable_Validation()
216216
.And.HaveStdOut("Foo");
217217
}
218218

219-
[DockerAvailableFact]
219+
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")]
220220
public async System.Threading.Tasks.Task CreateNewImage_RootlessBaseImage()
221221
{
222222
const string RootlessBase = "dotnet/rootlessbase";
@@ -297,7 +297,7 @@ public async System.Threading.Tasks.Task CreateNewImage_RootlessBaseImage()
297297
}
298298

299299

300-
[DockerAvailableFact]
300+
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")]
301301
public void CanOverrideContainerImageFormat()
302302
{
303303
DirectoryInfo newProjectDir = new(GetTestDirectoryName());

test/Microsoft.NET.Build.Containers.UnitTests/DockerDaemonTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public async Task Can_detect_when_no_daemon_is_running()
4141
}
4242
}
4343

44-
[DockerAvailableFact]
44+
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/49502")]
4545
public async Task Can_detect_when_daemon_is_running()
4646
{
4747
var available = await new DockerCli(_loggerFactory).IsAvailableAsync(default).ConfigureAwait(false);

0 commit comments

Comments
 (0)