Skip to content

Commit

Permalink
Proxito: remove X-RTD-Hosting-Integrations HTTP header (#11656)
Browse files Browse the repository at this point in the history
This header is useless now that we are fully migrated to Addons.
I'm removing the only the test for now, since it's failing on all the PRs.

Related #11653
  • Loading branch information
humitos authored Oct 7, 2024
1 parent ed00aed commit 1474f97
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions readthedocs/proxito/tests/test_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,6 @@ def test_user_domain_headers(self):
self.assertEqual(r[http_header], http_header_value)
self.assertEqual(r[http_header_secure], http_header_value)

def test_hosting_integrations_header(self):
version = self.project.versions.get(slug=LATEST)
version.addons = True
version.save()

r = self.client.get(
"/en/latest/", secure=True, headers={"host": "project.dev.readthedocs.io"}
)
self.assertEqual(r.status_code, 200)
self.assertIsNotNone(r.get("X-RTD-Hosting-Integrations"))
self.assertEqual(r["X-RTD-Hosting-Integrations"], "true")

def test_force_addons_header(self):
fixture.get(AddonsConfig, project=self.project, enabled=True)

Expand Down

0 comments on commit 1474f97

Please sign in to comment.