mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-27 11:33:46 +02:00
Add url to ignore_urls list
This commit is contained in:
parent
a30ed4725a
commit
5c9fbf483e
3 changed files with 6 additions and 3 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
{% url 'domain-dns-nameservers' pk=domain.id as url %}
|
||||
{% if domain.nameservers|length > 0 %}
|
||||
{% include "includes/summary_item.html" with title='DNS name servers' value=domain.nameservers list='true' edit_link=url only %}
|
||||
{% include "includes/summary_item.html" with title='DNS name servers' value=domain.nameservers list='true' edit_link=url %}
|
||||
{% else %}
|
||||
<h2 class="margin-top-neg-1"> DNS name servers </h2>
|
||||
<p> No DNS name servers have been added yet. Before your domain can be used we’ll need information about your domain name servers.</p>
|
||||
|
|
|
@ -110,13 +110,13 @@ class TestURLAuth(TestCase):
|
|||
# Note that the trailing slash is wobbly depending on how the URL was defined.
|
||||
IGNORE_URLS = [
|
||||
# These are the OIDC auth endpoints that always need
|
||||
# to be public.
|
||||
# to be public. Use the exact URLs that will be tested.
|
||||
"/openid/login/",
|
||||
"/openid/logout/",
|
||||
"/openid/callback",
|
||||
"/openid/callback/login/",
|
||||
"/openid/callback/logout/",
|
||||
"/api/v1/available",
|
||||
"/api/v1/available/whitehouse.gov",
|
||||
]
|
||||
|
||||
def assertURLIsProtectedByAuth(self, url):
|
||||
|
|
|
@ -291,6 +291,9 @@ class DomainApplicationTests(TestWithUser, WebTest):
|
|||
dotgov_result = dotgov_form.submit()
|
||||
# validate that data from this step are being saved
|
||||
application = DomainApplication.objects.get() # there's only one
|
||||
print("dotgov result: ", dotgov_form)
|
||||
print("application: ", application)
|
||||
print("application requested domain: ", application.requested_domain)
|
||||
self.assertEqual(application.requested_domain.name, "city.gov")
|
||||
self.assertEqual(
|
||||
application.alternative_domains.filter(website="city1.gov").count(), 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue