Add job to install ODL via ansible-opendaylight
[releng/builder.git] / jjb / packaging / include-raw-test-karaf.sh
1 #!/usr/bin/expect
2 # This script starts the karaf shell and sends the password for SSH auth.
3 # Further tests in karaf shell can be done here
4
5 # Default password
6 set password "karaf"
7 # Default prompt
8 set prompt "opendaylight-user@root>"
9
10 # OpenDaylight service requires some time after it starts for a successful
11 # SSH connection
12 sleep 10
13
14 # SSH into Karaf shell
15 spawn ssh -p 8101 -o StrictHostKeyChecking=no karaf@127.0.0.1
16 expect "Password: "
17 send "$password\r"
18
19 # Verify expected features
20 expect "$prompt"
21 send "feature:list | grep netvirt-openstack\r"
22 expect "$prompt"
23
24 # TODO Add further tests here