Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
I
instrumented-soap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
thelabnyc
instrumented-soap
Commits
055846bf
Commit
055846bf
authored
Apr 12, 2018
by
Craig Weber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests broken by disapperance of
http://www.webservicex.net/uszip.asmx?WSDL
parent
34711b3b
Pipeline
#22490444
passed with stage
in 4 minutes and 16 seconds
Changes
1
Pipelines
41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
src/soap/tests/test_soap.py
src/soap/tests/test_soap.py
+5
-17
No files found.
src/soap/tests/test_soap.py
View file @
055846bf
...
...
@@ -5,28 +5,16 @@ import soap
class
SOAPTest
(
TestCase
):
def
test_basic_soap_method_call
(
self
):
wsdl
=
'http://www.
webservicex.net/uszip.asmx
?WSDL'
wsdl
=
'http://www.
dataaccess.com/webservicesserver/numberconversion.wso
?WSDL'
client
=
soap
.
get_client
(
wsdl
,
'LOCATIONS'
)
client
.
set_options
(
port
=
'USZipSoap'
)
resp
=
client
.
service
.
GetInfoByZIP
(
'10305'
)
self
.
assertEquals
(
resp
.
NewDataSet
.
Table
.
CITY
,
'Staten Island'
)
self
.
assertEquals
(
resp
.
NewDataSet
.
Table
.
STATE
,
'NY'
)
client
.
set_options
(
port
=
'NumberConversionSoap'
)
resp
=
client
.
service
.
NumberToWords
(
'42'
)
self
.
assertEquals
(
str
(
resp
).
strip
(),
'forty two'
)
class
SOAPProxyTest
(
TestCase
):
def
test_soap_with_proxy
(
self
):
""" Set sandbox/settings to use """
if
settings
.
PROXY_URL
:
wsdl
=
'http://www.
webservicex.net/uszip.asmx
?WSDL'
wsdl
=
'http://www.
dataaccess.com/webservicesserver/numberconversion.wso
?WSDL'
soap
.
get_client
(
wsdl
,
'LOCATIONS'
)
def
test_private_soap_with_proxy
(
self
):
""" Intended for local and private use only
Set SOAP_PROXY_URL in sandbox/settings too.
"""
private_ip
=
''
if
not
private_ip
:
return
wsdl
=
'http://{}/TAXCCH/Service3.5.svc?singleWsdl'
.
format
(
private_ip
)
soap
.
get_client
(
wsdl
,
'CCH'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment