From 29c42ff067f8bfd8e0e5ba0318582b5365729fbc Mon Sep 17 00:00:00 2001 From: Alex Anderson <191496+alxndrsn@users.noreply.github.com> Date: Fri, 11 Oct 2024 18:09:50 +0300 Subject: [PATCH] test/nginx: remove checks for well-known/acme-challenge (#748) * 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 e7288743..2125adc7 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('/');