- keepServicesJSON = testKeepServicesJSON
- setupKeepBlockCheck(c, false)
- err := performKeepBlockCheck(kc, blobSigningKey, "", []string{TestHash, TestHash2})
- c.Assert(err.Error(), Equals, "Head information not found for 2 out of 2 blocks with matching prefix.")
- checkErrorLog(c, []string{TestHash, TestHash2}, "head", "no such host")
-}
-
-func (s *ServerRequiredSuite) TestBlockCheck_BadSignature(c *C) {
- setupKeepBlockCheck(c, true)
- setupTestData(c)
- err := performKeepBlockCheck(kc, "badblobsigningkey", "", []string{TestHash, TestHash2})
- c.Assert(err.Error(), Equals, "Head information not found for 2 out of 2 blocks with matching prefix.")
- checkErrorLog(c, []string{TestHash, TestHash2}, "head", "HTTP 403")
+ setupKeepBlockCheck(c, false, testKeepServicesJSON)
+ err := performKeepBlockCheck(kc, blobSignatureTTL, "", []string{TestHash, TestHash2}, true)
+ c.Assert(err.Error(), Equals, "Block verification failed for 2 out of 2 blocks with matching prefix")
+ checkErrorLog(c, []string{TestHash, TestHash2}, "Error verifying block", "")