mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 19:52:42 +00:00
Integration tests should use 127.0.0.1 consistently
This commit is contained in:
@@ -40,12 +40,12 @@ kube::etcd::start() {
|
||||
# Start etcd
|
||||
ETCD_DIR=$(mktemp -d -t test-etcd.XXXXXX)
|
||||
kube::log::usage "etcd -data-dir ${ETCD_DIR} --bind-addr ${host}:${port} >/dev/null 2>/dev/null"
|
||||
etcd -data-dir ${ETCD_DIR} -addr ${host}:${port} >/dev/null 2>/dev/null &
|
||||
etcd -data-dir ${ETCD_DIR} --bind-addr ${host}:${port} >/dev/null 2>/dev/null &
|
||||
ETCD_PID=$!
|
||||
|
||||
echo "Waiting for etcd to come up."
|
||||
kube::util::wait_for_url "http://${testhost}:${port}/v2/machines" "etcd: " 0.25 80
|
||||
curl -X PUT "http://${testhost}:${port}/v2/keys/_test"
|
||||
kube::util::wait_for_url "http://${host}:${port}/v2/machines" "etcd: " 0.25 80
|
||||
curl -X PUT "http://${host}:${port}/v2/keys/_test"
|
||||
}
|
||||
|
||||
kube::etcd::cleanup() {
|
||||
|
Reference in New Issue
Block a user