Skip to content

Commit

Permalink
Merge branch 'main' into use_credential
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoox committed Sep 27, 2024
2 parents ead5967 + b550f27 commit 5638880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=com.linecorp.centraldogma
version=0.69.2-SNAPSHOT
version=0.70.1-SNAPSHOT
projectName=Central Dogma
projectUrl=https://line.github.io/centraldogma/
projectDescription=Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

import java.util.concurrent.CompletableFuture;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

Expand Down Expand Up @@ -55,16 +53,12 @@ protected void configure(CentralDogmaBuilder builder) {

@Test
void createGroupViaHttp() {
final CompletableFuture<AggregatedHttpResponse> future =
createGroupAsync("foo", dogma.httpClient());
final CompletableFuture<AggregatedHttpResponse> future2 =
createGroupAsync("foo", dogma.httpClient());
AggregatedHttpResponse response = future.join();
AggregatedHttpResponse response = createGroupAsync("foo", dogma.httpClient()).join();
assertOk(response);
assertThatJson(response.contentUtf8()).isEqualTo("{\"name\":\"groups/foo\"}");

// Cannot create with the same name.
response = future2.join();
response = createGroupAsync("foo", dogma.httpClient()).join();
assertThat(response.status()).isSameAs(HttpStatus.CONFLICT);
assertThat(response.headers().get("grpc-status"))
.isEqualTo(Integer.toString(Status.ALREADY_EXISTS.getCode().value()));
Expand Down

0 comments on commit 5638880

Please sign in to comment.