Skip to content

Commit

Permalink
feat(deploy): set deployment-source to Camunda Modeler
Browse files Browse the repository at this point in the history
Closes #1153
  • Loading branch information
nikku committed Jan 31, 2019
1 parent 2b46308 commit 701fc5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/lib/deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class Deployer {
form.append('tenant-id', tenantId);
}

form.append('deployment-source', 'Camunda Modeler');

form.append('deploy-changed-only', 'true');

form.append(file.name, this.fs.createReadStream(file.path));
Expand Down
8 changes: 6 additions & 2 deletions app/test/spec/deployer-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ describe('Deployer', function() {

const expectedForm = new FormData();

expectedForm.append('deployment-name', data.deploymentName);
expectedForm.append(data.file.name, fs.createReadStream(data.file.path));

expectedForm.append('deployment-name', data.deploymentName);
expectedForm.append('deploy-changed-only', 'true');
expectedForm.append('deployment-source', 'Camunda Modeler');
expectedForm.append('tenant-id', data.tenantId);

// when
Expand Down Expand Up @@ -68,9 +70,11 @@ describe('Deployer', function() {

const expectedForm = new FormData();

expectedForm.append(data.file.name, fs.createReadStream(data.file.path));

expectedForm.append('deployment-name', data.deploymentName);
expectedForm.append('deploy-changed-only', 'true');
expectedForm.append(data.file.name, fs.createReadStream(data.file.path));
expectedForm.append('deployment-source', 'Camunda Modeler');

// when
await deployer.deploy(url, data, (err, data) => {
Expand Down

0 comments on commit 701fc5c

Please sign in to comment.