From 46f8df7e408e6276ec55629f36c8feacba13d5b8 Mon Sep 17 00:00:00 2001 From: wang yan Date: Sat, 18 Jan 2020 21:51:07 -0800 Subject: [PATCH] Add expect file from linux OS Signed-off-by: wang yan --- .../Group0-Util/notary-remove-image-signature.expect | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/robot-cases/Group0-Util/notary-remove-image-signature.expect b/tests/robot-cases/Group0-Util/notary-remove-image-signature.expect index ff77b85adc9..68a3d5f8301 100755 --- a/tests/robot-cases/Group0-Util/notary-remove-image-signature.expect +++ b/tests/robot-cases/Group0-Util/notary-remove-image-signature.expect @@ -1,11 +1,13 @@ #!/usr/local/bin/expect + 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}