1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
- exports [` Input origin as an S3 bucket url creates distribution configured to serve private S3 content 1` ] = `
3
+ exports [` S3 origins When origin is an S3 URL only accessible via CloudFront creates distribution 1` ] = `
4
4
Object {
5
5
" DistributionConfig" : Object {
6
6
" Aliases" : Object {
@@ -80,7 +80,7 @@ Object {
80
80
}
81
81
` ;
82
82
83
- exports [` Input origin as an S3 bucket url creates distribution with S3 origin 1` ] = `
83
+ exports [` S3 origins When origin is an S3 URL only accessible via CloudFront updates distribution 1` ] = `
84
84
Object {
85
85
" DistributionConfig" : Object {
86
86
" Aliases" : Object {
@@ -149,7 +149,7 @@ Object {
149
149
" Id" : " mybucket" ,
150
150
" OriginPath" : " " ,
151
151
" S3OriginConfig" : Object {
152
- " OriginAccessIdentity" : " " ,
152
+ " OriginAccessIdentity" : " origin-access-identity/cloudfront/access-identity-xyz " ,
153
153
},
154
154
},
155
155
],
@@ -160,9 +160,15 @@ Object {
160
160
}
161
161
` ;
162
162
163
- exports [` Input origin as an S3 bucket url updates distribution 1` ] = `
163
+ exports [` S3 origins When origin is an S3 bucket URL creates distribution 1` ] = `
164
164
Object {
165
165
" DistributionConfig" : Object {
166
+ " Aliases" : Object {
167
+ " Items" : Array [],
168
+ " Quantity" : 0 ,
169
+ },
170
+ " CallerReference" : " 1566599541192" ,
171
+ " Comment" : " " ,
166
172
" DefaultCacheBehavior" : Object {
167
173
" AllowedMethods" : Object {
168
174
" CachedMethods" : Object {
@@ -202,7 +208,7 @@ Object {
202
208
" MaxTTL" : 31536000 ,
203
209
" MinTTL" : 0 ,
204
210
" SmoothStreaming" : false ,
205
- " TargetOriginId" : " anotherbucket " ,
211
+ " TargetOriginId" : " mybucket " ,
206
212
" TrustedSigners" : Object {
207
213
" Enabled" : false ,
208
214
" Items" : Array [],
@@ -211,15 +217,16 @@ Object {
211
217
" ViewerProtocolPolicy" : " redirect-to-https" ,
212
218
},
213
219
" Enabled" : true ,
220
+ " HttpVersion" : " http2" ,
214
221
" Origins" : Object {
215
222
" Items" : Array [
216
223
Object {
217
224
" CustomHeaders" : Object {
218
225
" Items" : Array [],
219
226
" Quantity" : 0 ,
220
227
},
221
- " DomainName" : " anotherbucket .s3.amazonaws.com" ,
222
- " Id" : " anotherbucket " ,
228
+ " DomainName" : " mybucket .s3.amazonaws.com" ,
229
+ " Id" : " mybucket " ,
223
230
" OriginPath" : " " ,
224
231
" S3OriginConfig" : Object {
225
232
" OriginAccessIdentity" : " " ,
@@ -228,21 +235,14 @@ Object {
228
235
],
229
236
" Quantity" : 1 ,
230
237
},
238
+ " PriceClass" : " PriceClass_All" ,
231
239
},
232
- " Id" : " distributionwithS3origin" ,
233
- " IfMatch" : " etag" ,
234
240
}
235
241
` ;
236
242
237
- exports [` Input origin as an S3 bucket url updates distribution configured to serve private S3 content 1` ] = `
243
+ exports [` S3 origins When origin is an S3 bucket URL updates distribution 1` ] = `
238
244
Object {
239
245
" DistributionConfig" : Object {
240
- " Aliases" : Object {
241
- " Items" : Array [],
242
- " Quantity" : 0 ,
243
- },
244
- " CallerReference" : " 1566599541192" ,
245
- " Comment" : " " ,
246
246
" DefaultCacheBehavior" : Object {
247
247
" AllowedMethods" : Object {
248
248
" CachedMethods" : Object {
@@ -282,7 +282,7 @@ Object {
282
282
" MaxTTL" : 31536000 ,
283
283
" MinTTL" : 0 ,
284
284
" SmoothStreaming" : false ,
285
- " TargetOriginId" : " mybucket " ,
285
+ " TargetOriginId" : " anotherbucket " ,
286
286
" TrustedSigners" : Object {
287
287
" Enabled" : false ,
288
288
" Items" : Array [],
@@ -291,25 +291,25 @@ Object {
291
291
" ViewerProtocolPolicy" : " redirect-to-https" ,
292
292
},
293
293
" Enabled" : true ,
294
- " HttpVersion" : " http2" ,
295
294
" Origins" : Object {
296
295
" Items" : Array [
297
296
Object {
298
297
" CustomHeaders" : Object {
299
298
" Items" : Array [],
300
299
" Quantity" : 0 ,
301
300
},
302
- " DomainName" : " mybucket .s3.amazonaws.com" ,
303
- " Id" : " mybucket " ,
301
+ " DomainName" : " anotherbucket .s3.amazonaws.com" ,
302
+ " Id" : " anotherbucket " ,
304
303
" OriginPath" : " " ,
305
304
" S3OriginConfig" : Object {
306
- " OriginAccessIdentity" : " origin-access-identity/cloudfront/access-identity-xyz " ,
305
+ " OriginAccessIdentity" : " " ,
307
306
},
308
307
},
309
308
],
310
309
" Quantity" : 1 ,
311
310
},
312
- " PriceClass" : " PriceClass_All" ,
313
311
},
312
+ " Id" : " distributionwithS3origin" ,
313
+ " IfMatch" : " etag" ,
314
314
}
315
315
` ;
0 commit comments