Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
2cf0f7fa
Commit
2cf0f7fa
authored
Aug 03, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug 1 test
parent
627cc358
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
software/erp5/test/test/test_balancer.py
software/erp5/test/test/test_balancer.py
+6
-1
software/erp5/test/test/test_erp5.py
software/erp5/test/test/test_erp5.py
+5
-1
software/erp5/test/test/test_mariadb.py
software/erp5/test/test/test_mariadb.py
+1
-1
No files found.
software/erp5/test/test/test_balancer.py
View file @
2cf0f7fa
...
...
@@ -21,9 +21,12 @@ import tempfile
import
time
import
logging
import
urlparse
import
atexit
setUpModule
# pyflakes
def
setUpModule
():
print
"no setupmodule"
class
TestHandler
(
BaseHTTPRequestHandler
):
def
do_GET
(
self
):
...
...
@@ -56,7 +59,8 @@ class EchoServerMixin(object):
target
=
server
.
serve_forever
,
name
=
'HTTPServer'
)
cls
.
http_server_process
.
start
()
cls
.
http_server_netloc
=
'%s:%s'
%
(
cls
.
_ipv4_address
,
http_server_port
)
atexit
.
register
(
cls
.
http_server_process
.
terminate
)
# XXX
@
classmethod
def
stopEchoServer
(
cls
):
if
cls
.
http_server_process
:
...
...
@@ -64,6 +68,7 @@ class EchoServerMixin(object):
class
BalancerTestCase
(
ERP5InstanceTestCase
,
EchoServerMixin
):
instance_max_retry
=
2
# XXX debug
http_server_process
=
None
@
classmethod
...
...
software/erp5/test/test/test_erp5.py
View file @
2cf0f7fa
...
...
@@ -40,7 +40,7 @@ from . import ERP5InstanceTestCase
from
.
import
setUpModule
setUpModule
# pyflakes
class
ERP5InstanceTestCase
:
def
xxx_setUpModule
()
:
pass
...
...
@@ -62,6 +62,7 @@ class TestPublishedURLIsReachableMixin(object):
caucase_cas_hal
=
requests
.
get
(
caucase_hal
[
'_links'
][
'getCASHAL'
][
'href'
]).
json
()
import
pdb
;
pdb
.
set_trace
()
caucase_cas_ca
=
requests
.
get
(
caucase_cas_hal
[
'_links'
][
'getCACertificate'
][
'href'
]).
text
self
.
assertIn
(
'-----BEGIN CERTIFICATE-----'
,
caucase_cas_ca
)
...
...
@@ -324,3 +325,6 @@ class TestZopeNodeParameterOverride(ERP5InstanceTestCase, TestPublishedURLIsReac
},
{
"cache-size"
:
None
,
})
del
TestDisableTestRunner
,
TestMedusa
,
TestApacheBalancerPorts
,
TestZopeNodeParameterOverride
\ No newline at end of file
software/erp5/test/test/test_mariadb.py
View file @
2cf0f7fa
...
...
@@ -289,4 +289,4 @@ class TestMroonga(MariaDBTestCase):
],
list
(
sorted
(
cnx
.
store_result
().
fetch_row
(
maxrows
=
4
))))
del
TestMariaDB
,
TestMroonga
\ No newline at end of file
del
TestMariaDB
,
TestMroonga
,
TestCrontabs
\ No newline at end of file
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