Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
caucase
Commits
78162dee
Commit
78162dee
authored
Oct 19, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Do not hardcode listening port in testHttpNetlocIPv6.
parent
5d8d9b77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
caucase/test.py
caucase/test.py
+7
-3
No files found.
caucase/test.py
View file @
78162dee
...
@@ -2565,8 +2565,12 @@ class CaucaseTest(unittest.TestCase):
...
@@ -2565,8 +2565,12 @@ class CaucaseTest(unittest.TestCase):
self
.
_stopServer
()
self
.
_stopServer
()
os
.
unlink
(
self
.
_server_key
)
os
.
unlink
(
self
.
_server_key
)
os
.
unlink
(
self
.
_server_db
)
os
.
unlink
(
self
.
_server_db
)
self
.
_server_netloc
=
'[::1]:8000'
netloc
=
'[::1]'
self
.
_caucase_url
=
'http://'
+
self
.
_server_netloc
port
=
urlparse
.
urlparse
(
self
.
_caucase_url
).
port
if
port
:
netloc
+=
':%s'
%
port
self
.
_server_netloc
=
netloc
self
.
_caucase_url
=
'http://'
+
netloc
self
.
_startServer
()
self
.
_startServer
()
user_key_path
=
self
.
_createFirstUser
()
user_key_path
=
self
.
_createFirstUser
()
service_key
=
self
.
_createAndApproveCertificate
(
service_key
=
self
.
_createAndApproveCertificate
(
...
@@ -2584,7 +2588,7 @@ class CaucaseTest(unittest.TestCase):
...
@@ -2584,7 +2588,7 @@ class CaucaseTest(unittest.TestCase):
x509
.
CRLDistributionPoints
,
x509
.
CRLDistributionPoints
,
).
value
).
value
uri
,
=
distribution_point
.
full_name
uri
,
=
distribution_point
.
full_name
self
.
assertEqual
(
uri
.
value
,
u'http://[::1]:8000
/cas/crl'
)
self
.
assertEqual
(
uri
.
value
,
self
.
_caucase_url
+
u'
/cas/crl'
)
def
testServerFilePermissions
(
self
):
def
testServerFilePermissions
(
self
):
"""
"""
...
...
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