Skip to content

Commit f19dd58

Browse files
committed
Add example AMI configuration for functional test
1 parent d921749 commit f19dd58

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ php:
33
- 5.3
44
- 5.6
55
- hhvm
6+
env:
7+
- LOGIN='username:password@localhost'
68
install:
9+
- bash -c '[ "$(id -un)" == "root" ] && apt-get update && apt-get install -y sudo || true'
710
- sudo apt-get install -y asterisk
8-
- export LOGIN='user:pass@localhost'
11+
- sudo cp tests/username.conf /etc/asterisk/manager.d/username.conf
12+
- sudo /etc/init.d/asterisk restart
913
- composer install --prefer-source --no-interaction
1014
script:
1115
- phpunit --coverage-text

tests/username.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
; demo config for functional test
2+
; should be placed in: /etc/asterisk/manager.d/username.conf
3+
[username]
4+
secret = password
5+
read = system,call,log,verbose,command,agent,user,originate
6+
write = system,call,log,verbose,command,agent,user,originate

0 commit comments

Comments
 (0)