Skip to content

Commit

Permalink
docs: update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Nov 10, 2021
1 parent f4ef1d5 commit 141e084
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

### Features
1. [#272](https://github.com/influxdata/influxdb-client-java/pull/272): Add `PingService` to check status of OSS and Cloud instance
2. [#278](https://github.com/influxdata/influxdb-client-java/pull/278): Add query method with all params for BucketsApi, OrganizationApi and TasksApi
1. [#278](https://github.com/influxdata/influxdb-client-java/pull/278): Add query method with all params for BucketsApi, OrganizationApi and TasksApi

### Bug Fixes
1. [#279](https://github.com/influxdata/influxdb-client-java/pull/279): Session authentication for InfluxDB `2.1`

### CI
1. [#275](https://github.com/influxdata/influxdb-client-java/pull/275): Deploy `influxdb-client-test` package into Maven repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,18 @@ void signout() throws IOException {
return;
}

Request authRequest = new Request.Builder()
Request.Builder authRequest = new Request.Builder()
.url(buildPath("api/v2/signout"))
.post(RequestBody.create("application/json", null))
.header("Cookie", string(sessionCookies))
.build();
.post(RequestBody.create("application/json", null));

this.signout.set(true);
this.sessionCookies = null;
if (sessionCookies != null) {
authRequest.addHeader("Cookie", string(sessionCookies));
}

signout.set(true);
sessionCookies = null;

Response response = this.okHttpClient.newCall(authRequest).execute();
Response response = okHttpClient.newCall(authRequest.build()).execute();
response.close();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void authorizationSession() throws IOException, InterruptedException {
RecordedRequest requestToTasks = mockServer.takeRequest();
Assertions.assertThat(requestToTasks.getPath()).endsWith("/api/v2/tasks");
Assertions.assertThat(requestToTasks.getHeader("Cookie"))
.isEqualTo("session=yCgXaEBF8mYSmJUweRcW0g_5jElMs7mv6_-G1bNcau4Z0ZLQYtj0BkHZYRnBVA6uXHtyuhflcOzyNDNRxnaC0A==");
.isEqualTo("session=yCgXaEBF8mYSmJUweRcW0g_5jElMs7mv6_-G1bNcau4Z0ZLQYtj0BkHZYRnBVA6uXHtyuhflcOzyNDNRxnaC0A==; path=/api/v2");
}

@Test
Expand Down

0 comments on commit 141e084

Please sign in to comment.