mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 16:19:37 +01:00
e0db766f97
Add notary remove signature test case in nightly 1. Update E2E image Dockerfile for adding notary CLI; 2. Add test case of remove notary signature. Signed-off-by: Danfeng Liu (c) <danfengl@vmware.com>
19 lines
499 B
Plaintext
Executable File
19 lines
499 B
Plaintext
Executable File
#!/usr/local/bin/expect
|
|
|
|
set HOST [lindex $argv 0]
|
|
set PROJECT [lindex $argv 1]
|
|
set IMAGE [lindex $argv 2]
|
|
set timeout 30
|
|
|
|
spawn notary -s https://$HOST:4443 --tlscacert /notary_ca/ca.crt -d /root/.docker/trust remove -p $HOST/$PROJECT/$IMAGE latest
|
|
|
|
expect {
|
|
"Enter username:" {send "admin\r";exp_continue}
|
|
"Enter password:" {send "Harbor12345\r";exp_continue}
|
|
"Enter passphrase for targets key with ID*" {send "Harbor12345\r"}
|
|
timeout {exit 1}
|
|
}
|
|
expect eof
|
|
exit 0
|
|
|