@@ -46,6 +46,7 @@ import {
4646 TabularDataByFilterResponse ,
4747 TabularDataByMQLResponse ,
4848 TabularDataBySQLResponse ,
49+ TabularDataSourceType ,
4950 TagsByFilterRequest ,
5051 TagsByFilterResponse ,
5152 TagsFilter ,
@@ -1427,17 +1428,21 @@ describe('DataPipelineClient tests', () => {
14271428 const pipelineName = 'testPipeline' ;
14281429 const mqlQuery = [ { $match : { component_name : 'sensor-1' } } ] ;
14291430 const schedule = '0 0 * * *' ;
1431+ const dataSourceTypeStandard = TabularDataSourceType . STANDARD ;
1432+ const dataSourceTypeHotStorage = TabularDataSourceType . HOT_STORAGE ;
14301433
14311434 describe ( 'listDataPipelines tests' , ( ) => {
14321435 const pipeline1 = new DataPipeline ( {
14331436 id : 'pipeline1' ,
14341437 name : 'pipeline1' ,
14351438 organizationId : 'org1' ,
1439+ dataSourceType : dataSourceTypeStandard ,
14361440 } ) ;
14371441 const pipeline2 = new DataPipeline ( {
14381442 id : 'pipeline2' ,
14391443 name : 'pipeline2' ,
14401444 organizationId : 'org2' ,
1445+ dataSourceType : dataSourceTypeHotStorage ,
14411446 } ) ;
14421447 const pipelines = [ pipeline1 , pipeline2 ] ;
14431448
@@ -1471,6 +1476,7 @@ describe('DataPipelineClient tests', () => {
14711476 id : pipelineId ,
14721477 name : pipelineName ,
14731478 organizationId,
1479+ dataSourceType : dataSourceTypeStandard ,
14741480 } ) ;
14751481
14761482 let capReq : GetDataPipelineRequest ;
@@ -1532,6 +1538,27 @@ describe('DataPipelineClient tests', () => {
15321538 name : pipelineName ,
15331539 mqlBinary : mqlQuery . map ( ( value ) => BSON . serialize ( value ) ) ,
15341540 schedule,
1541+ dataSourceType : dataSourceTypeStandard ,
1542+ } ) ;
1543+
1544+ const response = await subject ( ) . createDataPipeline (
1545+ organizationId ,
1546+ pipelineName ,
1547+ mqlQuery ,
1548+ schedule ,
1549+ dataSourceTypeStandard
1550+ ) ;
1551+ expect ( capReq ) . toStrictEqual ( expectedRequest ) ;
1552+ expect ( response ) . toEqual ( pipelineId ) ;
1553+ } ) ;
1554+
1555+ it ( 'create data pipeline with optional dataSourceType' , async ( ) => {
1556+ const expectedRequest = new CreateDataPipelineRequest ( {
1557+ organizationId,
1558+ name : pipelineName ,
1559+ mqlBinary : mqlQuery . map ( ( value ) => BSON . serialize ( value ) ) ,
1560+ schedule,
1561+ dataSourceType : dataSourceTypeStandard ,
15351562 } ) ;
15361563
15371564 const response = await subject ( ) . createDataPipeline (
0 commit comments