Added a test for replacing a restrictions property

This change is for adding test data into the data_patch_service.json file
that will add a restriction property and then rename it using the PATCH
API call with the ops sub-property set to replace. This covers a test for
replacing information for a restriction property in a service.

Fixed pep8 issue of too many lines in test_services.py

Jenkins through a pep8 issue of too many lines at line 508.
It was actually at line 539. I removed the extra line.

Change-Id: I763dfe3143212518c5f9490ff3a965a2f0570acd
This commit is contained in:
wbrothers
2015-01-09 16:45:11 +00:00
parent afd9bd6754
commit 5176d5b85a

View File

@@ -102,6 +102,18 @@
"rules": [{"name": "rule1", "referrer": "thesite"}]
}}
],
"replace_restrictions":[
{"op": "add",
"path": "/restrictions/-",
"value": {"name": "restricted",
"rules": [{"name": "rule1", "referrer": "thesite"}]
}},
{"op": "replace",
"path": "/restrictions/0",
"value": {"name": "new_restricted",
"rules": [{"name": "rule1", "referrer": "thesite"}]
}}
],
"remove_restrictions": [
{"op": "remove",
"path": "/restrictions/0"}