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.

173 lines
4.0 KiB

---
test case: (SSH) Both interface and key parameter are present
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: 127.0.0.1:10051
key: ssh.run[clear,127.0.0.1]
out:
return: SUCCEED
---
test case: (SSH) Only interface is present
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: 127.0.0.1:10051
key: ssh.run[clear]
out:
return: SUCCEED
---
test case: (SSH) Only key parameter is present
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1]
out:
return: SUCCEED
---
test case: (SSH) Both interface and key parameter are missing
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear]
out:
return: NOTSUPPORTED
---
test case: (SSH) Has one additional parameter with one value
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,KexAlgorithms=diffie-hellman-group1-sha1]
out:
return: SUCCEED
---
test case: (SSH) Has one additional parameter with many values
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"KexAlgorithms=diffie-hellman-group14-sha1,diffie-hellman-group1-sha1"]
out:
return: SUCCEED
---
test case: (SSH) Has many additional parameters with many values (I)
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"KexAlgorithms=diffie-hellman-group14-sha1,diffie-hellman-group1-sha1;HostkeyAlgorithms=ssh-rsa,ssh-dss,ecdh-sha2-nistp256"]
out:
return: SUCCEED
---
test case: (SSH) Has many additional parameters with many values (II)
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"Ciphers=aes128-cbc;MACs=hmac-sha1;KexAlgorithms=diffie-hellman-group14-sha1"]
out:
return: SUCCEED
---
test case: (SSH) Has empty additional option key
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"KexAlgorithms="]
out:
return: NOTSUPPORTED
---
test case: (SSH) Has only additional option key
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,KexAlgorithms]
out:
return: NOTSUPPORTED
---
test case: (SSH) Has unsupported additional option key
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"Unsupported=unsupported"]
out:
return: NOTSUPPORTED
---
test case: (SSH) Has unsupported additional option KexAlgorithms value
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"KexAlgorithms=unsupported_value"]
out:
return: NOTSUPPORTED
---
test case: (SSH) Has unsupported additional option HostkeyAlgorithms value
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"HostkeyAlgorithms=unsupported_value"]
out:
return: NOTSUPPORTED
---
test case: (SSH) Has unsupported additional option Ciphers value
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"Ciphers=unsupported_value"]
out:
return: NOTSUPPORTED
---
test case: (SSH) Has unsupported additional option MACs value
in:
type: ZBX_TEST_GET_VALUE_SSH
item:
interface: ""
key: ssh.run[clear,127.0.0.1,,,"MACs=unsupported_value"]
out:
return: NOTSUPPORTED
---
test case: (TELNET) Both interface and key parameter are present
in:
type: ZBX_TEST_GET_VALUE_TELNET
item:
interface: 127.0.0.1:10051
key: telnet.run[clear,127.0.0.1]
out:
return: SUCCEED
---
test case: (TELNET) Only interface is present
in:
type: ZBX_TEST_GET_VALUE_TELNET
item:
interface: 127.0.0.1:10051
key: telnet.run[clear]
out:
return: SUCCEED
---
test case: (TELNET) Only key parameter is present
in:
type: ZBX_TEST_GET_VALUE_TELNET
item:
interface: ""
key: telnet.run[clear,127.0.0.1]
out:
return: SUCCEED
---
test case: (TELNET) Both interface and key parameter are missing
in:
type: ZBX_TEST_GET_VALUE_TELNET
item:
interface: ""
key: telnet.run[clear]
out:
return: NOTSUPPORTED
...