fix: tighten edge cases across services (#3158)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-03 13:04:29 +02:00
1 parent a9f7a23c0d
commit 4e6b837ccc
170 files changed
+2028 -421

No files matched your search

@@ -692,7 +692,7 @@ describe('ConfigLoader', () => {
}
});
test('rejects a cache purge endpoint that carries credentials', async () => {
test('rejects a cache purge endpoint that contains credentials', async () => {
stubMinimalEnv({
FLUXER_CACHE_PURGE_ADAPTER: 'http',
FLUXER_CACHE_PURGE_HTTP_ENDPOINT: 'https://purger:[email protected]/purge',
@@ -869,7 +869,7 @@ describe('ConfigLoader', () => {
expect(config.integrations.voice.url).toBe('http://localhost:8088/livekit');
});
test('inserts the public port into every other public url the config carries', async () => {
test('inserts the public port into every other public url the config contains', async () => {
stubMinimalEnv({
FLUXER_S3_PUBLIC_ENDPOINT: 'http://localhost/s3',
FLUXER_EMAIL_APP_BASE_URL: 'http://localhost',
@@ -207,7 +207,7 @@ describe('the shipped compose stack expanded on a non-default port', () => {
expect(starved).toEqual([]);
});
test('every public URL the stack hands a browser carries the port', () => {
test('every public URL the stack hands a browser includes the port', () => {
const entries = serviceNames
.filter((service) => !SERVICES_WITHOUT_ENDPOINT_REPAIR.has(service))
.flatMap((service) => repairedPublicUrls(service, PORT_ONLY_ENV));
@@ -226,7 +226,7 @@ describe('the shipped compose stack expanded on a non-default port', () => {
});
});
describe('a public origin carrying a port while FLUXER_PUBLIC_PORT stays standard', () => {
describe('a public origin with a port while FLUXER_PUBLIC_PORT stays standard', () => {
beforeEach(() => {
resetConfig();
});
@@ -236,7 +236,7 @@ describe('a public origin carrying a port while FLUXER_PUBLIC_PORT stays standar
vi.unstubAllEnvs();
});
test('the compose overrides all carry the origin port', () => {
test('the compose overrides all include the origin port', () => {
const environment = expandedEnvironment('api', ORIGIN_ONLY_ENV);
const entries = publicUrlNames(environment).map((name): [string, string] => [name, environment[name]]);
expect(entries.length).toBeGreaterThan(0);