Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud - Fix the context name #4711

Merged
merged 1 commit into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class AppsProcessCloudService {
}

private getApplicationUrl(): string {
return `${this.appConfigService.get('bpmHost')}/alfresco-deployment-service/v1/applications`;
return `${this.appConfigService.get('bpmHost')}/deployment-service/v1/applications`;
}

private handleError(error?: any) {
Expand Down
20 changes: 10 additions & 10 deletions scripts/check-activiti-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ async function checkIfAppIsReleased(apiService, absentApps) {
}

async function deployApp(apiService, app, name) {
const url = `${config.hostBpm}/alfresco-deployment-service/v1/applications`;
const url = `${config.hostBpm}/deployment-service/v1/applications`;

const pathParams = {};
const bodyParam = {
Expand Down Expand Up @@ -240,7 +240,7 @@ async function importProjectApp(apiService, app) {
const pathFile = path.join('./e2e/' + app.file_location);
const file = fs.createReadStream(pathFile);

const url = `${config.hostBpm}/alfresco-modeling-service/v1/projects/import`;
const url = `${config.hostBpm}/modeling-service/v1/projects/import`;

const pathParams = {}, queryParams = {},
headerParams = {}, formParams = {'file': file}, bodyParam = {},
Expand All @@ -263,7 +263,7 @@ async function importProjectApp(apiService, app) {
}

async function getReleaseAppProjectId(apiService, projectId) {
const url = `${config.hostBpm}/alfresco-modeling-service/v1/projects/${projectId}/releases`;
const url = `${config.hostBpm}/modeling-service/v1/projects/${projectId}/releases`;

const pathParams = {}, queryParams = {},
headerParams = {}, formParams = {}, bodyParam = {},
Expand All @@ -280,7 +280,7 @@ async function getReleaseAppProjectId(apiService, projectId) {
}

async function releaseApp(apiService, app) {
const url = `${config.hostBpm}/alfresco-modeling-service/v1/projects/${app.entry.id}/releases`;
const url = `${config.hostBpm}/modeling-service/v1/projects/${app.entry.id}/releases`;

console.log('Release ID ' + app.entry.id);
const pathParams = {}, queryParams = {},
Expand All @@ -298,7 +298,7 @@ async function releaseApp(apiService, app) {
}

async function getDeployedApplicationsByStatus(apiService, status) {
const url = `${config.hostBpm}/alfresco-deployment-service/v1/applications`;
const url = `${config.hostBpm}/deployment-service/v1/applications`;

const pathParams = {}, queryParams = {status: status},
headerParams = {}, formParams = {}, bodyParam = {},
Expand All @@ -311,14 +311,14 @@ async function getDeployedApplicationsByStatus(apiService, status) {

return data.list.entries;
} catch (error) {
console.log(`Not possible get the applications from alfresco-deployment-service ${JSON.stringify(error)} `);
console.log(`Not possible get the applications from deployment-service ${JSON.stringify(error)} `);
process.exit(1);
}

}

async function getAppProjects(apiService, status) {
const url = `${config.hostBpm}/alfresco-modeling-service/v1/projects`;
const url = `${config.hostBpm}/modeling-service/v1/projects`;

const pathParams = {}, queryParams = {status: status},
headerParams = {}, formParams = {}, bodyParam = {},
Expand All @@ -330,15 +330,15 @@ async function getAppProjects(apiService, status) {
contentTypes, accepts);
return data.list.entries;
} catch (error) {
console.log(`Not possible get the application from alfresco-modeling-service ` + error);
console.log(`Not possible get the application from modeling-service ` + error);
process.exit(1);
}
}

async function deleteApp(apiService, appName) {
console.log(`Delete the app ${appName}`);

const url = `${config.hostBpm}/alfresco-deployment-service/v1/applications/${appName}`;
const url = `${config.hostBpm}/deployment-service/v1/applications/${appName}`;

const pathParams = {}, queryParams = {},
headerParams = {}, formParams = {}, bodyParam = {},
Expand All @@ -353,7 +353,7 @@ async function deleteApp(apiService, appName) {
sleep(180000);
console.log(`App deleted`);
} catch (error) {
console.log(`Not possible to delete the application from alfresco-modeling-service` + error);
console.log(`Not possible to delete the application from modeling-service` + error);
process.exit(1);
}
}
Expand Down