You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
6.9 KiB

1 year ago
---
test case: "#1.1 successfully read 'bytes'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 2 0 0 83760 111280259 741237 0 0 1 0 0 0
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,bytes]'
out:
result: '1395994481'
return: 'SYSINFO_RET_OK'
---
test case: "#1.2 successfully read 'packets'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 2 0 0 83760 111280259 741237 0 0 1 0 0 0
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,packets]'
out:
result: '5343265'
return: 'SYSINFO_RET_OK'
---
test case: "#1.3 successfully read 'errors'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 2 0 0 0 0 83760 111280259 741237 1 0 0 0 0 0
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,errors]'
out:
result: '2'
return: 'SYSINFO_RET_OK'
---
test case: "#1.4 successfully read 'dropped'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 2 0 0 0 83760 111280259 741237 0 1 0 0 0 0
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,dropped]'
out:
result: '2'
return: 'SYSINFO_RET_OK'
---
test case: "#1.5 successfully read 'overruns'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 2 0 0 83760 111280259 741237 0 0 1 0 0 0
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,overruns]'
out:
result: '2'
return: 'SYSINFO_RET_OK'
---
test case: "#1.6 successfully read 'frame'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 0 2 0 83760 111280259 741237 0 0 0 0 0 1
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,frame]'
out:
result: '2'
return: 'SYSINFO_RET_OK'
---
test case: "#1.7 successfully read 'compressed'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 0 0 2 83760 111280259 741237 0 0 0 0 0 1
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,compressed]'
out:
result: '2'
return: 'SYSINFO_RET_OK'
---
test case: "#1.8 successfully read 'multicast'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 0 0 2 83760 111280259 741237 0 0 0 0 0 1
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,multicast]'
out:
result: '83760'
return: 'SYSINFO_RET_OK'
---
test case: "#2.1 unsuccessfully read 'Too many parameters.'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 2 0 0 83760 111280259 741237 0 0 1 0 0 0
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,overruns,XXX]'
out:
result: 'Too many parameters.'
return: 'SYSINFO_RET_FAIL'
---
test case: "#2.2 unsuccessfully read 'Cannot find information'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 2 0 0 83760 111280259 741237 0 0 1 0 0 0
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[enoX,overruns]'
out:
result: 'Cannot find information for this network interface in /proc/net/dev.'
return: 'SYSINFO_RET_FAIL'
---
test case: "#2.3 unsuccessfully read 'Invalid second parameter.'"
files:
/proc/net/dev: |
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
eno1: 1395994481 5343265 0 0 2 0 0 83760 111280259 741237 0 0 1 0 0 0
lo: 6410206 43792 0 0 0 0 0 0 6410206 43792 0 0 0 0 0 0
in:
param: 'net.if.in[eno1,XXX]'
out:
result: 'Invalid second parameter.'
return: 'SYSINFO_RET_FAIL'