Skip to content

Commit

Permalink
feat(Engines): add Camunda 8.2 and 7.19 profile
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm committed Nov 9, 2022
1 parent 8b59aa8 commit e90a5f6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/src/app/TabsProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,11 +694,11 @@ function replaceVersions(contents) {

const latestPlatformVersion = ENGINE_PROFILES.find(
p => p.executionPlatform === ENGINES.PLATFORM
).executionPlatformVersions[0];
).latestStable;

const latestCloudVersion = ENGINE_PROFILES.find(
p => p.executionPlatform === ENGINES.CLOUD
).executionPlatformVersions[0];
).latestStable;

return (
contents
Expand Down
21 changes: 19 additions & 2 deletions client/src/app/__tests__/TabsProviderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,26 @@ describe('TabsProvider', function() {
// given
const tabsProvider = new TabsProvider();

const latestPlatformVersion = ENGINE_PROFILES.find(
p => p.executionPlatform === ENGINES.PLATFORM
).latestStable;

// when
const { file: { contents } } = tabsProvider.createTab('bpmn');

// then
expect(contents).to.include(`modeler:executionPlatformVersion="${ latestPlatformVersion }"`);
});


it('should replace version placeholder with actual latest version (Cloud BPMN)', function() {

// given
const tabsProvider = new TabsProvider();

const latestCloudVersion = ENGINE_PROFILES.find(
p => p.executionPlatform === ENGINES.CLOUD
).executionPlatformVersions[0];
).latestStable;

// when
const { file: { contents } } = tabsProvider.createTab('cloud-bpmn');
Expand Down Expand Up @@ -217,7 +234,7 @@ describe('TabsProvider', function() {

const latestCloudVersion = ENGINE_PROFILES.find(
p => p.executionPlatform === ENGINES.CLOUD
).executionPlatformVersions[0];
).latestStable;

// when
const { file: { contents } } = tabsProvider.createTab('cloud-dmn');
Expand Down
6 changes: 4 additions & 2 deletions client/src/util/Engines.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ export const ENGINES = {
export const ENGINE_PROFILES = [
{
executionPlatform: ENGINES.PLATFORM,
executionPlatformVersions: [ '7.18.0', '7.17.0', '7.16.0', '7.15.0' ]
executionPlatformVersions: [ '7.19.0', '7.18.0', '7.17.0', '7.16.0', '7.15.0' ],
latestStable: '7.18.0'
},
{
executionPlatform: ENGINES.CLOUD,
executionPlatformVersions: [ '8.1.0', '8.0.0', '1.3.0', '1.2.0', '1.1.0', '1.0.0' ]
executionPlatformVersions: [ '8.2.0', '8.1.0', '8.0.0', '1.3.0', '1.2.0', '1.1.0', '1.0.0' ],
latestStable: '8.1.0'
}
];

Expand Down

0 comments on commit e90a5f6

Please sign in to comment.