mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
This reverts commit 676f850bfe
.
This commit is contained in:
@@ -103,45 +103,3 @@ class TestUndelete(ClientCase):
|
||||
|
||||
assert self.ixlan_a.status == "ok"
|
||||
assert self.ixlan_a.netixlan_set_active.count() == 0
|
||||
|
||||
def test_undelete_ixlan_netixlan_dupe_same_ix(self):
|
||||
ixlan_c = REFTAG_MAP["ixlan"].objects.create(ix=self.ix_a, status="ok")
|
||||
netixlan_a = self.ixlan_a.netixlan_set.first()
|
||||
self.ixlan_a.delete()
|
||||
netixlan_c = REFTAG_MAP["netixlan"].objects.create(
|
||||
asn=self.net_a.asn,
|
||||
ixlan=ixlan_c,
|
||||
status="ok",
|
||||
ipaddr4=netixlan_a.ipaddr4,
|
||||
network=self.net_a,
|
||||
speed=100,
|
||||
)
|
||||
|
||||
assert ixlan_c.netixlan_set_active.count() == 1
|
||||
|
||||
self._undelete(self.ixlan_a)
|
||||
|
||||
assert self.ixlan_a.status == "ok"
|
||||
assert self.ixlan_a.netixlan_set_active.count() == 1
|
||||
assert ixlan_c.netixlan_set_active.count() == 0
|
||||
|
||||
def test_undelete_ixlan_netixlan_dupe_same_ix_ipv6(self):
|
||||
ixlan_c = REFTAG_MAP["ixlan"].objects.create(ix=self.ix_a, status="ok")
|
||||
netixlan_a = self.ixlan_a.netixlan_set.first()
|
||||
self.ixlan_a.delete()
|
||||
netixlan_c = REFTAG_MAP["netixlan"].objects.create(
|
||||
asn=self.net_a.asn,
|
||||
ixlan=ixlan_c,
|
||||
status="ok",
|
||||
ipaddr6=netixlan_a.ipaddr6,
|
||||
network=self.net_a,
|
||||
speed=100,
|
||||
)
|
||||
|
||||
assert ixlan_c.netixlan_set_active.count() == 1
|
||||
|
||||
self._undelete(self.ixlan_a)
|
||||
|
||||
assert self.ixlan_a.status == "ok"
|
||||
assert self.ixlan_a.netixlan_set_active.count() == 1
|
||||
assert ixlan_c.netixlan_set_active.count() == 0
|
||||
|
Reference in New Issue
Block a user