fix: référencer les portails nommés par entité
All checks were successful
Validation Dashboard / Tests backend et build frontend (push) Successful in 42s
All checks were successful
Validation Dashboard / Tests backend et build frontend (push) Successful in 42s
This commit is contained in:
@@ -10,6 +10,19 @@ const appSorting = fs.readFileSync(
|
||||
path.resolve(__dirname, '../../frontend/src/utils/appSorting.js'),
|
||||
'utf8'
|
||||
);
|
||||
const historicalRecetteHost = ['portail', 'recette', 'santinova-soft', 'org'].join('.');
|
||||
const historicalProductionHost = ['portail', 'santinova-soft', 'org'].join('.');
|
||||
const portalMetadataSources = [
|
||||
'../../frontend/src/pages/DocumentationPage.jsx',
|
||||
'../../frontend/src/pages/InventairePage.jsx',
|
||||
'../../../frontend/src/pages/DocumentationPage.jsx',
|
||||
'../../../frontend/src/pages/InventairePage.jsx',
|
||||
'../../../backend/src/config.js',
|
||||
'../../frontend/public/infra_schema_v3.svg',
|
||||
'../../frontend/public/infra_schema_v4.svg',
|
||||
].map((relativePath) => path.resolve(__dirname, relativePath))
|
||||
.filter((filePath) => fs.existsSync(filePath))
|
||||
.map((filePath) => fs.readFileSync(filePath, 'utf8'));
|
||||
|
||||
assert.match(appCard, /const isInfra = app\.category === 'INFRA';/);
|
||||
assert.doesNotMatch(appCard, /\['portail-santinova', 'manus-dashboard'\]\.includes\(app\.id\)/);
|
||||
@@ -29,4 +42,9 @@ assert.match(appCard, /text-orange-300/);
|
||||
assert.match(appCard, /Configuration active indisponible/);
|
||||
assert.match(appSorting, /app\?\.category === 'INFRA' \? 0 : 1/);
|
||||
|
||||
for (const source of portalMetadataSources) {
|
||||
assert.equal(source.includes(historicalRecetteHost), false, 'le dashboard ne doit plus référencer le portail historique recette');
|
||||
assert.equal(source.includes(historicalProductionHost), false, 'le dashboard ne doit plus référencer le portail historique production');
|
||||
}
|
||||
|
||||
console.log('applications-ui-contract: OK');
|
||||
|
||||
@@ -63,9 +63,9 @@ const RECETTE = {
|
||||
icon: Globe,
|
||||
color: 'teal',
|
||||
name: 'Portail Applicatif',
|
||||
url: 'portail.recette.santinova-soft.org',
|
||||
url: 'portail-santinova.recette.santinova-soft.org',
|
||||
desc: 'Vitrine centralisée des applications',
|
||||
href: 'https://portail.recette.santinova-soft.org',
|
||||
href: 'https://portail-santinova.recette.santinova-soft.org',
|
||||
},
|
||||
{
|
||||
icon: Shield,
|
||||
@@ -167,9 +167,9 @@ const PRODUCTION = {
|
||||
icon: Globe,
|
||||
color: 'teal',
|
||||
name: 'Portail Applicatif',
|
||||
url: 'portail.santinova-soft.org',
|
||||
url: 'portail-santinova.santinova-soft.org',
|
||||
desc: 'Vitrine applicative production',
|
||||
href: 'https://portail.santinova-soft.org',
|
||||
href: 'https://portail-santinova.santinova-soft.org',
|
||||
},
|
||||
{
|
||||
icon: Shield,
|
||||
|
||||
@@ -84,8 +84,8 @@ const APPS_CONFIG = [
|
||||
id: 'portail-santinova',
|
||||
name: 'Portail Applicatif',
|
||||
repoName: 'portail-santinova',
|
||||
urlRecette: 'https://portail.recette.santinova-soft.org',
|
||||
urlProd: 'https://portail.santinova-soft.org',
|
||||
urlRecette: 'https://portail-santinova.recette.santinova-soft.org',
|
||||
urlProd: 'https://portail-santinova.santinova-soft.org',
|
||||
},
|
||||
{
|
||||
id: 'manus-dashboard',
|
||||
|
||||
Reference in New Issue
Block a user