Making WordPress.org

Changeset 10551


Ignore:
Timestamp:
01/05/2021 08:11:44 PM (5 years ago)
Author:
iandunn
Message:

Events: Add Seattle IP to track geolocation regressions.

That subnet was previously resolving to Bellingham, which is outside the meetup radius. That prevented events from being shown. ip2location fixed that in their January update, but this will help track regressions.

The Asia test case was updated to reflect the latest values as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index-phpunit.php

    r10548 r10551  
    831831                'input' => array( 'ip' => '86.108.55.28' ),
    832832                'expected' => array(
    833                     'description' => 'amman',
    834                     'latitude'    => '31.955',
    835                     'longitude'   => '35.945',
     833                    'description' => 'zarqa',
     834                    'latitude'    => '32.073',
     835                    'longitude'   => '36.088',
    836836                    'country'     => 'JO',
    837837                    'internal'    => true,
     
    857857                    'longitude'   => '-99.128',
    858858                    'country'     => 'MX',
     859                    'internal'    => true,
     860                ),
     861            ),
     862
     863            'ip-seattle' => array(
     864                'input' => array( 'ip' => '97.113.10.69' ),
     865                'expected' => array(
     866                    'description' => 'seattle',
     867                    'latitude'    => '47.606',
     868                    'longitude'   => '-122.332',
     869                    'country'     => 'US',
    859870                    'internal'    => true,
    860871                ),
Note: See TracChangeset for help on using the changeset viewer.