kevinw66 commented on a change in pull request #5675: URL: https://github.com/apache/apisix/pull/5675#discussion_r761728930
########## File path: t/cli/test_main.sh ########## @@ -310,6 +310,35 @@ fi echo "pass: support environment variables in local_conf" +# support default value when environment not set +echo ' +etcd: + host: + - "http://${{ETCD_HOST:192.168.1.1}}:${{ETCD_PORT}}" +' > conf/config.yaml + +ETCD_PORT=2379 make init + +if ! grep "env ETCD_HOST=192.168.1.1;" conf/nginx.conf > /dev/null; then Review comment: When etcd cannot connect correctly, I found that error will print in console, not error.log -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
