From 8cf6c684493e48d9673169d439a1a0744107a0d5 Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Wed, 9 Oct 2024 08:06:28 +0000 Subject: [PATCH] test/nginx: remove checks for well-known/acme-challenge * this path isn't relevant to these tests, as they do not use letsencrypt SSL certs * the tests don't make sense, as they're checking for 404s * in the test scenario, specific handling for this path is removed from redirector.conf in files/nginx/setup-odk.sh --- test/test-nginx.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/test-nginx.js b/test/test-nginx.js index 3731e027..f170df9c 100644 --- a/test/test-nginx.js +++ b/test/test-nginx.js @@ -6,23 +6,6 @@ describe('nginx config', () => { resetBackendMock(), ])); - it('well-known should serve from HTTP', async () => { - // when - const res = await fetchHttp('/.well-known/acme-challenge'); - - // then - assert.equal(res.status, 301); - assert.equal(res.headers.get('location'), 'https://localhost:9000/.well-known/acme-challenge'); - }); - - it('well-known should serve from HTTPS', async () => { - // when - const res = await fetchHttps('/.well-known/acme-challenge'); - - // then - assert.equal(res.status, 404); - }); - it('HTTP should forward to HTTPS', async () => { // when const res = await fetchHttp('/');