Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
95643a1e
Commit
95643a1e
authored
Feb 07, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/seleniumserver/test: support python3
parent
7c0a8377
Pipeline
#9121
canceled with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
software/seleniumserver/test/setup.py
software/seleniumserver/test/setup.py
+1
-0
software/seleniumserver/test/test.py
software/seleniumserver/test/test.py
+5
-5
software/slapos-sr-testing/software.cfg
software/slapos-sr-testing/software.cfg
+1
-1
No files found.
software/seleniumserver/test/setup.py
View file @
95643a1e
...
...
@@ -51,6 +51,7 @@ setup(
'image'
,
'requests'
,
'paramiko'
,
'six'
,
],
zip_safe
=
True
,
test_suite
=
'test'
,
...
...
software/seleniumserver/test/test.py
View file @
95643a1e
...
...
@@ -31,11 +31,11 @@ import multiprocessing
import
os
import
tempfile
import
unittest
import
urlparse
import
six.moves.urllib.parse
as
urlparse
import
base64
import
hashlib
import
contextlib
from
BaseHTTPServer
import
BaseHTTPRequestHandler
,
HTTPServer
from
six.moves.
BaseHTTPServer
import
BaseHTTPRequestHandler
,
HTTPServer
from
io
import
BytesIO
import
paramiko
...
...
@@ -76,7 +76,7 @@ class WebServerMixin(object):
self
.
send_response
(
200
)
self
.
end_headers
()
self
.
wfile
.
write
(
'''
b
'''
<html>
<title>Test page</title>
<body>
...
...
@@ -104,7 +104,7 @@ class WebServerMixin(object):
if
form
.
has_key
(
'f'
):
file_data
=
form
[
'f'
].
file
.
read
()
self
.
wfile
.
write
(
'''
b
'''
<html>
<title>%s</title>
<div>%s</div>
...
...
@@ -397,7 +397,7 @@ class TestSSHServer(SeleniumServerTestCase):
received
+=
r
if
'Selenium Server.'
in
received
:
break
self
.
assertIn
(
"Welcome to SlapOS Selenium Server."
,
received
)
self
.
assertIn
(
b
"Welcome to SlapOS Selenium Server."
,
received
)
class
TestFirefox52
(
...
...
software/slapos-sr-testing/software.cfg
View file @
95643a1e
...
...
@@ -224,6 +224,7 @@ tests =
${slapos.test.kvm-setup:setup}
${slapos.test.slaprunner-setup:setup}
${slapos.test.proftpd-setup:setup}
${slapos.test.seleniumserver-setup:setup}
${:extra}
extra =
${slapos.cookbook-setup:setup}
...
...
@@ -235,7 +236,6 @@ extra =
${slapos.test.plantuml-setup:setup}
${slapos.test.powerdns-setup:setup}
${slapos.test.re6stnet-setup:setup}
${slapos.test.seleniumserver-setup:setup}
${slapos.test.helloworld-setup:setup}
${slapos.test.jstestnode-setup:setup}
${slapos.test.jupyter-setup:setup}
...
...
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