@@ -11,7 +11,7 @@ load ${BASE_TEST_DIR}/helpers.bash
1111 run machine env --shell powershell --no-proxy $NAME
1212 [[ ${lines[0]} == " \$ Env:DOCKER_TLS_VERIFY = \" 1\" " ]]
1313 [[ ${lines[1]} == " \$ Env:DOCKER_HOST = \" $( machine url $NAME ) \" " ]]
14- [[ ${lines[2]} == " \$ Env:DOCKER_CERT_PATH = \" $MACHINE_STORAGE_PATH /certs \" " ]]
14+ [[ ${lines[2]} == " \$ Env:DOCKER_CERT_PATH = \" $MACHINE_STORAGE_PATH /machines/ $NAME \" " ]]
1515 [[ ${lines[3]} == " \$ Env:DOCKER_MACHINE_NAME = \" $NAME \" " ]]
1616 [[ ${lines[4]} == " \$ Env:NO_PROXY = \" $( machine ip $NAME ) \" " ]]
1717}
@@ -20,25 +20,25 @@ load ${BASE_TEST_DIR}/helpers.bash
2020 run machine env --no-proxy $NAME
2121 [[ ${lines[0]} == " export DOCKER_TLS_VERIFY=\" 1\" " ]]
2222 [[ ${lines[1]} == " export DOCKER_HOST=\" $( machine url $NAME ) \" " ]]
23- [[ ${lines[2]} == " export DOCKER_CERT_PATH=\" $MACHINE_STORAGE_PATH /certs \" " ]]
23+ [[ ${lines[2]} == " export DOCKER_CERT_PATH=\" $MACHINE_STORAGE_PATH /machines/ $NAME \" " ]]
2424 [[ ${lines[3]} == " export DOCKER_MACHINE_NAME=\" $NAME \" " ]]
2525 [[ ${lines[4]} == " export NO_PROXY=\" $( machine ip $NAME ) \" " ]]
2626}
2727
2828@test " $DRIVER : test cmd.exe notation" {
2929 run machine env --shell cmd --no-proxy $NAME
30- [[ ${lines[0]} == " set DOCKER_TLS_VERIFY=1" ]]
31- [[ ${lines[1]} == " set DOCKER_HOST=$( machine url $NAME ) " ]]
32- [[ ${lines[2]} == " set DOCKER_CERT_PATH=$MACHINE_STORAGE_PATH /certs " ]]
33- [[ ${lines[3]} == " set DOCKER_MACHINE_NAME=$NAME " ]]
34- [[ ${lines[4]} == " set NO_PROXY=$( machine ip $NAME ) " ]]
30+ [[ ${lines[0]} == " SET DOCKER_TLS_VERIFY=1" ]]
31+ [[ ${lines[1]} == " SET DOCKER_HOST=$( machine url $NAME ) " ]]
32+ [[ ${lines[2]} == " SET DOCKER_CERT_PATH=$MACHINE_STORAGE_PATH /machines/ $NAME " ]]
33+ [[ ${lines[3]} == " SET DOCKER_MACHINE_NAME=$NAME " ]]
34+ [[ ${lines[4]} == " SET NO_PROXY=$( machine ip $NAME ) " ]]
3535}
3636
3737@test " $DRIVER : test fish notation" {
3838 run machine env --shell fish --no-proxy $NAME
3939 [[ ${lines[0]} == " set -x DOCKER_TLS_VERIFY \" 1\" ;" ]]
4040 [[ ${lines[1]} == " set -x DOCKER_HOST \" $( machine url $NAME ) \" ;" ]]
41- [[ ${lines[2]} == " set -x DOCKER_CERT_PATH \" $MACHINE_STORAGE_PATH /certs \" ;" ]]
41+ [[ ${lines[2]} == " set -x DOCKER_CERT_PATH \" $MACHINE_STORAGE_PATH /machines/ $NAME \" ;" ]]
4242 [[ ${lines[3]} == " set -x DOCKER_MACHINE_NAME \" $NAME \" ;" ]]
4343 [[ ${lines[4]} == " set -x NO_PROXY \" $( machine ip $NAME ) \" ;" ]]
4444}
0 commit comments