Skip to content

Commit

Permalink
[FEATURE] Déployer l’application pix-api-maddo-{environment} (PIX-16552)
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Feb 17, 2025
2 parents 8dedd25 + 91e8c3e commit 41f3b5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const configuration = (function () {
PIX_DATAWAREHOUSE_REPO_NAME: 'pix-db-replication',
PIX_DATAWAREHOUSE_APPS_NAME: ['pix-datawarehouse', 'pix-datawarehouse-ex', 'pix-datawarehouse-data'],

PIX_APPS: ['app', 'certif', 'admin', 'orga', 'api', 'junior', 'audit-logger'],
PIX_APPS: ['app', 'certif', 'admin', 'orga', 'api', 'api-maddo', 'junior', 'audit-logger'],
PIX_APPS_ENVIRONMENTS: ['integration', 'recette', 'production'],
PIX_TUTOS_REPO_NAME: 'pix-tutos',
PIX_TUTOS_APP_NAME: 'pix-tutos',
Expand Down
7 changes: 4 additions & 3 deletions test/unit/common/services/releases_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Unit | release', function () {
// when
const response = await releasesService.deploy('production', 'v1.0');
// then
expect(response).to.deep.equal(['OK', 'OK', 'OK', 'OK', 'OK', 'OK', 'OK']);
expect(response).to.deep.equal(['OK', 'OK', 'OK', 'OK', 'OK', 'OK', 'OK', 'OK']);
});

it('should ask scalingo to deploy applications', async function () {
Expand All @@ -51,13 +51,14 @@ describe('Unit | release', function () {
// when
await releasesService.deploy('production', 'v1.0 ');
// then
expect(scalingoClient.deployFromArchive.callCount).to.equal(7);
expect(scalingoClient.deployFromArchive.callCount).to.equal(8);
expect(scalingoClient.deployFromArchive.args).to.deep.equal([
['pix-app', 'v1.0'],
['pix-certif', 'v1.0'],
['pix-admin', 'v1.0'],
['pix-orga', 'v1.0'],
['pix-api', 'v1.0'],
['pix-api-maddo', 'v1.0'],
['pix-junior', 'v1.0'],
['pix-audit-logger', 'v1.0'],
]);
Expand All @@ -73,7 +74,7 @@ describe('Unit | release', function () {
// when
await releasesService.deploy('production', tag);
// then
expect(scalingoClient.deployFromArchive.callCount).to.equal(7);
expect(scalingoClient.deployFromArchive.callCount).to.equal(8);
expect(scalingoClient.deployFromArchive.firstCall.args[1]).to.equal('v1.0.0');
});

Expand Down

0 comments on commit 41f3b5c

Please sign in to comment.