TestObjectHandleWithEncryptionKey covers the encryptionKey branch in objectHandle. fsouza doesn't enforce CSEK headers but we just need to walk the code path.
(c *C)
| 482 | // objectHandle. fsouza doesn't enforce CSEK headers but we just need to walk |
| 483 | // the code path. |
| 484 | func (s *PublishedStorageSuite) TestObjectHandleWithEncryptionKey(c *C) { |
| 485 | st := &PublishedStorage{ |
| 486 | bucket: s.storage.bucket, |
| 487 | bucketName: "test", |
| 488 | encryptionKey: "0123456789abcdef0123456789abcdef", |
| 489 | } |
| 490 | c.Check(st.objectHandle("a/b"), NotNil) |
| 491 | } |
| 492 | |
| 493 | // TestReadLinkMissing covers the Attrs-error return in ReadLink. |
| 494 | func (s *PublishedStorageSuite) TestReadLinkMissing(c *C) { |
nothing calls this directly
no test coverage detected