Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manager: Add scenarios to the config/restricted test. #81

Merged
merged 1 commit into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/manager/action-events-response/test-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
testinfo:
summary: 'Test the presence and absence of a response from the Events manager action'
skip: 'Lua test that needs to be updated'
description: |
"This test ensure asterisk either responds or does not respond to
various values of the EventMaks parameter of the Events manager
Expand Down
1 change: 1 addition & 0 deletions tests/manager/authlimit/test-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
testinfo:
summary: 'Test the authlimit manager config option.'
skip: 'Lua test that needs to be updated'
description: |
"This test ensures that the manager respects the authlimit config
option."
Expand Down
1 change: 1 addition & 0 deletions tests/manager/authtimeout/test-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
testinfo:
summary: 'Test the authtimeout manager config option.'
skip: 'Lua test that needs to be updated'
description: |
"This test ensures that the manager respects the authtimeout config
option."
Expand Down
31 changes: 26 additions & 5 deletions tests/manager/config/restricted/test-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,34 @@ object-config:
reactor-timeout: 15
testfile: '/tmp/test.conf'
ami-config:
- ### Create a new config file outside the asterisk config directory
- ### Create a config file outside the asterisk config directory
message:
Action: 'CreateConfig'
Filename: '/tmp/test.conf'
expected:
Response: 'Error'
Message: 'File requires escalated privileges'
- ### Create a config file outside the asterisk config directory
message:
Action: 'CreateConfig'
Filename: '../test.conf'
expected:
Response: 'Error'
Message: 'File requires escalated privileges'
- ### Create a config file outside the asterisk config directory
message:
Action: 'CreateConfig'
Filename: '/etc/asterisk/../test.conf'
expected:
Response: 'Error'
Message: 'File requires escalated privileges'
- ### Retrieve a config file outside the asterisk config directory
message:
Action: 'GetConfig'
Filename: '/tmp/test.conf'
expected:
Response: 'Error'
Message: 'File requires escalated priveledges'
Message: 'File requires escalated privileges'
- ### Update a config file outside the asterisk config directory
message:
Action: 'UpdateConfig'
Expand All @@ -41,7 +62,7 @@ object-config:
Cat-000000: 'Cat1'
expected:
Response: 'Error'
Message: 'File requires escalated priveledges'
Message: 'File requires escalated privileges'
- ### Update from a config file outside the asterisk config directory
message:
Action: 'UpdateConfig'
Expand All @@ -52,7 +73,7 @@ object-config:
Cat-000000: 'Cat1'
expected:
Response: 'Error'
Message: 'File requires escalated priveledges'
Message: 'File requires escalated privileges'
- ### Update to a config file outside the asterisk config directory
message:
Action: 'UpdateConfig'
Expand All @@ -63,6 +84,6 @@ object-config:
Cat-000000: 'Cat1'
expected:
Response: 'Error'
Message: 'File requires escalated priveledges'
Message: 'File requires escalated privileges'


Loading