-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-chassis-fpc.yml
27 lines (24 loc) · 1.25 KB
/
test-chassis-fpc.yml
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
show_chassis_fpc:
- command: show chassis fpc
#Iterate through all FPC
- iterate:
xpath: //fpc
id: './slot'
tests:
- is-in: state, Online, Empty
err: 'FAILED! ERROR: FPC slot {{id_0}} state {{post["state"]}}'
info: 'PASSED! FPC slot {{id_0}} state {{post["state"]}}'
#Iterate through online FPC
- iterate:
xpath: //fpc[normalize-space(state)='Online']
id: 'slot'
tests:
- is-lt: memory-heap-utilization, 50
err: 'FAILED! FPC slot {{id_0}} heap utilization is >50% @ {{post["memory-heap-utilization"]}}'
info: 'PASSED! FPC slot {{id_0}} heap utilization is OK @ {{post["memory-heap-utilization"]}}'
- is-lt: memory-buffer-utilization, 50
err: 'FAILED! FPC slot {{id_0}} buffer utilization is >50% @ {{post["memory-buffer-utilization"]}}'
info: 'PASSED! FPC slot {{id_0}} buffer utilization is OK @ {{post["memory-buffer-utilization"]}}'
- is-lt: cpu-total, 30
err: 'FAILED! FPC slot {{id_0}} CPU utilization is 30% @ {{post["cpu-total"]}}'
info: 'PASSED! FPC slot {{id_0}} CPU utilization is OK @ {{post["cpu-total"]}}'