Rev4102, Fix fileGet test
This commit is contained in:
parent
c05916477c
commit
eeef6fe65f
3 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.7.0"
|
||||
self.rev = 4101
|
||||
self.rev = 4102
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.pending_changes = {}
|
||||
|
|
|
@ -278,7 +278,7 @@ class FileRequest(object):
|
|||
return False
|
||||
except Exception as err:
|
||||
self.log.error("GetFile exception: %s" % Debug.formatException(err))
|
||||
self.response({"error": "File read Exception"})
|
||||
self.response({"error": "File read exception"})
|
||||
return False
|
||||
|
||||
def actionGetFile(self, params):
|
||||
|
|
|
@ -35,7 +35,7 @@ class TestFileRequest:
|
|||
|
||||
# Stream from parent dir
|
||||
response = connection.request("getFile", {"site": site.address, "inner_path": "../users.json", "location": 0})
|
||||
assert "File read error" in response["error"]
|
||||
assert "File read exception" in response["error"]
|
||||
|
||||
# Invalid site
|
||||
response = connection.request("getFile", {"site": "", "inner_path": "users.json", "location": 0})
|
||||
|
@ -77,7 +77,7 @@ class TestFileRequest:
|
|||
# Stream from parent dir
|
||||
buff = io.BytesIO()
|
||||
response = connection.request("streamFile", {"site": site.address, "inner_path": "../users.json", "location": 0}, buff)
|
||||
assert "File read error" in response["error"]
|
||||
assert "File read exception" in response["error"]
|
||||
|
||||
connection.close()
|
||||
client.stop()
|
||||
|
|
Loading…
Reference in a new issue