7492: update keep-rsync test with bad blob signing key to expect Forbidden error...
authorradhika <radhika@curoverse.com>
Tue, 20 Oct 2015 15:40:05 +0000 (11:40 -0400)
committerradhika <radhika@curoverse.com>
Tue, 20 Oct 2015 15:40:05 +0000 (11:40 -0400)
tools/keep-rsync/keep-rsync_test.go

index 6fbb535a03a3069249b1ab22fa6aaae85740998f..60bc90acff68f56f9015a611f6e83639d7676569 100644 (file)
@@ -352,7 +352,7 @@ func (s *ServerRequiredSuite) TestErrorDuringRsync_ErrorGettingBlockFromSrc(c *C
        blobSigningKey = "thisisfakeblobsigningkey"
 
        err := performKeepRsync(kcSrc, kcDst, blobSigningKey, "")
-       c.Check(strings.HasSuffix(err.Error(), "Block not found"), Equals, true)
+       c.Check(strings.Contains(err.Error(), "HTTP 403 \"Forbidden\""), Equals, true)
 }
 
 // Test rsync with error during Put to src.