sharing: test case for write properties on create
This commit is contained in:
@@ -942,6 +942,7 @@ class TestSharingApiSanity(BaseTest):
|
|||||||
json_dict['User'] = "user"
|
json_dict['User'] = "user"
|
||||||
json_dict['PathMapped'] = path_mapped
|
json_dict['PathMapped'] = path_mapped
|
||||||
json_dict['PathOrToken'] = path_shared
|
json_dict['PathOrToken'] = path_shared
|
||||||
|
json_dict['Properties'] = {"D:displayname": "Test"}
|
||||||
_, headers, answer = self._sharing_api_json("map", "create", check=200, login="owner:ownerpw", json_dict=json_dict)
|
_, headers, answer = self._sharing_api_json("map", "create", check=200, login="owner:ownerpw", json_dict=json_dict)
|
||||||
answer_dict = json.loads(answer)
|
answer_dict = json.loads(answer)
|
||||||
assert answer_dict['Status'] == "success"
|
assert answer_dict['Status'] == "success"
|
||||||
@@ -962,6 +963,7 @@ class TestSharingApiSanity(BaseTest):
|
|||||||
assert answer_dict['Content'][0]['HiddenByOwner'] is True
|
assert answer_dict['Content'][0]['HiddenByOwner'] is True
|
||||||
assert answer_dict['Content'][0]['HiddenByUser'] is True
|
assert answer_dict['Content'][0]['HiddenByUser'] is True
|
||||||
assert answer_dict['Content'][0]['Permissions'] == "r"
|
assert answer_dict['Content'][0]['Permissions'] == "r"
|
||||||
|
assert answer_dict['Content'][0]['Properties'] == {"D:displayname": "Test"}
|
||||||
|
|
||||||
logging.info("\n*** enable map by owner (json->json) -> 200")
|
logging.info("\n*** enable map by owner (json->json) -> 200")
|
||||||
json_dict = {}
|
json_dict = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user