From 91e8c3e95abed0924403b60ccb1473c08b28f9bc Mon Sep 17 00:00:00 2001 From: Nicolas Lepage <19571875+nlepage@users.noreply.github.com> Date: Wed, 12 Feb 2025 16:32:43 +0100 Subject: [PATCH] feat: adds api-maddo to deployed apps for monorepo Co-authored-by: Vincent Hardouin --- config.js | 2 +- test/unit/common/services/releases_test.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index e7aab814..d06042e0 100644 --- a/config.js +++ b/config.js @@ -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', diff --git a/test/unit/common/services/releases_test.js b/test/unit/common/services/releases_test.js index 698a1339..90d0ac64 100644 --- a/test/unit/common/services/releases_test.js +++ b/test/unit/common/services/releases_test.js @@ -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 () { @@ -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'], ]); @@ -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'); });