Add expect file from linux OS

Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
wang yan 2020-01-18 21:56:58 -08:00
parent 012aa570c8
commit 2d41498f6a

View File

@ -3,9 +3,10 @@
set HOST [lindex $argv 0]
set PROJECT [lindex $argv 1]
set IMAGE [lindex $argv 2]
set notaryServerEndpoint [lindex $argv 3]
set timeout 30
spawn notary -s https://$HOST:4443 --tlscacert /notary_ca/ca.crt -d /root/.docker/trust remove -p $HOST/$PROJECT/$IMAGE latest
spawn notary -s https://$notaryServerEndpoint --tlscacert /notary_ca.crt -d /root/.docker/trust remove -p $HOST/$PROJECT/$IMAGE latest
expect {
"Enter username:" {send "admin\r";exp_continue}