Skip to content

Commit d9077c7

Browse files
committed
manual ci start
1 parent a130dca commit d9077c7

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: CI
22

33
on:
4-
pull_request:
5-
branches:
6-
- main
4+
workflow_dispatch:
75

86
jobs:
97
build:
10-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-latest
119
services:
1210
# Docker without TLS (plain TCP) !DEPRECATED! with next docker release
1311
docker-no-tls:

test/Docker.DotNet.Tests/TestFixture.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.IO;
2+
using System.Net;
23
using System.Net.Security;
34
using System.Security.Cryptography.X509Certificates;
45
using Docker.DotNet.X509;
@@ -49,6 +50,8 @@ public TestFixture(IMessageSink messageSink)
4950
{
5051
ServerCertificateValidationCallback = ValidateServerCertificate
5152
};
53+
54+
ServicePointManager.ServerCertificateValidationCallback += ValidateServerCertificate;
5255
#endif
5356
DockerClients.Add(TestClientsEnum.ManagedHttps, new DockerClientConfiguration(endpoint: new Uri("http://localhost:2376"), credentials).CreateClient(logger: this));
5457
DockerClients.Add(TestClientsEnum.NativeHttps, new DockerClientConfiguration(endpoint: new Uri("http://localhost:2376"), credentials, nativeHttpHandler: true).CreateClient(logger: this));
@@ -221,7 +224,8 @@ public static IEnumerable<object[]> GetDockerClientTypes()
221224
.Select(t => new object[] { t });
222225
}
223226

224-
return allClients.Select(t => new object[] { t });
227+
//return allClients.Select(t => new object[] { t });
228+
return allClients.Where(t => t == TestClientsEnum.ManagedHttps).Select(t => new object[] { t });
225229
}
226230

227231
public static IEnumerable<TestDaemonsEnum> GetDockerDaemonTypes()

0 commit comments

Comments
 (0)