2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-07 05:50:09 +00:00

Merge pull request from gurevichmark/apt_key_test

Use apt-key on Ubunty system to verify signature key during regression test
This commit is contained in:
besawn 2022-10-25 13:09:05 -04:00 committed by GitHub
commit f27fba5c56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,10 +62,12 @@ check:rc==0
check:output=~running
#Verify xCAT public key was installed
cmd:xdsh $$CN "rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'"
cmd:if xdsh $$CN "grep \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "apt-key list"; else xdsh $$CN "rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'"; fi
check:output=~xCAT Automatic Signing Key
cmd:xdsh $$CN "rpm -e gpg-pubkey-ca548a47-5b2c830b"
#Remove public key on non-Ubuntu system. It was installed during go-xcat RPM installs
cmd:if xdsh $$CN "grep -v \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "rpm -e gpg-pubkey-ca548a47-5b2c830b"; fi
cmd:xdsh $$CN "service xcatd stop"
end