Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
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
8eda068d
Commit
8eda068d
authored
May 03, 2016
by
David Burke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests that won't run on CI for private server testing
parent
b52055c5
Pipeline
#2581022
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
sandbox/settings.py
sandbox/settings.py
+2
-0
sandbox/tests/test_soap.py
sandbox/tests/test_soap.py
+20
-0
No files found.
sandbox/settings.py
View file @
8eda068d
...
...
@@ -16,3 +16,5 @@ INSTALLED_APPS = [
]
SECRET_KEY
=
'li0$-gnv)76g$yf7p@(cg-^_q7j6df5cx$o-gsef5hd68phj!4'
SOAP_PROXY_URL
=
None
sandbox/tests/test_soap.py
View file @
8eda068d
import
unittest
import
soap
from
soap
import
settings
from
django.test
import
TestCase
class
SOAPTest
(
unittest
.
TestCase
):
...
...
@@ -11,3 +13,21 @@ class SOAPTest(unittest.TestCase):
resp
=
client
.
service
.
GetInfoByZIP
(
'10305'
)
self
.
assertEquals
(
resp
.
NewDataSet
.
Table
.
CITY
,
'Staten Island'
)
self
.
assertEquals
(
resp
.
NewDataSet
.
Table
.
STATE
,
'NY'
)
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'
client
=
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
)
client
=
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