add auth backup and auth restore (#76)
authorxuliguov5 <74189565+xuliguov5@users.noreply.github.com>
Tue, 5 Jan 2021 08:10:17 +0000 (16:10 +0800)
committerGitHub <noreply@github.com>
Tue, 5 Jan 2021 08:10:17 +0000 (16:10 +0800)
commit12ec0d33165fe4a028df49c841cde9287aac76f9
treea6a9c3ed8ee900ae8ef804d7416c7b9d8b5a984b
parent8212bf2791567b83ff79526b71e8075e60bfd77a
add auth backup and auth restore (#76)

* add auth backup and auth restore

* Add functional tests for auth backup and restore

* add travis for tools
32 files changed:
.travis.yml [new file with mode: 0644]
assembly/travis/conf/gremlin-server.yaml [new file with mode: 0644]
assembly/travis/conf/hugegraph.properties [new file with mode: 0644]
assembly/travis/conf/rest-server.properties [new file with mode: 0644]
assembly/travis/install-hugegraph.sh [new file with mode: 0755]
checkstyle.xml [new file with mode: 0644]
pom.xml
src/main/java/com/baidu/hugegraph/base/ToolClient.java
src/main/java/com/baidu/hugegraph/base/ToolManager.java
src/main/java/com/baidu/hugegraph/cmd/HugeGraphCommand.java
src/main/java/com/baidu/hugegraph/cmd/SubCommands.java
src/main/java/com/baidu/hugegraph/constant/AuthRestoreConflictStrategy.java [new file with mode: 0644]
src/main/java/com/baidu/hugegraph/constant/Constants.java [new file with mode: 0644]
src/main/java/com/baidu/hugegraph/exception/ExitException.java [new file with mode: 0644]
src/main/java/com/baidu/hugegraph/manager/AuthBackupRestoreManager.java [new file with mode: 0644]
src/main/java/com/baidu/hugegraph/manager/BackupManager.java
src/main/java/com/baidu/hugegraph/manager/BackupRestoreBaseManager.java
src/main/java/com/baidu/hugegraph/manager/DumpGraphManager.java
src/main/java/com/baidu/hugegraph/manager/RestoreManager.java
src/main/java/com/baidu/hugegraph/util/ToolUtil.java [new file with mode: 0644]
src/test/java/com/baidu/hugegraph/test/functional/AuthBackupTest.java [new file with mode: 0644]
src/test/java/com/baidu/hugegraph/test/functional/AuthRestoreTest.java [new file with mode: 0644]
src/test/java/com/baidu/hugegraph/test/functional/AuthTest.java [new file with mode: 0644]
src/test/java/com/baidu/hugegraph/test/functional/CommandTest.java [new file with mode: 0644]
src/test/java/com/baidu/hugegraph/test/functional/FuncTestSuite.java [new file with mode: 0644]
src/test/java/com/baidu/hugegraph/test/util/FileUtil.java [new file with mode: 0644]
src/test/resources/auth/auth_accesses.txt [new file with mode: 0644]
src/test/resources/auth/auth_belongs.txt [new file with mode: 0644]
src/test/resources/auth/auth_groups.txt [new file with mode: 0644]
src/test/resources/auth/auth_targets.txt [new file with mode: 0644]
src/test/resources/auth/auth_users.txt [new file with mode: 0644]
src/test/resources/auth/auth_users_conflict.txt [new file with mode: 0644]