1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
* remove log file writing from migration

* run tests on mysql

* fix tests (pt.1)

* fix tests (pt.2)

* fix all user_id errors in tests

* Fix geocode typo

* More test changes for mysql id issues

* Add coverage config that defines coverage db should go inside test folder

* update docs

* fix mysql user

* fix tests cli

* add mysql collate settings

* docs

* fix sync

* fix sync

* docs

* remove debug output

* remove XXX

* interim commit to move to dev box

* mv db local, rm after run

* updates for 724

* note layer error message and work around

* fix travis

* chown tests

* more travis fixes

* travis: touch Ctl/dev/.env

* write coverage report to ./coverage

* clean up docs

* formatting

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: Elliot Frank <elliot@20c.com>
This commit is contained in:
Matt Griswold
2020-12-03 19:10:02 +00:00
committed by GitHub
parent b2fe79cdcd
commit 299016282e
42 changed files with 494 additions and 726 deletions

View File

@@ -279,16 +279,11 @@ class AdminTests(TestCase):
cont = response.content.decode("utf-8")
assert response.status_code == 200
assert "[pretend] Renumbering ixpfx1 207.41.110.0/24 -> 207.41.111.0/24" in cont
assert (
"[pretend] Renumbering netixlan1 AS1 207.41.110.37 -> 207.41.111.37" in cont
)
assert (
"[pretend] Renumbering netixlan2 AS1 207.41.110.38 -> 207.41.111.38" in cont
)
assert (
"[pretend] Renumbering netixlan3 AS1 207.41.110.39 -> 207.41.111.39" in cont
)
assert "[pretend]" in cont
assert "207.41.110.0/24 -> 207.41.111.0/24" in cont
assert "AS1 207.41.110.37 -> 207.41.111.37" in cont
assert "AS1 207.41.110.38 -> 207.41.111.38" in cont
assert "AS1 207.41.110.39 -> 207.41.111.39" in cont
# test post to renumber lans command form
data = {
@@ -302,11 +297,11 @@ class AdminTests(TestCase):
cont = response.content.decode("utf-8")
assert response.status_code == 200
assert "Renumbering ixpfx1 207.41.110.0/24 -> 207.41.111.0/24" in cont
assert "Renumbering netixlan1 AS1 207.41.110.37 -> 207.41.111.37" in cont
assert "Renumbering netixlan2 AS1 207.41.110.38 -> 207.41.111.38" in cont
assert "Renumbering netixlan3 AS1 207.41.110.39 -> 207.41.111.39" in cont
assert "[pretend]" not in cont
assert "207.41.110.0/24 -> 207.41.111.0/24" in cont
assert "AS1 207.41.110.37 -> 207.41.111.37" in cont
assert "AS1 207.41.110.38 -> 207.41.111.38" in cont
assert "AS1 207.41.110.39 -> 207.41.111.39" in cont
for netixlan in self.entities["netixlan"]:
netixlan.refresh_from_db()