Skip to content

Commit

Permalink
refs: 7422. Fix CNAuthTestImplementations#testSetAccessPolicy so that…
Browse files Browse the repository at this point in the history
… it doesn't try to submit an empty access policy.

git-svn-id: file:///var/code/dataone/dataone/software/cicore/branches/D1_INTEGRATION_v2.0@18180 a8e578cc-b067-0410-9529-a28e5a6d5a41
  • Loading branch information
nahf committed Jun 14, 2016
1 parent a8b5346 commit ce3c607
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ public void testSetAccessPolicy(Node node, String version)
log.info("clear the AccessPolicy");
long serialVersion = smd.getSerialVersion().longValue();
boolean success = callAdapterCN.setAccessPolicy(null, changeableObject,
new AccessPolicy(), serialVersion);
AccessUtil.createSingleRuleAccessPolicy(new String[]{smd.getRightsHolder().getValue()},
new Permission[]{Permission.READ}), serialVersion);

// ensure blank policy with isAuthorized(), get()
try {
Expand Down

0 comments on commit ce3c607

Please sign in to comment.