Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Merge "Added a test for replacing a restrictions property"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Feb 4, 2015
2 parents d3f0e1f + 5176d5b commit adf1d94
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/api/services/data_patch_service.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,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"}
Expand Down

0 comments on commit adf1d94

Please sign in to comment.