Browse Source

removing useless tar.gz, adding two new schemas from OVH API for testing

main
Julien Iguchi-Cartigny 10 years ago
parent
commit
475c16c970
8 changed files with 55674 additions and 46 deletions
  1. +4
    -30
      tests/config.txt
  2. +0
    -0
      tests/data/ip2geo.wsdl
  3. +31731
    -0
      tests/data/soapi-1.63.0-dlw.wsdl
  4. +23939
    -0
      tests/data/soapi-1.63.0-re.wsdl
  5. +0
    -0
      tests/data/zip2geo.wsdl
  6. BIN
      tests/schema.tar.gz
  7. +0
    -16
      tests/test_wstools.py
  8. BIN
      tests/xmethods.tar.gz

+ 4
- 30
tests/config.txt View File

@@ -3,41 +3,15 @@
# See Copyright for copyright notice!
###########################################################################

###########################################################################
# Config file for the unit test framework.
# Sections below.
###########################################################################



##########################################################################
# SECTION [files] - archives of wsdl/xsd files.
#
##########################################################################
[files]
archives = ('xmethods.tar.gz', 'schema.tar.gz')

##########################################################################
# SECTION [services_by_file] - all services locally available for
# testing.
##########################################################################
[services_by_file]
#ogsi = schema/ogsi/ogsi_service.wsdl
#airport = xmethods/airport.wsdl
#distance = xmethods/Distance.wsdl
#freedb = xmethods/freedb.wsdl
#globalweather = xmethods/globalweather.wsdl
#IHaddock = xmethods/IHaddock.wsdl
ip2geo = xmethods/ip2geo.wsdl
#magic = xmethods/magic.wsdl
#query = xmethods/query.wsdl
#RateInfo = xmethods/RateInfo.wsdl
#SHA1Encrypt = xmethods/SHA1Encrypt.wsdl
#siteInsepct = xmethods/siteInspect.wsdl
#TemperatureService = xmethods/TemperatureService.wsdl
#usweather = xmethods/usweather.wsdl
zip2geo = xmethods/zip2geo.wsdl
#SolveSystem = xmethods/SolveSystem.wsdl.xml
ip2geo = data/ip2geo.wsdl
zip2geo = data/zip2geo.wsdl
soapi-dlw = data/soapi-1.63.0-dlw.wsdl
soapi-re = data/soapi-1.63.0-re.wsdl

##########################################################################
# SECTION [services_by_http] -


tests/xmethods/ip2geo.wsdl → tests/data/ip2geo.wsdl View File


+ 31731
- 0
tests/data/soapi-1.63.0-dlw.wsdl
File diff suppressed because it is too large
View File


+ 23939
- 0
tests/data/soapi-1.63.0-re.wsdl
File diff suppressed because it is too large
View File


tests/xmethods/zip2geo.wsdl → tests/data/zip2geo.wsdl View File


BIN
tests/schema.tar.gz View File


+ 0
- 16
tests/test_wstools.py View File

@@ -6,9 +6,6 @@
###########################################################################

import unittest
import tarfile
import os
import ConfigParser
import test_wsdl


@@ -16,18 +13,6 @@ SECTION = 'files'
CONFIG_FILE = 'config.txt'


def extractFiles(section, option):
config = ConfigParser.ConfigParser()
config.read(CONFIG_FILE)
archives = config.get(section, option)
archives = eval(archives)
for file in archives:
tar = tarfile.open(file)
if not os.access(tar.membernames[0], os.R_OK):
for i in tar.getnames():
tar.extract(i)


def makeTestSuite():
suite = unittest.TestSuite()
suite.addTest(test_wsdl.makeTestSuite("services_by_file"))
@@ -35,7 +20,6 @@ def makeTestSuite():


def main():
extractFiles(SECTION, 'archives')
unittest.main(defaultTest="makeTestSuite")

if __name__ == "__main__":


BIN
tests/xmethods.tar.gz View File


Loading…
Cancel
Save