Skip to content

Commit 2c1684d

Browse files
committed
Test fix and updating releases
- Updated the patch version in gradle.properies - Updated changelog.md and readme.md with the new patch version - Bumped kiota dependencies to 1.0.3 - Fixed the test UploadSliceRequestTest.putReturnsExpectedUploadSession which did not respect the response descripted in the REST reference
1 parent dc45304 commit 2c1684d

5 files changed

Lines changed: 20 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [3.1.4] - 2024-02-21
15+
16+
- Bumps Kiota-Java abstractions, authentication, http, and serialization components
17+
- Fixes a test in the test suite which did not respect the REST reference [#1517](https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/1517)
18+
- Fixes a bug with LargeFileUploadTask [#1517](https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/1517)
19+
20+
### Changed
21+
1422
## [3.1.3] - 2024-02-14
1523

1624
### Changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mavenGroupId = com.microsoft.graph
2525
mavenArtifactId = microsoft-graph-core
2626
mavenMajorVersion = 3
2727
mavenMinorVersion = 1
28-
mavenPatchVersion = 3
28+
mavenPatchVersion = 4
2929
mavenArtifactSuffix =
3030

3131
#These values are used to run functional tests

gradle/dependencies.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ dependencies {
1616
api 'com.squareup.okhttp3:okhttp:4.12.0'
1717
api 'com.azure:azure-core:1.46.0'
1818

19-
api 'com.microsoft.kiota:microsoft-kiota-abstractions:1.0.2'
20-
implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:1.0.2'
21-
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:1.0.2'
22-
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:1.0.2'
23-
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:1.0.2'
24-
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:1.0.2'
25-
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:1.0.2'
19+
api 'com.microsoft.kiota:microsoft-kiota-abstractions:1.0.3'
20+
implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:1.0.3'
21+
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:1.0.3'
22+
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:1.0.3'
23+
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:1.0.3'
24+
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:1.0.3'
25+
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:1.0.3'
2626
}

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repositories {
2222
2323
dependencies {
2424
// Include the sdk as a dependency
25-
implementation 'com.microsoft.graph:microsoft-graph-core:3.1.3'
25+
implementation 'com.microsoft.graph:microsoft-graph-core:3.1.4'
2626
// This dependency is only needed if you are using the TokenCredentialAuthProvider
2727
implementation 'com.azure:azure-identity:1.11.0'
2828
}
@@ -37,7 +37,7 @@ Add the dependency in `dependencies` in pom.xml
3737
<!-- Include the sdk as a dependency -->
3838
<groupId>com.microsoft.graph</groupId>
3939
<artifactId>microsoft-graph-core</artifactId>
40-
<version>3.1.3</version>
40+
<version>3.1.4</version>
4141
<!-- This dependency is only needed if you are using the TokenCredentialAuthProvider -->
4242
<groupId>com.azure</groupId>
4343
<artifactId>azure-identity</artifactId>

src/test/java/com/microsoft/graph/core/requests/upload/UploadSliceRequestTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ void putReturnsExpectedUploadSession() throws IOException {
4040
Response response = new Response.Builder()
4141
.request(new Request.Builder().post(mock(RequestBody.class)).url("https://a.b.c/").build())
4242
.protocol(Protocol.HTTP_1_1)
43-
.message("OK")
43+
.message("Accepted")
4444
.body(body)
45-
.code(HttpURLConnection.HTTP_OK)
45+
.code(HttpURLConnection.HTTP_ACCEPTED)
4646
.build();
4747

4848
OkHttpClient mockClient = getMockClient(response);

0 commit comments

Comments
 (0)