-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cli-sessions] Implement tests for serial-console model,
update tests for ssh-server model
- Loading branch information
1 parent
1cafc7d
commit 9e2bdcf
Showing
4 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/sonic-yang-models/tests/yang_model_tests/tests/serial_console.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"SERIAL_CONSOLE": { | ||
"desc": "SERIAL_CONSOLE configuration in the Config DB table." | ||
}, | ||
"SERIAL_CONSOLE_INVALID_INACTIVITY_TIMEOUT": { | ||
"desc": "SERIAL_CONSOLE attribute 'inactivity_timeout' set to invalid value (out of allowed range of [0, 35000] minutes).", | ||
"eStr": "does not satisfy the constraint \"0..35000\"" | ||
}, | ||
"SERIAL_CONSOLE_INVALID_SYSRQ" : { | ||
"desc": "SERIAL_CONSOLE attribute 'sysrq' set to invalid value", | ||
"eStr": "Invalid value" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/sonic-yang-models/tests/yang_model_tests/tests_config/serial_console.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"SERIAL_CONSOLE": { | ||
"sonic-serial-console:sonic-serial-console": { | ||
"sonic-serial-console:SERIAL_CONSOLE": { | ||
"POLICIES": { | ||
"inactivity_timeout": 900, | ||
"sysrq_capabilities": "disabled" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"SERIAL_CONSOLE_INVALID_INACTIVITY_TIMEOUT": { | ||
"sonic-serial-console:sonic-serial-console": { | ||
"sonic-serial-console:SERIAL_CONSOLE": { | ||
"POLICIES": { | ||
"inactivity_timeout": -500 | ||
} | ||
} | ||
} | ||
}, | ||
"SERIAL_CONSOLE_INVALID_SYSRQ" : { | ||
"sonic-serial-console:sonic-serial-console": { | ||
"sonic-serial-console:SERIAL_CONSOLE": { | ||
"POLICIES": { | ||
"sysrq_capabilities": "negative" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters