Skip to content

Commit 4aae07f

Browse files
authored
chores(x2): refactor X2ADatabaseService tests for better maintainability (#2282)
* chores(x2): refactor X2ADatabaseService tests for better maintainability Signed-off-by: Marek Libra <marek.libra@gmail.com> * Split X2ADatabaseService into multiple files * colocate DB operations and their tests --------- Signed-off-by: Marek Libra <marek.libra@gmail.com>
1 parent b1417ce commit 4aae07f

16 files changed

Lines changed: 4497 additions & 4131 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-x2a-backend': patch
3+
---
4+
5+
Splitting X2ADatabaseService tests into multiple files. Adding coverige for some of the missing flows.

workspaces/x2a/plugins/x2a-backend/src/router.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ export async function createRouter({
538538
async (req: express.Request, res: express.Response) => {
539539
const endpoint = 'POST /projects/:projectId/modules/:moduleId/run';
540540
const { projectId, moduleId } = req.params;
541+
logger.info(
542+
`${endpoint} request received: projectId=${projectId}, moduleId=${moduleId}`,
543+
);
541544

542545
// Validate request body
543546
const runModuleRequestSchema = z.object({

0 commit comments

Comments
 (0)