Skip to content

Commit

Permalink
Merge pull request #7269 from gurevichmark/apt_key_test
Browse files Browse the repository at this point in the history
Use apt-key on Ubunty system to verify signature key during regression test
  • Loading branch information
besawn committed Oct 25, 2022
2 parents 96a0a51 + de70f3b commit f27fba5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xCAT-test/autotest/testcase/go_xcat/case3
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f27fba5

Please sign in to comment.