Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
c729b7db
Commit
c729b7db
authored
Oct 11, 2016
by
André Anjos
💬
Browse files
Don't use docker-machine for tests
parent
1ee108b6
Pipeline
#4705
failed with stage
in 1 minute and 30 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
c729b7db
...
...
@@ -84,6 +84,7 @@ We use specific docker images to run user algorithms. Download the following
base images before you try to run tests or experiments on your computer::
$ docker pull beats/py27:system
$ docker pull debian:8.4
Optionally, also download the following images to be able to re-run experiments
downloaded from the BEAT platform (not required for unit testing)::
...
...
beat/core/agent.py
View file @
c729b7db
...
...
@@ -50,7 +50,7 @@ def get_network_ip_address(host_address):
import
socket
import
difflib
possible_addresses
=
socket
.
gethostbyname_ex
(
socket
.
gethostname
())[
2
]
return
difflib
.
get_close_matches
(
host_address
,
possible_addresses
)[
0
]
return
difflib
.
get_close_matches
(
host_address
,
possible_addresses
,
cutoff
=
0
)[
0
]
class
Server
(
gevent
.
Greenlet
):
...
...
beat/core/test/test_docker.py
View file @
c729b7db
...
...
@@ -55,7 +55,7 @@ class AsyncTest(unittest.TestCase):
@
classmethod
def
setUpClass
(
cls
):
cls
.
host
=
Host
(
use_machine
=
'default'
)
cls
.
host
=
Host
()
cls
.
host
.
setup
()
...
...
beat/core/test/test_execution.py
View file @
c729b7db
...
...
@@ -59,7 +59,7 @@ class TestExecution(unittest.TestCase):
@
classmethod
def
setUpClass
(
cls
):
cls
.
host
=
Host
(
use_machine
=
'default'
)
cls
.
host
=
Host
()
cls
.
host
.
setup
()
...
...
Write
Preview
Supports
Markdown
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