MCPcopy Create free account
hub / github.com/aptly-dev/aptly / TestObjectHandleWithEncryptionKey

Method TestObjectHandleWithEncryptionKey

gcs/public_test.go:484–491  ·  view source on GitHub ↗

TestObjectHandleWithEncryptionKey covers the encryptionKey branch in objectHandle. fsouza doesn't enforce CSEK headers but we just need to walk the code path.

(c *C)

Source from the content-addressed store, hash-verified

482// objectHandle. fsouza doesn't enforce CSEK headers but we just need to walk
483// the code path.
484func (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.
494func (s *PublishedStorageSuite) TestReadLinkMissing(c *C) {

Callers

nothing calls this directly

Calls 2

objectHandleMethod · 0.95
CheckMethod · 0.45

Tested by

no test coverage detected