add failing git multisig test

This commit is contained in:
Lance Vick 2020-11-20 02:46:33 -08:00
parent 9b195eb791
commit fe96172114
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
3 changed files with 26 additions and 15 deletions

View File

@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEZ1U/vaRrtxq9LgsLjkeh7DWhVR0FAl+3mzsACgkQjkeh7DWh iQIzBAABCgAdFiEEZ1U/vaRrtxq9LgsLjkeh7DWhVR0FAl+3nnQACgkQjkeh7DWh
VR3wDhAAoCUwef/hA9HkLLUmEhft6UzbGfDU8PlTPc+CI17WeDQnytDMrAy2jMgf VR25iRAAkbnxfyyuYIc6o5G2OlzigkFon6bhpQkxczkF/O2utTL/reMVk9Gi2JLj
O53c51qVeFNs+17eoEGaTW4cCinzjR21+cXQArfoBPCE4PQLmU0RA5BMOYgNslvZ FupgAs5pdybiFJZo1ugAaaFL7eSoxopIOImdGIIK0AiQsbDDU5739WyAAbgqDruC
XcQlR2BB3fVt1CInfDNAjSuGXOFXrqPdRitpZcZGpMsAgpUBl7jTHWb0OnVgg4fP EuwekUfXv7oTyRI3m4o4LIDEhQ5YDrY+kvRCl93/PZt0xy0FinQAfi/QR06sEj4q
KjtmxQV0P2irNNS8tTVrRHsSDEX+JzhVCRtY5gnKLllRAhQCLx5pgBq+Ll9vCWHE JjA++k8wfTr6QwjwbM+VNfKfI+sdFvynL1cchKXx9ybsOZRGLFGaih1FqcHmJCEM
Ddbt0U9HR/HjQBjLYrJTiO41e34bTB2KIy6gnK+buKJxeICed3+/w1o2x2pNCXye XZ+Zun5zP/XUKdAHRB7GMxff7srmOyx93NQstv5/oqss/QO0kbZLpD82mGCcUWCd
kq/rvEPBAbUOCBIn8uP9CA0MNzqssz498/I36NF8d2k6qnHWGSi7+MBMEbHYN2WR Lx0c1rwVjIB74C/S9NY12KY5sIfE8ROpCEgsbqgvetgo6I734eAWRJMkZuasSYSF
CQgANhmEmEXGuABEdeHoA6fyoB3bILNk6MuKnv1sOxtnzfbl8VUtMjnZBey1JdR4 7OSRwzeNuS1eLWsL9/EJy6n0UDNGwIDCFzSP6a19iNwWuftV15nC2sOhKQN5eLAa
kkWZCmMeUql513odcYsrv7kX2kdf4RTWzlbpdc6W1E3scNs2OFPbPItHE9tLZRXH bv6uvBVeGQpjah5treE/PcbuhtytbrVX4kmbUnIk0opBmLzYBIHHLd6gPmoOP8Ig
At+t5MUYtyyX38BuSYSBpPlBfH6f5gEk//o6dDh7xz0ytJ3x0hOE/nlBAehl0hDS erua+9WK+LZunr7DonSsIvVyWJBS/Qz5HFXTAs0ZfblZ5GwFwrsAuVim3pV5lwUd
onxRtnKtgImBBCGe2R536trccl8/lc7v6ih7LCikkfT9eX+fy2IrIzaSnRT/H5O6 yFQHeqWHU/IhbZKs2Ch42oztOd0oIStH9G2Y8vqXRGSlFLqArhMdSYvlJCWn5KBa
PrFuXeRXZyhwfG9+K8BGfpYrH1e4Oqq23wL4rUyXIGlSkIuE04A= 2oAnn0s3ntLKD0YoPB27ks9WXa34Z+Kr3vRtRW/EdnMt5fYdBew=
=I3xZ =i0LH
-----END PGP SIGNATURE----- -----END PGP SIGNATURE-----

View File

@ -14,5 +14,5 @@ c0e3df63b1f01a83e17c463af9e37365a5e38ee0289d59cdfee725df202a311b test/keys/user3
d4cbeffdbf7064aaffe94556b5879c88cddf479e3e76518f25c3491482abd789 test/keys/user4.sec.asc d4cbeffdbf7064aaffe94556b5879c88cddf479e3e76518f25c3491482abd789 test/keys/user4.sec.asc
c608e63175a1e9cc3fe2500372769a9e30b808d2e4d4a950796d98dac14775ea test/keys/user5.pub.asc c608e63175a1e9cc3fe2500372769a9e30b808d2e4d4a950796d98dac14775ea test/keys/user5.pub.asc
873f3a1e2da41587f4b5a0dad5d8b704a37144e54931fe3a167ea9648772a5dc test/keys/user5.sec.asc 873f3a1e2da41587f4b5a0dad5d8b704a37144e54931fe3a167ea9648772a5dc test/keys/user5.sec.asc
0e3bc44d39fb4b8eb0947e802b5a3a4db14ae228c116eb6b33b32c4cd6816c6f test/test.bats 9ebc08efa02b1e11cfd8a2544dbcf5bb8a798b0f485e317bdf0f96b89384c8de test/test.bats
418903b58dad935ee3aa1dfcc4c4ac22fd77a838b87a5c2c3fe4e510a164f0a0 test/test_helper.bash 418903b58dad935ee3aa1dfcc4c4ac22fd77a838b87a5c2c3fe4e510a164f0a0 test/test_helper.bash

View File

@ -74,7 +74,7 @@ load test_helper
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
} }
@test "Can verify git repo has signed commits by three different identities" { @test "Verify succeeds when 3/3 unique git sig requirement is satisfied" {
git init git init
@ -97,4 +97,15 @@ load test_helper
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
} }
@test "Verify fails when 2/2 unique git sig requirement is not satisfied" {
git init
set_identity "user1"
echo "test string 1" > somefile1
git add .
git commit -m "user1 commit"
run sig verify --method git --threshold 2
[ "$status" -eq 1 ]
}