diff --git a/src/ApplicationInsights.Kubernetes.HostingStartup/ApplicationInsights.Kubernetes.HostingStartup.csproj b/src/ApplicationInsights.Kubernetes.HostingStartup/ApplicationInsights.Kubernetes.HostingStartup.csproj index aa9fe59..7a16f5a 100644 --- a/src/ApplicationInsights.Kubernetes.HostingStartup/ApplicationInsights.Kubernetes.HostingStartup.csproj +++ b/src/ApplicationInsights.Kubernetes.HostingStartup/ApplicationInsights.Kubernetes.HostingStartup.csproj @@ -12,10 +12,7 @@ - - - - + diff --git a/src/ApplicationInsights.Kubernetes/ApplicationInsights.Kubernetes.csproj b/src/ApplicationInsights.Kubernetes/ApplicationInsights.Kubernetes.csproj index 9d056e7..ed59da8 100644 --- a/src/ApplicationInsights.Kubernetes/ApplicationInsights.Kubernetes.csproj +++ b/src/ApplicationInsights.Kubernetes/ApplicationInsights.Kubernetes.csproj @@ -1,4 +1,4 @@ - + IOperation @@ -18,15 +18,15 @@ - - - - - - - - - + + + + + + + + + diff --git a/src/Directory.Build.props b/src/Directory.Build.props index b42d89b..ac66a7b 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,4 +1,4 @@ - + @@ -32,7 +32,7 @@ - + all diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props new file mode 100644 index 0000000..c779d44 --- /dev/null +++ b/src/Directory.Packages.props @@ -0,0 +1,19 @@ + + + true + true + + + + + + + + + + + + + + + diff --git a/tests/UnitTests/PodInfoManagerTests.cs b/tests/UnitTests/PodInfoManagerTests.cs index 06370d1..bdde329 100644 --- a/tests/UnitTests/PodInfoManagerTests.cs +++ b/tests/UnitTests/PodInfoManagerTests.cs @@ -31,7 +31,7 @@ public async Task GetMyPodAsyncShouldGetCorrectPod() containerIdHolderMock.Setup(c => c.ContainerId).Returns("containerId"); PodInfoManager target = new PodInfoManager(k8sQueryClientMock.Object, containerIdHolderMock.Object, new IPodNameProvider[] { podNameProviderMock.Object }); - V1Pod result = await target.GetMyPodAsync(default).ConfigureAwait(false); + V1Pod result = await target.GetMyPodAsync(default); Assert.NotNull(result); Assert.Single(result.Status.ContainerStatuses); @@ -58,7 +58,7 @@ public async Task GetMyPodAsyncShouldLeveragePodNameProviders() k8sQueryClientMock.Setup(c => c.GetPodByNameAsync(It.IsAny(), It.IsAny())).Returns(Task.FromResult(podsArray.FirstOrDefault(item => item.Metadata.Name == providerPodName))); PodInfoManager target = new PodInfoManager(k8sQueryClientMock.Object, containerIdHolderMock.Object, new IPodNameProvider[] { podNameProviderMock.Object }); - V1Pod result = await target.GetMyPodAsync(default).ConfigureAwait(false); + V1Pod result = await target.GetMyPodAsync(default); Assert.NotNull(result); Assert.Single(result.Status.ContainerStatuses); @@ -88,7 +88,7 @@ public async Task GetMyPodAsyncShouldFallbackToUseContainerIdWhenProvidedPodName containerIdHolderMock.Setup(c => c.ContainerId).Returns(targetContainerId); PodInfoManager target = new PodInfoManager(k8sQueryClientMock.Object, containerIdHolderMock.Object, new IPodNameProvider[] { podNameProviderMock.Object }); - V1Pod result = await target.GetMyPodAsync(default).ConfigureAwait(false); + V1Pod result = await target.GetMyPodAsync(default); Assert.NotNull(result); Assert.Single(result.Status.ContainerStatuses); @@ -119,7 +119,7 @@ public async Task GetMyPodAsyncShouldSupportMultipleIPodNameProviders() podNameProviderMock2.Setup(p => p.TryGetPodName(out providerPodName2)).Returns(true); // the provider returns true with pod name. PodInfoManager target = new PodInfoManager(k8sQueryClientMock.Object, containerIdHolderMock.Object, new IPodNameProvider[] { podNameProviderMock.Object, podNameProviderMock2.Object }); - V1Pod result = await target.GetMyPodAsync(default).ConfigureAwait(false); + V1Pod result = await target.GetMyPodAsync(default); Assert.NotNull(result); Assert.Single(result.Status.ContainerStatuses); diff --git a/tests/UnitTests/UnitTests.csproj b/tests/UnitTests/UnitTests.csproj index 5ae9817..a9c95ae 100644 --- a/tests/UnitTests/UnitTests.csproj +++ b/tests/UnitTests/UnitTests.csproj @@ -11,7 +11,7 @@ - +