Project: springxd
Issue XD-743: Ensure that when batch jobs are created, they are created with the job bean definition id equal to the ‘stream name’
Unlike in spring-batch-admin, in SpringXD all the jobs the /modules/jobs directory is not ‘visible’ to query when the server starts. Jobs only become visible to XD’s ‘jobs list’ command once they have been ‘created’. Creating a Job in XD is an opportunity to specify additional values to any property placeholders in the job bean definition. This isn’t part of spring-batch-admin. We will not worry about the creation of job definition in this story. Assume that they have been created already and that the GET for /jobs works as it does now for Spring XD. We should however, make sure that there is always a replacement of the job name in the job bean definition to match the ‘--name’ specified in the command line. That is “job create --name myjob --description “thisfunkyjob�? will use ‘myjob to replace *How to verify it works* 1. Create a JUnit integration style test that has ‘job create --name myjob --defintion “testJob�?’ and then deploy the job. The name ‘myjob’ should appear in the job execution table
Story points: 1