Update wrapper redirect assertion
This commit is contained in:
@@ -40,6 +40,8 @@ Fix the framework git wrappers so Gitea issue/PR operations resolve the tea logi
|
|||||||
- `pnpm typecheck`
|
- `pnpm typecheck`
|
||||||
- `pnpm lint`
|
- `pnpm lint`
|
||||||
- `pnpm format:check`
|
- `pnpm format:check`
|
||||||
|
- `pnpm --filter @mosaicstack/mosaic test -- src/commands/git-wrapper-redirects.spec.ts`
|
||||||
|
- `pnpm test` progressed past wrapper redirect assertions; local run then stopped on `apps/gateway` Postgres connection refused at `localhost:5433`, which CI provides as a service.
|
||||||
- Live read-only: direct Gitea API read of `mosaicstack/stack#536` with `User-Agent: curl/8`.
|
- Live read-only: direct Gitea API read of `mosaicstack/stack#536` with `User-Agent: curl/8`.
|
||||||
- Live read-only: USC temporary repo remote to `https://git.uscllc.com/USC/uconnect.git`; `issue-list.sh -n 1` resolved the USC login and returned USC issues.
|
- Live read-only: USC temporary repo remote to `https://git.uscllc.com/USC/uconnect.git`; `issue-list.sh -n 1` resolved the USC login and returned USC issues.
|
||||||
- Independent Codex review final verdict: approve, no findings.
|
- Independent Codex review final verdict: approve, no findings.
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ describe('Gitea git wrapper API calls', () => {
|
|||||||
(scriptName) => {
|
(scriptName) => {
|
||||||
const script = readGitTool(scriptName);
|
const script = readGitTool(scriptName);
|
||||||
|
|
||||||
expect(script).not.toContain('curl -fsS -H "Authorization: token');
|
expect(script).not.toMatch(/curl -fsS\s+(?:-H "[^"]+"\s+)*-H "Authorization: token/);
|
||||||
expect(script).toContain('curl -fsSL -H "Authorization: token');
|
expect(script).toMatch(/curl -fsSL\s+(?:-H "[^"]+"\s+)*-H "Authorization: token/);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user