@@ -125,16 +125,16 @@ describe('Merge custom properties tests', () => {
125125 customProperties : JSON . parse ( fs . readFileSync ( './test/testInput/customPropertiesConfig.json' ) , null ) ,
126126 desiredIndexTemplate : JSON . parse ( fs . readFileSync ( './test/testInput/desiredIndexTemplate.json' ) , null ) ,
127127 actualIndexTemplate : JSON . parse ( fs . readFileSync ( './test/testInput/actualIndexTemplate.json' ) , null ) ,
128- customPropertiesSettings : { merge : true , parent : "transactionSummary" }
128+ customPropertiesSettings : { merge : true , parent : "transactionSummary. " }
129129 } ) ;
130130
131131 expect ( output ) . to . equal ( 'next' ) ;
132- expect ( value . mappings . properties . transactionSummary [ ' customProperties.customProperty1'] ) . to . be . an ( 'Object' ) ;
133- expect ( value . mappings . properties . transactionSummary [ ' customProperties.customProperty1'] ) . to . deep . equal ( { type : "text" , norms : false , fields : { keyword : { type : "keyword" } } } ) ;
134- expect ( value . mappings . properties . transactionSummary [ ' customProperties.customProperty2'] ) . to . be . an ( 'Object' ) ;
135- expect ( value . mappings . properties . transactionSummary [ ' customProperties.customProperty2'] . type ) . to . equal ( 'keyword' ) ;
136- expect ( value . mappings . properties . transactionSummary [ ' customProperties.customProperty3'] ) . to . be . an ( 'Object' ) ;
137- expect ( value . mappings . properties . transactionSummary [ ' customProperties.customProperty3'] . type ) . to . equal ( 'keyword' ) ;
132+ expect ( value . mappings . properties [ 'transactionSummary. customProperties.customProperty1'] ) . to . be . an ( 'Object' ) ;
133+ expect ( value . mappings . properties [ 'transactionSummary. customProperties.customProperty1'] ) . to . deep . equal ( { type : "text" , norms : false , fields : { keyword : { type : "keyword" } } } ) ;
134+ expect ( value . mappings . properties [ 'transactionSummary. customProperties.customProperty2'] ) . to . be . an ( 'Object' ) ;
135+ expect ( value . mappings . properties [ 'transactionSummary. customProperties.customProperty2'] . type ) . to . equal ( 'keyword' ) ;
136+ expect ( value . mappings . properties [ 'transactionSummary. customProperties.customProperty3'] ) . to . be . an ( 'Object' ) ;
137+ expect ( value . mappings . properties [ 'transactionSummary. customProperties.customProperty3'] . type ) . to . equal ( 'keyword' ) ;
138138 } ) ;
139139 } ) ;
140140} ) ;
0 commit comments