File: 6.cfg

package info (click to toggle)
trafficserver 9.2.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 53,008 kB
  • sloc: cpp: 345,484; ansic: 31,134; python: 24,200; sh: 7,271; makefile: 3,045; perl: 2,261; java: 277; pascal: 119; sql: 94; xml: 2
file content (50 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (4)
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
41
42
43
44
45
46
47
48
49
50
[test]
Description: PSI Plugin - Boundary case: include tag doesn't end

### request

[client-request]
request: {
	GET http://$(SVR_HOST):$(SVR_PORT)/ http/1.0
	Host: http://$(SVR_HOST):$(SVR_PORT)/
	User-Agent: HTTP Protocol Tester Client 1.0
	Content-Length: 0
}

### response

[server-response]
http-response: {
	HTTP/1.1 200 OK
	Date: +0
	Server: HTTP Protocol Tester 1.0
	Content-Type: text/html
	X-Psi: true
}
content-file: ./Tests/Psi/psi_files/tc6_file.txt

### verification
[output]
# As syntest can't do this, we need to visually inspect bodies... :-(
print-headers: false
print-body: true

[proxy-request]
verify-header-valid: true

[server-response]
Must-have: {
	Status == 200
	Version == HTTP/1.1
}
verify-header-valid: true

[proxy-response]
Must-have: {
	Status == 200
	Server: HTTP Protocol Tester 1.0
	Content-Type: text/html
}
verify-header-valid: true