Project: springxd
Issue XD-1876: Create test that uses #jsonPath with the filter module
The script tests does the following. {code} # Filter for good and bad create_stream 'httpfilter' "http | good: filter --expression=#jsonPath(payload,'\$.entities.hashtags[*].text').contains('good') \ | aftergood: filter --expression=true \ | bad: filter --expression=#jsonPath(payload,'\$.entities.hashtags[*].text').contains('bad') \ | goodandbad: splitter --expression=#jsonPath(payload,'$.id') \ | file --dir=$TEST_DIR" 'true' {code}
Story points: 2