Skip to content

Commit 4c494cd

Browse files
committed
manual ci start
1 parent a130dca commit 4c494cd

2 files changed

Lines changed: 6 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public TestFixture(IMessageSink messageSink)
4949
{
5050
ServerCertificateValidationCallback = ValidateServerCertificate
5151
};
52+
53+
ServicePointManager.ServerCertificateValidationCallback += ValidateServerCertificate;
5254
#endif
5355
DockerClients.Add(TestClientsEnum.ManagedHttps, new DockerClientConfiguration(endpoint: new Uri("http://localhost:2376"), credentials).CreateClient(logger: this));
5456
DockerClients.Add(TestClientsEnum.NativeHttps, new DockerClientConfiguration(endpoint: new Uri("http://localhost:2376"), credentials, nativeHttpHandler: true).CreateClient(logger: this));
@@ -221,7 +223,8 @@ public static IEnumerable<object[]> GetDockerClientTypes()
221223
.Select(t => new object[] { t });
222224
}
223225

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

227230
public static IEnumerable<TestDaemonsEnum> GetDockerDaemonTypes()

0 commit comments

Comments
 (0)