Description
Currently, Export REST API returns partial matching results also even if polResource param is provided.
Use Case :
1) Create a ranger hdfs policy with resource path /tmp/abcdefg
2) Call REST API to export policy for resource path: /tmp/abcd
http://localhost:6080/service/plugins/policies/exportJson?serviceName=source_hadoop&polResource=/tmp/abcd&resource:path=/tmp/abcd&serviceType=hdfs&resourceMatchScope=self_or_ancestor"
ER: REST call should not return policy for resource /tmp/abcdefg
AR: REST call is returning policy for resource /tmp/abcdefg