-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #516 from ThomasWaldmann/django32
upgrade to django 3.2 LTS
- Loading branch information
Showing
17 changed files
with
1,233 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[MAIN] | ||
# In error mode, messages with a category besides ERROR or FATAL are | ||
# suppressed, and no reports are done by default. Error mode is compatible with | ||
# disabling specific errors. | ||
errors-only=yes | ||
|
||
# List of plugins (as comma separated values of python module names) to load, | ||
# usually to register additional checkers. | ||
load-plugins=pylint_django | ||
|
||
django-settings-module=nsupdate.settings.dev | ||
|
||
[MASTER] | ||
init-hook='import sys; sys.path.append(".")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
dnspython = "*" | ||
netaddr = "*" | ||
django = "~=3.2.0" | ||
django-bootstrap-form = "*" | ||
django-referrer-policy = "*" | ||
django-registration-redux = "*" | ||
django-extensions = "*" | ||
social-auth-app-django = "*" | ||
requests = "*" | ||
setuptools-scm = "*" | ||
|
||
[dev-packages] | ||
django-debug-toolbar = "*" | ||
pytest = ">=3.6" | ||
pytest-django = "*" | ||
pytest-pep8 = "*" | ||
sphinx = "*" | ||
pylint = "*" | ||
pylint-django = "*" | ||
|
||
[requires] | ||
python_version = "3.7" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ pytest-django | |
pytest-cov | ||
tox | ||
wheel | ||
pylint | ||
pylint-django | ||
Sphinx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM python:3.11-alpine | ||
WORKDIR /app | ||
|
||
RUN apk add bind git | ||
COPY bind/named.conf.local /etc/bind/named.conf.local | ||
COPY bind/zones/ /var/lib/bind/pri/ | ||
RUN chown named -R /var/lib/bind/pri/ | ||
|
||
CMD /app/scripts/docker/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// Do any local configuration here | ||
// | ||
|
||
key "nsupdate.info." { | ||
algorithm hmac-sha512; | ||
secret "YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ=="; | ||
}; | ||
|
||
key "tests.nsupdate.info." { | ||
algorithm hmac-sha512; | ||
secret "YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ=="; | ||
}; | ||
|
||
zone "nsupdate.info" { | ||
type master; | ||
file "/var/lib/bind/pri/nsupdate.info"; | ||
update-policy { | ||
// these "deny" entries are needed for the service domain, | ||
// if you add another domain, you may want to check the need | ||
// for other "deny" entries if the zone is not fully available. | ||
// we don't allow updates to the infrastructure hosts: | ||
deny nsupdate.info. name nsupdate.info; | ||
deny nsupdate.info. name www.nsupdate.info; | ||
deny nsupdate.info. name ipv4.nsupdate.info; | ||
deny nsupdate.info. name ipv6.nsupdate.info; | ||
// this host is for testing if the nameserver is configured correctly and reachable | ||
grant nsupdate.info. name connectivity-test.nsupdate.info A; | ||
// but we allow updates to any other host: | ||
grant nsupdate.info. subdomain nsupdate.info; | ||
}; | ||
}; | ||
|
||
zone "tests.nsupdate.info" { | ||
type master; | ||
file "/var/lib/bind/pri/tests.nsupdate.info"; | ||
update-policy { | ||
// these "deny" entries are needed for the service domain, | ||
// if you add another domain, you may want to check the need | ||
// for other "deny" entries if the zone is not fully available. | ||
// we don't allow updates to the infrastructure hosts: | ||
deny tests.nsupdate.info. name tests.nsupdate.info; | ||
deny tests.nsupdate.info. name www.tests.nsupdate.info; | ||
deny tests.nsupdate.info. name ipv4.tests.nsupdate.info; | ||
deny tests.nsupdate.info. name ipv6.tests.nsupdate.info; | ||
// but we allow updates to any other host: | ||
grant tests.nsupdate.info. subdomain tests.nsupdate.info; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$ORIGIN . | ||
$TTL 3600 ; 1 hour | ||
nsupdate.info IN SOA ns1.nsupdate.info. root.nsupdate.info. ( | ||
2016081401 ; serial | ||
7200 ; refresh (2 hours) | ||
1800 ; retry (30 minutes) | ||
604800 ; expire (1 week) | ||
60 ; minimum (1 minute) | ||
) | ||
NS 127.0.0.1. | ||
A 127.0.0.1 | ||
AAAA ::1 | ||
|
||
$ORIGIN nsupdate.info. | ||
$TTL 3600 ; 1 hour | ||
ipv4 A 127.0.0.1 | ||
ipv6 AAAA ::1 | ||
www A 127.0.0.1 | ||
AAAA ::1 | ||
A 127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$ORIGIN . | ||
$TTL 3600 ; 1 hour | ||
tests.nsupdate.info IN SOA ns1.tests.nsupdate.info. root.tests.nsupdate.info. ( | ||
2016081401 ; serial | ||
7200 ; refresh (2 hours) | ||
1800 ; retry (30 minutes) | ||
604800 ; expire (1 week) | ||
60 ; minimum (1 minute) | ||
) | ||
NS 127.0.0.1. | ||
A 127.0.0.1 | ||
AAAA ::1 | ||
|
||
$ORIGIN tests.nsupdate.info. | ||
ipv4 A 1.2.3.4 | ||
ipv6 AAAA ::1 | ||
www A 1.2.3.4 | ||
AAAA ::1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
set -euxo pipefail | ||
|
||
cd /tmp && named -g -u named -c /etc/bind/named.conf.local & | ||
|
||
cd /app | ||
pip install -e . | ||
pip install -r requirements.txt | ||
|
||
pylint src/nsupdate | ||
pytest src/nsupdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.