From 6c8636c8ad219d59406e5ddf6caad4ab084fb99a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 07:22:54 +0000 Subject: [PATCH 1/2] chore(deps): bump the kiota-dependencies group across 3 directories with 4 updates Bumps the kiota-dependencies group with 4 updates in the /src/Microsoft.Graph.Core directory: [Microsoft.Kiota.Abstractions](https://github.com/microsoft/kiota-dotnet), [Microsoft.Kiota.Authentication.Azure](https://github.com/microsoft/kiota-dotnet), [Microsoft.Kiota.Http.HttpClientLibrary](https://github.com/microsoft/kiota-dotnet) and [Microsoft.Kiota.Serialization.Json](https://github.com/microsoft/kiota-dotnet). Bumps the kiota-dependencies group with 4 updates in the /tests/Microsoft.Graph.DotnetCore.Core.Test directory: [Microsoft.Kiota.Abstractions](https://github.com/microsoft/kiota-dotnet), [Microsoft.Kiota.Authentication.Azure](https://github.com/microsoft/kiota-dotnet), [Microsoft.Kiota.Http.HttpClientLibrary](https://github.com/microsoft/kiota-dotnet) and [Microsoft.Kiota.Serialization.Json](https://github.com/microsoft/kiota-dotnet). Bumps the kiota-dependencies group with 4 updates in the /tests/Microsoft.Graph.DotnetCore.Core.Trimming directory: [Microsoft.Kiota.Abstractions](https://github.com/microsoft/kiota-dotnet), [Microsoft.Kiota.Authentication.Azure](https://github.com/microsoft/kiota-dotnet), [Microsoft.Kiota.Http.HttpClientLibrary](https://github.com/microsoft/kiota-dotnet) and [Microsoft.Kiota.Serialization.Json](https://github.com/microsoft/kiota-dotnet). Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Authentication.Azure` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Http.HttpClientLibrary` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Serialization.Json` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Authentication.Azure` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Http.HttpClientLibrary` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Serialization.Json` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Authentication.Azure` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Http.HttpClientLibrary` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Abstractions` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) Updates `Microsoft.Kiota.Serialization.Json` from 1.15.2 to 1.16.3 - [Release notes](https://github.com/microsoft/kiota-dotnet/releases) - [Changelog](https://github.com/microsoft/kiota-dotnet/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota-dotnet/compare/v1.15.2...v1.16.3) --- updated-dependencies: - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Authentication.Azure dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Http.HttpClientLibrary dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Serialization.Json dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Authentication.Azure dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Http.HttpClientLibrary dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Serialization.Json dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Authentication.Azure dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Http.HttpClientLibrary dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Abstractions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies - dependency-name: Microsoft.Kiota.Serialization.Json dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kiota-dependencies ... Signed-off-by: dependabot[bot] --- src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj b/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj index ecc41472..1271d5c2 100644 --- a/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj +++ b/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj @@ -65,12 +65,12 @@ - - - + + + - + runtime; build; native; contentfiles; analyzers; buildtransitive From 32aac7b5753f0f3a42012b9bf6c810b1bce1f36f Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Fri, 10 Jan 2025 10:48:18 +0300 Subject: [PATCH 2/2] fix: update kiota dependencies to expose the BodyInspectionHandler --- src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj | 10 +++++----- .../Microsoft.Graph.DotnetCore.Core.Test.csproj | 6 +++--- .../Requests/GraphClientFactoryTests.cs | 6 ++++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj b/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj index 1271d5c2..260f1ed9 100644 --- a/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj +++ b/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj @@ -62,16 +62,16 @@ - - + + - - + + - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Microsoft.Graph.DotnetCore.Core.Test/Microsoft.Graph.DotnetCore.Core.Test.csproj b/tests/Microsoft.Graph.DotnetCore.Core.Test/Microsoft.Graph.DotnetCore.Core.Test.csproj index 83597ed2..0e2a5acf 100644 --- a/tests/Microsoft.Graph.DotnetCore.Core.Test/Microsoft.Graph.DotnetCore.Core.Test.csproj +++ b/tests/Microsoft.Graph.DotnetCore.Core.Test/Microsoft.Graph.DotnetCore.Core.Test.csproj @@ -18,18 +18,18 @@ all - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/GraphClientFactoryTests.cs b/tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/GraphClientFactoryTests.cs index 84ef41db..d48de241 100644 --- a/tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/GraphClientFactoryTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Core.Test/Requests/GraphClientFactoryTests.cs @@ -77,7 +77,8 @@ public void Should_CreatePipeline_Without_HttpMessageHandlerInput() using ParametersNameDecodingHandler odataQueryHandler = (ParametersNameDecodingHandler)redirectHandler.InnerHandler; using UserAgentHandler userAgentHandler = (UserAgentHandler)odataQueryHandler.InnerHandler; using HeadersInspectionHandler headersInspectionHandler = (HeadersInspectionHandler)userAgentHandler.InnerHandler; - using GraphTelemetryHandler telemetryHandler = (GraphTelemetryHandler)headersInspectionHandler.InnerHandler; + using BodyInspectionHandler bodyInspectionHandler = (BodyInspectionHandler)headersInspectionHandler.InnerHandler; + using GraphTelemetryHandler telemetryHandler = (GraphTelemetryHandler)bodyInspectionHandler.InnerHandler; using MockRedirectHandler innerMost = (MockRedirectHandler)telemetryHandler.InnerHandler; Assert.NotNull(telemetryHandler); @@ -106,7 +107,8 @@ public void CreatePipelineWithHttpMessageHandlerInput() using ParametersNameDecodingHandler odataQueryHandler = (ParametersNameDecodingHandler)redirectHandler.InnerHandler; using UserAgentHandler userAgentHandler = (UserAgentHandler)odataQueryHandler.InnerHandler; using HeadersInspectionHandler headersInspectionHandler = (HeadersInspectionHandler)userAgentHandler.InnerHandler; - using GraphTelemetryHandler telemetryHandler = (GraphTelemetryHandler)headersInspectionHandler.InnerHandler; + using BodyInspectionHandler bodyInspectionHandler = (BodyInspectionHandler)headersInspectionHandler.InnerHandler; + using GraphTelemetryHandler telemetryHandler = (GraphTelemetryHandler)bodyInspectionHandler.InnerHandler; using MockRedirectHandler innerMost = (MockRedirectHandler)telemetryHandler.InnerHandler; Assert.NotNull(telemetryHandler);