CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test_cvmfs_geo Namespace Reference

Classes

class  giTestDb
 
class  GeoTest
 

Functions

def getaddrs
 Simulate a small geo IP database, since we can't always expect a full one to be available. More...
 

Variables

dictionary CERNgeo
 
string CERNname = 'cvmfs-stratum-one.cern.ch'
 
tuple CERNaddrs = getaddrs(CERNname, socket.AF_INET6)
 
dictionary FNALgeo
 
string FNALname = 'cvmfs.fnal.gov'
 
tuple FNALaddrs = getaddrs(FNALname, socket.AF_INET)
 
dictionary IHEPgeo
 
string IHEPname = 'cvmfs-stratum-one.ihep.ac.cn'
 
tuple IHEPaddrs = getaddrs(IHEPname, socket.AF_INET)
 
dictionary RALgeo
 
string RALname = 'cernvmfs.gridpp.rl.ac.uk'
 
tuple RALaddrs = getaddrs(RALname, socket.AF_INET6)
 

Function Documentation

def test_cvmfs_geo.getaddrs (   name,
  type 
)

Simulate a small geo IP database, since we can't always expect a full one to be available.

IPv4 addresses are always preferred, so for those with IPv6 use only IPv6.

Definition at line 16 of file test_cvmfs_geo.py.

Variable Documentation

tuple test_cvmfs_geo.CERNaddrs = getaddrs(CERNname, socket.AF_INET6)

Definition at line 28 of file test_cvmfs_geo.py.

dictionary test_cvmfs_geo.CERNgeo
Initial value:
1 = {
2  'latitude': 46.2324,
3  'longitude': 6.0502
4 }

Definition at line 23 of file test_cvmfs_geo.py.

string test_cvmfs_geo.CERNname = 'cvmfs-stratum-one.cern.ch'

Definition at line 27 of file test_cvmfs_geo.py.

tuple test_cvmfs_geo.FNALaddrs = getaddrs(FNALname, socket.AF_INET)

Definition at line 37 of file test_cvmfs_geo.py.

dictionary test_cvmfs_geo.FNALgeo
Initial value:
1 = {
2  'latitude': 41.7768,
3  'longitude': -88.4604
4 }

Definition at line 32 of file test_cvmfs_geo.py.

string test_cvmfs_geo.FNALname = 'cvmfs.fnal.gov'

Definition at line 36 of file test_cvmfs_geo.py.

tuple test_cvmfs_geo.IHEPaddrs = getaddrs(IHEPname, socket.AF_INET)

Definition at line 43 of file test_cvmfs_geo.py.

dictionary test_cvmfs_geo.IHEPgeo
Initial value:
1 = {
2  'latitude': 39.9289,
3  'longitude': 116.3883
4 }

Definition at line 38 of file test_cvmfs_geo.py.

string test_cvmfs_geo.IHEPname = 'cvmfs-stratum-one.ihep.ac.cn'

Definition at line 42 of file test_cvmfs_geo.py.

tuple test_cvmfs_geo.RALaddrs = getaddrs(RALname, socket.AF_INET6)

Definition at line 49 of file test_cvmfs_geo.py.

dictionary test_cvmfs_geo.RALgeo
Initial value:
1 = {
2  'latitude': 51.75,
3  'longitude': -1.25
4 }

Definition at line 44 of file test_cvmfs_geo.py.

string test_cvmfs_geo.RALname = 'cernvmfs.gridpp.rl.ac.uk'

Definition at line 48 of file test_cvmfs_geo.py.