You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "djordje-mijatovic (via GitHub)" <gi...@apache.org> on 2023/02/23 17:11:50 UTC

[GitHub] [ranger] djordje-mijatovic commented on pull request #218: Hdds 6986

djordje-mijatovic commented on PR #218:
URL: https://github.com/apache/ranger/pull/218#issuecomment-1442137769

   We have added the json and xml files in order to have the Ranger configured differently in the test envireoument. For example, in the file ozone_test.json we have some preconfigured policies needed for the tests like this one for example:
   
   ```
   "service": "test",
   "name": "Snapshot",
   "policyType": 0,
   "policyPriority": 0,
   "description": "Policy for user Snapshot",
   "isAuditEnabled": true,
   "resources": {
   	"volume": {
   		"values": [
   			"volume"
   		],
   		"isExcludes": false,
   		"isRecursive": false
   	},
   	"bucket": {
   		"values": [
   			"bucket"
   		],
   		"isExcludes": false,
   		"isRecursive": false
   	},
   	"key": {
   		"values": [
   			".snapshot/snapshotUser/*"
   		],
   		"isExcludes": false,
   		"isRecursive": true
   	}
   }
   ```
   		
   When we write more tests in the future it might be possible we will need more policies to be configured and this is the right place to do it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org