Skip to content

Commit

Permalink
Merge branch 'master' into auth_for_scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 authored Dec 29, 2023
2 parents f8cb2d8 + aefa527 commit e826af8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ public class StorageClient implements Serializable {
private boolean enableSSL = false;
private SSLParam sslParam = null;


private String user = null;
private String password = null;

private String graphAddress = null;

// the write list for users with read permission
private Map<String, List<String>> spaceLabelWriteList = null;

private String version = null;

/**
Expand Down Expand Up @@ -129,6 +131,7 @@ public void setGraphAddress(String graphAddress) {
this.graphAddress = graphAddress;
}


public StorageClient setVersion(String version) {
this.version = version;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void testStorageClientWithVersionInWhiteList() {
List<HostAddress> address = Arrays.asList(new HostAddress(ip, 9559));
StorageClient storageClient = new StorageClient(address);
try {

storageClient.setGraphAddress("127.0.0.1:9669");
storageClient.setUser("root");
storageClient.setPassword("nebula");
Expand Down

0 comments on commit e826af8

Please sign in to comment.