Skip to content

Commit

Permalink
Bump java-directory to v0.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanIrimie authored Feb 21, 2024
1 parent 2620295 commit 54c913d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<dependency>
<groupId>com.aserto</groupId>
<artifactId>java-directory</artifactId>
<version>0.30.2</version>
<version>0.31.0</version>
</dependency>

<!-- Used for unit testing -->
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/aserto/directory/v3/DirectoryClient.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.aserto.directory.v3;

import com.aserto.directory.importer.v3.Opcode;
import com.aserto.utils.MessageChunker;
import com.aserto.directory.common.v3.ObjectIdentifier;
import com.aserto.directory.common.v3.PaginationRequest;
Expand Down
20 changes: 10 additions & 10 deletions src/test/java/DirectoryClientTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import com.aserto.ChannelBuilder;
import com.aserto.directory.common.v3.ObjectDependency;
import com.aserto.directory.exporter.v3.ExportResponse;
import com.aserto.directory.exporter.v3.Option;
import com.aserto.directory.importer.v3.Opcode;
Expand Down Expand Up @@ -54,13 +53,16 @@ class DirectoryClientTest {
" relations:\n" +
" ### display_name: user#manager ###\n" +
" manager: user\n" +
" friend: user\n" +
"\n" +
" ### display_name: Identity ###\n" +
" identity:\n" +
" relations:\n" +
" ### display_name: identity#identifier ###\n" +
" identifier: user\n" +
"\n" +
" test_type:\n" +
"\n" +
" ### display_name: Group ###\n" +
" group:\n" +
" relations:\n" +
Expand Down Expand Up @@ -290,19 +292,17 @@ void testCheckManager() throws UninitilizedClientException {
void testGetGraph() {
// Arrange
GetGraphRequest getGraphRequest = GetGraphRequest.newBuilder()
.setAnchorType("user")
.setAnchorId("[email protected]")
.setObjectType("user")
.setObjectId("[email protected]")
.setRelation("manager")
.setSubjectType("user")
.setSubjectId("[email protected]")
.build();

List<ObjectDependency> objectDependencyList = Arrays.asList(
ObjectDependency.newBuilder()
List<ObjectIdentifier> objectDependencyList = Arrays.asList(
ObjectIdentifier.newBuilder()
.setObjectType("user")
.setObjectId("[email protected]")
.setRelation("manager")
.setSubjectType("user")
.setSubjectId("[email protected]")
.setObjectId("[email protected]")
.build()
);

Expand All @@ -319,7 +319,7 @@ void testGetGraph() {
void setObjectTest() throws UninitilizedClientException {
// Arrange
Object object = Directory.buildObject("test_type", "test_id");

// Act
SetObjectResponse setObjectResponse = directoryClient.setObject("test_type", "test_id");

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/utils/Topaz.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void stop() throws IOException, InterruptedException {
}

private void start() throws IOException, InterruptedException {
ProcessBuilder pb = new ProcessBuilder("topaz","start");
ProcessBuilder pb = new ProcessBuilder("topaz","start", "--container-version", "model-v2.3");
pb.inheritIO();
Process process = pb.start();
process.waitFor();
Expand Down

0 comments on commit 54c913d

Please sign in to comment.