Project: springxd
Issue XD-512: Create XD shell integration test parser
Since most of the xd.shell.itests will do more then one thing (deploy a stream, start it, add a tap, add a job, stop, etc) we decided to decouple writing testcases with running it. Test cases will be written in spring-shell scriptlets. Scriptlets are json files with command and expectedResult as tokens. Here's an example: {code} { "testscript": [ {"command" : "stream create --definition "http | file" --name http2file", "result" : "Created new stream 'http2file'"}, {"command" : "stream list", "result" : "..."} ] } {code} A parser will parse scriptlets, executes it and asserts on expected results.
Story points: 3