summaryrefslogtreecommitdiffstats
path: root/src/kadmin/v4server/unit-test/v4server.1/usage.exp
blob: 4d292067a1db994c3d852261b5ddca010f532e70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
load_lib "helpers.exp"

set timeout 10

server_start "U.1: -h" "-h" 0 {
	-re {Usage: .*} {}
} {
	eof {}
}
server_exit "U.1: -h" 255

server_start "U.4: -n" "-n" 1 {
	"Enter KDC database master key:" {
		myfail "unexpected password prompt"
	}
	"KADM Server starting in the OVSEC_KADM mode" {}
}

server_exit "U.4: -n" -1

server_start "U.5: no -n" "" 1 {
	"KADM Server starting in the OVSEC_KADM mode" {}
} {
	"Enter KDC database master key:" { send "mrroot\n" }
}
server_exit "U.5: no -n" -1