Skip to content

Commit

Permalink
adjust conf format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason committed Dec 7, 2020
1 parent 2528a86 commit df01aaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions api/conf/conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ conf:
endpoints: # supports defining multiple etcd host addresses for an etcd cluster
- 127.0.0.1:2379

# etcd basic auth info
# username: "root" # ignore this argument if not enable auth
# password: "123456" # ignore this argument if not enable auth
# etcd basic auth info
# username: "root" # ignore etcd username if not enable etcd auth
# password: "123456" # ignore etcd password if not enable etcd auth
log:
error_log:
level: warn # supports levels, lower to higher: debug, info, warn, error, panic, fatal
Expand Down
4 changes: 2 additions & 2 deletions api/test/shell/cli_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ if [[ `grep -c "etcdserver: user name is empty" ./error.log` -eq '0' ]]; then
fi

# modify etcd auth config
sed -i '1,$s/# username: "root" # ignore this argument if not enable auth/username: "root"/g' conf/conf.yaml
sed -i '1,$s/# password: "123456" # ignore this argument if not enable auth/password: "root"/g' conf/conf.yaml
sed -i '1,$s/# username: "root" # ignore etcd username if not enable etcd auth/username: "root"/g' conf/conf.yaml
sed -i '1,$s/# password: "123456" # ignore etcd password if not enable etcd auth/password: "root"/g' conf/conf.yaml

./manager-api &
sleep 3
Expand Down

0 comments on commit df01aaa

Please sign in to comment.