Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions netbox_dns/templatetags/netbox_dns.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, timezone
from datetime import UTC, datetime

from django import template

Expand All @@ -7,4 +7,4 @@

@register.filter(name="epoch_to_utc")
def epoch_to_utc(epoch):
return datetime.fromtimestamp(epoch, tz=timezone.UTC)
return datetime.fromtimestamp(epoch, tz=UTC)
5 changes: 5 additions & 0 deletions netbox_dns/tests/dnssec_key_template/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class DNSSECKeyTemplateAPITestCase(
):
model = DNSSECKeyTemplate

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = [
"algorithm",
"description",
Expand Down
5 changes: 5 additions & 0 deletions netbox_dns/tests/dnssec_policy/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ class DNSSECPolicyAPITestCase(
):
model = DNSSECPolicy

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = [
"description",
"display",
Expand Down
5 changes: 5 additions & 0 deletions netbox_dns/tests/nameserver/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class NameServerAPITestCase(
):
model = NameServer

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = ["description", "display", "id", "name", "url"]

create_data = [
Expand Down
6 changes: 6 additions & 0 deletions netbox_dns/tests/record/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ class RecordAPITestCase(
APIViewTestCases.GraphQLTestCase,
):
model = Record

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = [
"active",
"description",
Expand Down
6 changes: 6 additions & 0 deletions netbox_dns/tests/record_template/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ class RecordTemplateAPITestCase(
APIViewTestCases.GraphQLTestCase,
):
model = RecordTemplate

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = [
"description",
"display",
Expand Down
5 changes: 5 additions & 0 deletions netbox_dns/tests/registrar/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class RegistrarAPITestCase(
):
model = Registrar

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = ["description", "display", "iana_id", "id", "name", "url"]

create_data = [
Expand Down
6 changes: 6 additions & 0 deletions netbox_dns/tests/registration_contact/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ class RegistrationContactAPITestCase(
APIViewTestCases.GraphQLTestCase,
):
model = RegistrationContact

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = ["contact_id", "description", "display", "id", "name", "url"]

create_data = [
Expand Down
5 changes: 5 additions & 0 deletions netbox_dns/tests/view/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class ViewAPITestCase(
):
model = View

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = ["default_view", "description", "display", "id", "name", "url"]

create_data = [
Expand Down
10 changes: 10 additions & 0 deletions netbox_dns/tests/zone/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ class ZoneAPITestCase(
):
model = Zone

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = [
"active",
"description",
Expand Down
5 changes: 5 additions & 0 deletions netbox_dns/tests/zone_template/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class ZoneTemplateAPITestCase(
):
model = ZoneTemplate

# +
# TODO: Fix the root cause and remove this workaround
# -
graphql_auto_filter_required = False

brief_fields = [
"description",
"display",
Expand Down
Loading