mirror of
https://github.com/openkmip/pykmip
synced 2025-12-11 05:43:14 +00:00
Rename the 'default' policy section to 'preset'
This change tweaks the format of operation policy files, renaming the 'default' section of each policy to 'preset'. This reinforces the idea that this section of the policy is used only when group- based access control is disabled. It also removes any ambiguity between this section of the policy and the actual 'default' policy built into the server.
This commit is contained in:
@@ -2047,7 +2047,7 @@ class TestKmipEngine(testtools.TestCase):
|
||||
e = engine.KmipEngine()
|
||||
e._operation_policies = {
|
||||
'test_policy': {
|
||||
'default': {
|
||||
'preset': {
|
||||
enums.ObjectType.SYMMETRIC_KEY: {
|
||||
enums.Operation.GET: enums.Policy.ALLOW_OWNER
|
||||
}
|
||||
@@ -2072,7 +2072,7 @@ class TestKmipEngine(testtools.TestCase):
|
||||
e = engine.KmipEngine()
|
||||
e._operation_policies = {
|
||||
'test_policy': {
|
||||
'default': {
|
||||
'preset': {
|
||||
enums.ObjectType.SYMMETRIC_KEY: {
|
||||
enums.Operation.GET: enums.Policy.ALLOW_OWNER
|
||||
}
|
||||
@@ -2105,7 +2105,7 @@ class TestKmipEngine(testtools.TestCase):
|
||||
e._logger = mock.MagicMock()
|
||||
e._operation_policies = {
|
||||
'test_policy': {
|
||||
'default': {
|
||||
'preset': {
|
||||
enums.ObjectType.SYMMETRIC_KEY: {
|
||||
enums.Operation.GET: enums.Policy.ALLOW_OWNER
|
||||
}
|
||||
@@ -2136,7 +2136,7 @@ class TestKmipEngine(testtools.TestCase):
|
||||
e._logger = mock.MagicMock()
|
||||
e._operation_policies = {
|
||||
'test_policy': {
|
||||
'default': {
|
||||
'preset': {
|
||||
enums.ObjectType.SYMMETRIC_KEY: {
|
||||
enums.Operation.GET: enums.Policy.ALLOW_OWNER
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user