mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
Support 202103 (#966)
* Add check for existing pending affiliations to org * Fix message * 883 consolidation for deskpro tickets * add views tests * ipaddress normalization during search (#913) * remove unused imports * Update lat and long admin fields to not required * black formatting * relock pipfile * fix conditions for failing asn affil test * Update affiliation logic and add tests * make name search case insensitive * add asn to org_id lookup * black format * skip sync test while test.peeringdb.com is down Co-authored-by: Elliot Frank <elliot@20c.com> Co-authored-by: Stefan Pratter <stefan@20c.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import re
|
||||
import time
|
||||
import datetime
|
||||
import json
|
||||
import ipaddress
|
||||
|
||||
from twentyc.rpc import (
|
||||
RestClient,
|
||||
@@ -3143,6 +3144,21 @@ class TestJSON(unittest.TestCase):
|
||||
# MISC TESTS
|
||||
##########################################################################
|
||||
|
||||
##########################################################################
|
||||
|
||||
def test_misc_GET_netixlan_ipaddr6(self):
|
||||
# For issue 913
|
||||
# Test that differently formatted ipaddr6
|
||||
# can be used to search for same Netixlan
|
||||
ipaddr6 = SHARED["netixlan_r_ok"].ipaddr6
|
||||
expanded_string = ipaddress.ip_address(ipaddr6).exploded
|
||||
|
||||
data = self.db_user.all("netixlan", ipaddr6=expanded_string)
|
||||
print(data)
|
||||
print(type(data))
|
||||
assert len(data) == 1
|
||||
assert data[0]["ipaddr6"] == str(ipaddr6)
|
||||
|
||||
def _test_GET_ixf_ixp_member_list_url(self, db, tests=[], suffix="r"):
|
||||
ixlan = SHARED[f"ixlan_{suffix}_ok"]
|
||||
ixlan.ixf_ixp_member_list_url = "http://localhost"
|
||||
|
||||
Reference in New Issue
Block a user