Change incorrect default policy role
Change-Id: I194164425416e5905e2234e76014e32f276fde76
This commit is contained in:
parent
8e84984c74
commit
dc9e276f10
@ -18,7 +18,7 @@ from oslo_policy import policy
|
||||
agent_policies = [
|
||||
policy.DocumentedRuleDefault(
|
||||
name='events_api:agent_required',
|
||||
check_str='role:monasca or role:admin',
|
||||
check_str='role:monasca-user or role:admin',
|
||||
description='Send events to api',
|
||||
operations=[{'path': '/v1.0/events', 'method': 'POST'}]
|
||||
)
|
||||
|
@ -49,7 +49,7 @@ class TestEventsApi(base.BaseApiTestCase):
|
||||
method='POST',
|
||||
headers={
|
||||
'Content-Type': 'application/json',
|
||||
'X_ROLES': 'monasca'
|
||||
'X_ROLES': 'monasca-user'
|
||||
},
|
||||
body=body
|
||||
)
|
||||
@ -69,7 +69,7 @@ class TestEventsApi(base.BaseApiTestCase):
|
||||
method='POST',
|
||||
headers={
|
||||
'Content-Type': 'application/json',
|
||||
'X_ROLES': 'monasca'
|
||||
'X_ROLES': 'monasca-user'
|
||||
},
|
||||
body=body
|
||||
)
|
||||
@ -83,7 +83,7 @@ class TestEventsApi(base.BaseApiTestCase):
|
||||
method='POST',
|
||||
headers={
|
||||
'Content-Type': 'application/json',
|
||||
'X_ROLES': 'monasca'
|
||||
'X_ROLES': 'monasca-user'
|
||||
},
|
||||
body=''
|
||||
)
|
||||
@ -104,7 +104,7 @@ class TestEventsApi(base.BaseApiTestCase):
|
||||
method='POST',
|
||||
headers={
|
||||
'Content-Type': 'application/json',
|
||||
'X_ROLES': 'monasca'
|
||||
'X_ROLES': 'monasca-user'
|
||||
},
|
||||
body=json.dumps(body)
|
||||
)
|
||||
@ -119,7 +119,7 @@ class TestEventsApi(base.BaseApiTestCase):
|
||||
method='POST',
|
||||
headers={
|
||||
'Content-Type': 'application/json',
|
||||
'X_ROLES': 'monasca'
|
||||
'X_ROLES': 'monasca-user'
|
||||
},
|
||||
body=json.dumps(body)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user