Add url to ignore_urls list

This commit is contained in:
Erin 2023-10-23 09:50:35 -07:00
parent a30ed4725a
commit 5c9fbf483e
No known key found for this signature in database
GPG key ID: 1CAD275313C62460
3 changed files with 6 additions and 3 deletions

View file

@ -29,7 +29,7 @@
{% url 'domain-dns-nameservers' pk=domain.id as url %} {% url 'domain-dns-nameservers' pk=domain.id as url %}
{% if domain.nameservers|length > 0 %} {% 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 %} {% else %}
<h2 class="margin-top-neg-1"> DNS name servers </h2> <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 well need information about your domain name servers.</p> <p> No DNS name servers have been added yet. Before your domain can be used well need information about your domain name servers.</p>

View file

@ -110,13 +110,13 @@ class TestURLAuth(TestCase):
# Note that the trailing slash is wobbly depending on how the URL was defined. # Note that the trailing slash is wobbly depending on how the URL was defined.
IGNORE_URLS = [ IGNORE_URLS = [
# These are the OIDC auth endpoints that always need # 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/login/",
"/openid/logout/", "/openid/logout/",
"/openid/callback", "/openid/callback",
"/openid/callback/login/", "/openid/callback/login/",
"/openid/callback/logout/", "/openid/callback/logout/",
"/api/v1/available", "/api/v1/available/whitehouse.gov",
] ]
def assertURLIsProtectedByAuth(self, url): def assertURLIsProtectedByAuth(self, url):

View file

@ -291,6 +291,9 @@ class DomainApplicationTests(TestWithUser, WebTest):
dotgov_result = dotgov_form.submit() dotgov_result = dotgov_form.submit()
# validate that data from this step are being saved # validate that data from this step are being saved
application = DomainApplication.objects.get() # there's only one 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.requested_domain.name, "city.gov")
self.assertEqual( self.assertEqual(
application.alternative_domains.filter(website="city1.gov").count(), 1 application.alternative_domains.filter(website="city1.gov").count(), 1