Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #23 from butomo1989/master
Browse files Browse the repository at this point in the history
Fixed path issue
  • Loading branch information
budtmo authored Jul 14, 2017
2 parents 05451c2 + a4e6704 commit 70d2dda
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
- 8089:8089
volumes:
- ~/.aws:/root/.aws
- ./:/opt
- ./:/opt/script
environment:
- ROLE=master
- TARGET_HOST=$TARGET_HOST
Expand All @@ -19,7 +19,7 @@ services:
network_mode: "service:master"
volumes:
- ~/.aws:/root/.aws
- ./:/opt
- ./:/opt/script
environment:
- ROLE=slave
- MASTER_HOST=master
Expand Down
2 changes: 1 addition & 1 deletion local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ________________________________________________________________________________
_________________________________________________________________________________
EOF

IMAGE="registry.opensource.zalan.do/tip/docker-locust:0.7.3-p3"
IMAGE="registry.opensource.zalan.do/tip/docker-locust:0.7.3-p4"
echo "Used image: $IMAGE"

echo "----------------------------------------------"
Expand Down
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_locust_file():
logger.error('File cannot be downloaded! Please check given url!')
else:
logger.info('Load test script from local machine')
file_name = given_input
file_name = '/'.join(['script', given_input])

if not file_name:
logger.error('File is empty')
Expand Down
3 changes: 2 additions & 1 deletion src/tests/test_get_locust_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ def test_no_python_file(self, wget):

def test_local_file(self):
LOCAL_FILE = 'folder/file.py'
CONTAINER_FILE = 'script/' + 'folder/file.py'
os.environ[self.url_key] = LOCAL_FILE
self.assertEquals(LOCAL_FILE, app.get_locust_file())
self.assertEquals(CONTAINER_FILE, app.get_locust_file())

0 comments on commit 70d2dda

Please sign in to comment.