summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/module-failure-message
blob: 51b1ef41462432471c159baa3e15b776f9c146b1 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# PRE: update
#
#  Remove all attributes in a list
#
update {
	control:Cleartext-Password := 'hello'
	reply:Filter-Id := 'filter'
}

test
if ("%{request:Module-Failure-Message[0]}" != 'test: RERROR error message') {
	update reply {
		Filter-Id += 'Fail 0'
	}
}

if ("%{request:Module-Failure-Message[1]}" != 'test: RDEBUG error message') {
	update reply {
		Filter-Id += 'Fail 1'
	}
}

if ("%{request:Module-Failure-Message[2]}" != 'test: RDEBUG2 error message') {
	update reply {
		Filter-Id += 'Fail 2'
	}
}

if ("%{request:Module-Failure-Message[3]}" != 'test: RDEBUG3 error message') {
	update reply {
		Filter-Id += 'Fail 3'
	}
}

if ("%{request:Module-Failure-Message[4]}" != 'test: RDEBUG4 error message') {
	update reply {
		Filter-Id += 'Fail 4'
	}
}