wfnuser commented on pull request #2846:
URL: https://github.com/apache/apisix/pull/2846#issuecomment-734123616


   > you can make a try with this way, it is simpler way.
   > 
   > ```shell
   > make init
   > cmd_res=`etcdctl --endpoints=127.0.0.1:2379 --user=root:apache-api6 get 
/apisix --prefix`
   > etcdctl --endpoints=127.0.0.1:2379 --user=root:apache-api6 auth disable
   > etcdctl --endpoints=127.0.0.1:2379 role delete root
   > etcdctl --endpoints=127.0.0.1:2379 user delete root
   > 
   > count=`echo $cmd_res | grep -c "/apisix/global_rules" || true`
   > if [ $count -ne 1 ]; then
   >     echo "failed: failed to match '/apisix/global_rules'"
   >     exit 1
   > fi
   > ```
   
   Thx. This is really the simpler way. 
   And I had some misunderstanding before. Actually we should check that there 
is some part of the ETCD keys must exists? If the particular key-value not 
exists in ETCD we should fail it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to