MCPcopy Create free account
hub / github.com/bep/s3deploy / TestPathsToInvalidationBatch

Function TestPathsToInvalidationBatch

lib/cloudfront_test.go:88–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestPathsToInvalidationBatch(t *testing.T) {
89 c := qt.New(t)
90
91 var client *cloudFrontClient
92
93 batch := client.pathsToInvalidationBatch("myref", "/path1/", "/path2/")
94
95 c.Assert(batch, qt.IsNotNil)
96 c.Assert(*batch.CallerReference, qt.Equals, "myref")
97 c.Assert(int(*batch.Paths.Quantity), qt.Equals, 2)
98}
99
100func TestNewCloudFrontClient(t *testing.T) {
101 c := qt.New(t)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected