diff --git a/.travis.yml b/.travis.yml index d03dc4b5..7bffdd2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ dist: trusty language: csharp mono: none -dotnet: 2.1 +dotnet: 6.0 git: depth: 9999999 branches: diff --git a/samples/ConfigFromConfigMap/ConfigFromConfigMap.csproj b/samples/ConfigFromConfigMap/ConfigFromConfigMap.csproj index f062ae89..1c89c15e 100644 --- a/samples/ConfigFromConfigMap/ConfigFromConfigMap.csproj +++ b/samples/ConfigFromConfigMap/ConfigFromConfigMap.csproj @@ -1,7 +1,7 @@ Exe - netcoreapp2.1 + net6.0 latest diff --git a/samples/DeploymentWithRollback/DeploymentWithRollback.csproj b/samples/DeploymentWithRollback/DeploymentWithRollback.csproj index 35ea2601..ffa55e67 100644 --- a/samples/DeploymentWithRollback/DeploymentWithRollback.csproj +++ b/samples/DeploymentWithRollback/DeploymentWithRollback.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.1 + net6.0 latest diff --git a/samples/ExtensionsSample/ExtensionsSample.csproj b/samples/ExtensionsSample/ExtensionsSample.csproj index 656b161c..066d8f39 100644 --- a/samples/ExtensionsSample/ExtensionsSample.csproj +++ b/samples/ExtensionsSample/ExtensionsSample.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.1 + net6.0 diff --git a/samples/WatchEvents/WatchEvents.csproj b/samples/WatchEvents/WatchEvents.csproj index 84565502..c7e7a5ad 100644 --- a/samples/WatchEvents/WatchEvents.csproj +++ b/samples/WatchEvents/WatchEvents.csproj @@ -1,7 +1,7 @@  Exe - netcoreapp2.1 + net6.0 latest diff --git a/samples/noob-exec/NoobExec.csproj b/samples/noob-exec/NoobExec.csproj index 37e16f40..f8ef532e 100644 --- a/samples/noob-exec/NoobExec.csproj +++ b/samples/noob-exec/NoobExec.csproj @@ -2,7 +2,7 @@ Exe noob-exec - netcoreapp2.1 + net6.0 latest diff --git a/src/KubeClient.Extensions.DependencyInjection/KubeClient.Extensions.DependencyInjection.csproj b/src/KubeClient.Extensions.DependencyInjection/KubeClient.Extensions.DependencyInjection.csproj index c5f6a26d..775870e6 100644 --- a/src/KubeClient.Extensions.DependencyInjection/KubeClient.Extensions.DependencyInjection.csproj +++ b/src/KubeClient.Extensions.DependencyInjection/KubeClient.Extensions.DependencyInjection.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/KubeClient.Extensions.KubeConfig/KubeClient.Extensions.KubeConfig.csproj b/src/KubeClient.Extensions.KubeConfig/KubeClient.Extensions.KubeConfig.csproj index 75fc6ca1..f917781b 100644 --- a/src/KubeClient.Extensions.KubeConfig/KubeClient.Extensions.KubeConfig.csproj +++ b/src/KubeClient.Extensions.KubeConfig/KubeClient.Extensions.KubeConfig.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/KubeClient.Extensions.WebSockets/KubeClient.Extensions.WebSockets.csproj b/src/KubeClient.Extensions.WebSockets/KubeClient.Extensions.WebSockets.csproj index 1b025de5..ebb3996b 100644 --- a/src/KubeClient.Extensions.WebSockets/KubeClient.Extensions.WebSockets.csproj +++ b/src/KubeClient.Extensions.WebSockets/KubeClient.Extensions.WebSockets.csproj @@ -1,6 +1,6 @@ - netcoreapp2.1 + net6.0 WebSockets support for KubeClient @@ -10,7 +10,7 @@ - + diff --git a/src/KubeClient/KubeClient.csproj b/src/KubeClient/KubeClient.csproj index dcefd21b..49a39901 100644 --- a/src/KubeClient/KubeClient.csproj +++ b/src/KubeClient/KubeClient.csproj @@ -6,9 +6,9 @@ - - - + + + diff --git a/test/KubeClient.Extensions.Configuration.Tests/KubeClient.Extensions.Configuration.Tests.csproj b/test/KubeClient.Extensions.Configuration.Tests/KubeClient.Extensions.Configuration.Tests.csproj index 27720012..2109f6d8 100644 --- a/test/KubeClient.Extensions.Configuration.Tests/KubeClient.Extensions.Configuration.Tests.csproj +++ b/test/KubeClient.Extensions.Configuration.Tests/KubeClient.Extensions.Configuration.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp2.1 + net6.0 latest false @@ -17,10 +17,10 @@ - - - - + + + + diff --git a/test/KubeClient.Extensions.KubeConfig.Tests/KubeClient.Extensions.KubeConfig.Tests.csproj b/test/KubeClient.Extensions.KubeConfig.Tests/KubeClient.Extensions.KubeConfig.Tests.csproj index 134b100d..f0038eae 100644 --- a/test/KubeClient.Extensions.KubeConfig.Tests/KubeClient.Extensions.KubeConfig.Tests.csproj +++ b/test/KubeClient.Extensions.KubeConfig.Tests/KubeClient.Extensions.KubeConfig.Tests.csproj @@ -1,6 +1,6 @@ - netcoreapp2.1 + net6.0 false diff --git a/test/KubeClient.Extensions.WebSockets.Tests/KubeClient.Extensions.WebSockets.Tests.csproj b/test/KubeClient.Extensions.WebSockets.Tests/KubeClient.Extensions.WebSockets.Tests.csproj index 0947de6f..6f6653ef 100644 --- a/test/KubeClient.Extensions.WebSockets.Tests/KubeClient.Extensions.WebSockets.Tests.csproj +++ b/test/KubeClient.Extensions.WebSockets.Tests/KubeClient.Extensions.WebSockets.Tests.csproj @@ -1,7 +1,7 @@ - netcoreapp2.1 + net6.0 false diff --git a/test/KubeClient.Extensions.WebSockets.Tests/WebSocketTestBase.cs b/test/KubeClient.Extensions.WebSockets.Tests/WebSocketTestBase.cs index d0b98563..9c88ce00 100644 --- a/test/KubeClient.Extensions.WebSockets.Tests/WebSocketTestBase.cs +++ b/test/KubeClient.Extensions.WebSockets.Tests/WebSocketTestBase.cs @@ -156,7 +156,7 @@ protected async Task Disconnect(WebSocket clientSocket, WebSocket serverSocket, Log.LogInformation("Closing client socket..."); await clientSocket.CloseAsync(closeStatus, closeStatusDescription, TestCancellation).ConfigureAwait(false); - Assert.Equal(WebSocketState.Aborted, clientSocket.State); // AF: Not sure whether or not this is a bug in CoreFX. See if it occurs when we directly use ClientWebSocket. + Assert.Equal(WebSocketState.Closed, clientSocket.State); Log.LogInformation("Client socket closed (CloseStatus = '{CloseStatus}', CloseStatusDescription = '{CloseStatusDescription}').", clientSocket.CloseStatus, clientSocket.CloseStatusDescription); diff --git a/test/KubeClient.Tests/KubeClient.Tests.csproj b/test/KubeClient.Tests/KubeClient.Tests.csproj index 5336654a..2f33269c 100644 --- a/test/KubeClient.Tests/KubeClient.Tests.csproj +++ b/test/KubeClient.Tests/KubeClient.Tests.csproj @@ -1,7 +1,7 @@ - netcoreapp2.1 + net6.0 latest false @@ -16,10 +16,10 @@ - - - - + + + +