Skip to content

Commit

Permalink
fix add hosts (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisChu authored Dec 21, 2021
1 parent 453064d commit ac50d72
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,9 @@ public void testComplexTypeForJson() {
Assert.assertEquals(rowData, "[{\"person.first_out_city\":1111,\"person"
+ ".book_num\":100,\"person.age\":10,\"person.expend\":100,\"person.is_girl\":"
+ "false,\"person.name\":\"Bob\",\"person.grade\":3,\"person.birthday\":\"2010"
+ "-09-10T02:08:02.0Z\",\"student.name\":\"Bob\",\"person.child_name\":\"Hello"
+ " Worl\",\"person.property\":1000,\"person.morning\":\"23:10:00.000000Z\",\""
+ "-09-10T02:08:02.000000000Z\",\"student.name\":\"Bob\","
+ "\"person.child_name\":\"Hello Worl\","
+ "\"person.property\":1000,\"person.morning\":\"23:10:00.000000000Z\",\""
+ "person.start_school\":\"2017-09-10\",\"person.friends\":10}]");
} catch (IOErrorException e) {
e.printStackTrace();
Expand Down
14 changes: 14 additions & 0 deletions client/src/test/resources/docker-compose-casigned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,20 @@ services:
restart: on-failure
cap_add:
- SYS_PTRACE
console:
image: vesoft/nebula-console:nightly
entrypoint: ""
command:
- sh
- -c
- |
sleep 3 &&
nebula-console -addr graphd-casigned -port 9669 -u root -p nebula -e 'ADD HOSTS "172.29.2.1":9779' &&
sleep 36000
depends_on:
- graphd-casigned
networks:
- nebula-net-casigned

networks:
nebula-net-casigned:
Expand Down
14 changes: 14 additions & 0 deletions client/src/test/resources/docker-compose-selfsigned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ services:
restart: on-failure
cap_add:
- SYS_PTRACE
console:
image: vesoft/nebula-console:nightly
entrypoint: ""
command:
- sh
- -c
- |
sleep 3 &&
nebula-console -addr graphd-selfsigned -port 9669 -u root -p nebula -e 'ADD HOSTS "172.30.2.1":9779' &&
sleep 36000
depends_on:
- graphd-selfsigned
networks:
- nebula-net-selfsigned

networks:
nebula-net-selfsigned:
Expand Down
14 changes: 14 additions & 0 deletions client/src/test/resources/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,20 @@ services:
restart: on-failure
cap_add:
- SYS_PTRACE
console:
image: vesoft/nebula-console:nightly
entrypoint: ""
command:
- sh
- -c
- |
sleep 3 &&
nebula-console -addr graphd0 -port 9669 -u root -p nebula -e 'ADD HOSTS "172.28.2.1":9779,"172.28.2.2":9779,"172.28.2.3":9779' &&
sleep 36000
depends_on:
- graphd0
networks:
- nebula-net

networks:
nebula-net:
Expand Down

0 comments on commit ac50d72

Please sign in to comment.