@@ -16,24 +16,29 @@ describe("pipelines", () => {
1616 runInTempDir ( ) ;
1717
1818 const samplePipeline = {
19- currentVersion : 1 ,
2019 id : "0001" ,
20+ version : 1 ,
2121 name : "my-pipeline" ,
2222 metadata : { } ,
2323 source : [
2424 {
2525 type : "binding" ,
2626 format : "json" ,
2727 } ,
28+ {
29+ type : "http" ,
30+ format : "json" ,
31+ authentication : false ,
32+ } ,
2833 ] ,
2934 transforms : [ ] ,
3035 destination : {
31- type : "json" ,
36+ type : "r2" ,
37+ format : "json" ,
3238 batch : { } ,
3339 compression : {
3440 type : "none" ,
3541 } ,
36- format : "json" ,
3742 path : {
3843 bucket : "bucket" ,
3944 } ,
@@ -365,10 +370,12 @@ describe("pipelines", () => {
365370 Default: No transformation worker [string]
366371 --compression Sets the compression format of output files
367372 Default: gzip [string] [choices: \\"none\\", \\"gzip\\", \\"deflate\\"]
368- --filepath The path to store files in the destination bucket
373+ --prefix Optional base path to store files in the destination bucket
374+ Default: (none) [string]
375+ --filepath The path to store partitioned files in the destination bucket
369376 Default: event_date=\${date}/hr=\${hr} [string]
370- --filename The name of the file in the bucket. Must contain \\"\${slug}\\". File extension is optional
371- Default: \${slug}- \${hr}.json [string]
377+ --filename The name of each unique file in the bucket. Must contain \\"\${slug}\\". File extension is optional
378+ Default: \${slug}\${extension} [string]
372379 --binding Enable Worker binding to this pipeline [boolean] [default: true]
373380 --http Enable HTTPS endpoint to send data to this pipeline [boolean] [default: true]
374381 --authentication Require authentication (Cloudflare API Token) to send data to the HTTPS endpoint [boolean] [default: false]
@@ -465,24 +472,29 @@ describe("pipelines", () => {
465472 expect ( std . out ) . toMatchInlineSnapshot ( `
466473 "Retrieving config for pipeline \\"foo\\".
467474 {
468- \\"currentVersion\\": 1,
469475 \\"id\\": \\"0001\\",
476+ \\"version\\": 1,
470477 \\"name\\": \\"my-pipeline\\",
471478 \\"metadata\\": {},
472479 \\"source\\": [
473480 {
474481 \\"type\\": \\"binding\\",
475482 \\"format\\": \\"json\\"
483+ },
484+ {
485+ \\"type\\": \\"http\\",
486+ \\"format\\": \\"json\\",
487+ \\"authentication\\": false
476488 }
477489 ],
478490 \\"transforms\\": [],
479491 \\"destination\\": {
480- \\"type\\": \\"json\\",
492+ \\"type\\": \\"r2\\",
493+ \\"format\\": \\"json\\",
481494 \\"batch\\": {},
482495 \\"compression\\": {
483496 \\"type\\": \\"none\\"
484497 },
485- \\"format\\": \\"json\\",
486498 \\"path\\": {
487499 \\"bucket\\": \\"bucket\\"
488500 }
0 commit comments