test(server-nestjs): align E2E specs with DSO orchestration - #2407
Conversation
78ae165 to
9718e9e
Compare
Review — PR #2407
|
shikanime
left a comment
There was a problem hiding this comment.
Review: tests sound — description needs trimming (non-blocking)
Verified the actual diff on head 9718e9e: 15 files, all under apps/server-nestjs/test/ — zero source changes. All CI green (lint, unit, build, Sonar, Trivy, CodeQL). Every new test symbol resolves to existing source on the branch. E2E gating relaxation and delete-lifecycle/zone coverage are legitimate.
The production fixes described in the PR body are real but live in sibling PRs, not here:
- #2403 sonarqube: project.owner.email for user creation
- #2405 gitlab: token rotation / validation / user hardening
- #2406 vault: group restructure + techRO path divergence
Request
Trim the PR title/body to reflect that this is test realignment only. As written, it lists source fixes absent from the diff and will mislead readers into thinking #2407 contains the sonar/gitlab/vault changes. Suggested title: test(server-nestjs): realign E2E tests with DSO orchestration docs. Merge #2403/#2405/#2406 alongside this one.
(Note: could not submit an approving review — this is your own PR. Leaving this as a review comment for the record.)
9718e9e to
afb53a6
Compare
afb53a6 to
20e7295
Compare
Review: PR #2407 — align E2E specs with DSO orchestrationVerdict: REQUEST CHANGES (2 blockers, E2E correctness). Unit CI is green and the branch is mergeable, but the new E2E assertions encode behavior that does not hold against current BLOCKER — Keycloak delete test is wrong against production
await keycloakService.handleDelete(project)
expect(await keycloak.getGroupByPath(`/${testProjectSlug}`)).toBeUndefined()
expect(await keycloak.getGroupByPath(`/${testProjectSlug}/console`)).toBeUndefined()
BLOCKER — Vault delete test depends on unmerged #2406
await expect(vaultClient.getIdentityGroupName(adminGroupName)).rejects.toThrow('Not Found')On WARNING — Dependency ordering / PR body inconsistencies
NIT
What's goodNexus/Registry delete assertions match Gate: do not merge until #2405 lands and the Keycloak + Vault delete tests reflect real production behavior (or their production fixes land first). |
a12cafb to
0514c6d
Compare
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr> Change-Id: I52821443aadd7c74cfcd7a88c90996ab6a6a6964
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr> Change-Id: I217045bef20e4cdabe25f49d312165d16a6a6964
0514c6d to
468b4b7
Compare
Review: #2407 — test(server-nestjs): align E2E specsVerdict: APPROVE (reviewer agent) Re-verified against head Non-blocking: trim the PR title/body to "test realignment only" — as written it lists source fixes absent from this diff and can mislead readers into thinking #2407 contains the sonar/gitlab/vault changes. Merge with #2403/#2405/#2406. |
Co-Authored-By: Operator 21O <noreply@hermes.agent> Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr> Change-Id: If984ba74aba5bdccd08e3a40c9deb29f6a6a6964
Co-Authored-By: Operator 21O <noreply@hermes.agent> Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr> Change-Id: I30a27e79378d3fccad2b94d058e09de86a6a6964
0f91bd1 to
d26ef98
Compare
…d gitlab timeout Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr> Change-Id: I4d11cbd9ae5679c8e9593aac6e2653696a6a6964
d26ef98 to
f3d6a2a
Compare
|

0 New Issues
0 Fixed Issues
0 Accepted Issues
Realign
apps/server-nestjs/test/*.e2e-spec.tswith DSO orchestration.Test-only change. No production source and no CI/README files in this diff.
Changes
apps/server-nestjs/test/e2e-timeout.ts, named by the operation they exercise (provision,syncGroups,syncExternal,gitReconcile,provisionHeavy) rather than bare size buckets.Verification
process.env.E2E; unit CI is unaffected.expect(project.status).toBe(404)) is valid:getProjectByNamereturnsRegistryResponse.statusas the raw HTTP code.Change-Id: Ife034f03d064a633bb02b0521b4b2e3d6a6a6964