1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

test ix creation with ipv6 prefix as the initial prefix

This commit is contained in:
Stefan Pratter
2018-12-04 09:43:11 +00:00
parent b0c8cbf978
commit 205cf3dbcf

View File

@@ -125,6 +125,13 @@ class TestJSON(unittest.TestCase):
cls.PREFIX_COUNT += 1
return r
@classmethod
def get_prefix6(cls):
r = u"2001:504:41:{}::/64".format(cls.PREFIX_COUNT)
cls.PREFIX_COUNT += 1
return r
def setUp(self):
self.db_guest = self.rest_client(URL, verbose=VERBOSE)
self.db_user = self.rest_client(URL, verbose=VERBOSE, **USER)
@@ -917,6 +924,12 @@ class TestJSON(unittest.TestCase):
},
})
# test ix creation with a ipv6 prefix
data = self.make_data_ix(prefix=self.get_prefix6())
self.assert_create(self.db_org_admin, "ix", data, ignore=["prefix"])
##########################################################################
def test_org_admin_002_POST_PUT_DELETE_fac(self):