forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
449 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
40 changes: 40 additions & 0 deletions
40
src/sonic-yang-models/tests/yang_model_tests/tests/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,40 @@ | ||
{ | ||
"CONSOLE_DISABLED": { | ||
"desc": "Verifying CONSOLE_SWITCH configuration." | ||
}, | ||
"CONSOLE_DEFAULT_CONSOLE_MGMT": { | ||
"desc": "CONSOLE_SWITCH default value for console_mgmt enabled field.", | ||
"eStrKey": "Verify", | ||
"verify": { | ||
"xpath": "/sonic-console:sonic-console/CONSOLE_SWITCH/console_mgmt/enabled", | ||
"key": "sonic-console:enabled", | ||
"value": "no" | ||
} | ||
}, | ||
"CONSOLE_DISABLED_INCORRECT_PATTERN": { | ||
"desc": "CONSOLE_SWITCH configuration pattern failure.", | ||
"eStrKey": "Pattern" | ||
}, | ||
"CONSOLE_PORT_DEFAULT_FLOW_CONTROL": { | ||
"desc": "CONSOLE_PORT default value for flow_control field.", | ||
"eStrKey": "Verify", | ||
"verify": { | ||
"xpath": "/sonic-console:sonic-console/CONSOLE_PORT/CONSOLE_PORT_LIST[name='1']/flow_control", | ||
"key": "sonic-console:flow_control", | ||
"value": "0" | ||
} | ||
}, | ||
"CONSOLE_PORT_INVALID_NAME": { | ||
"desc": "CONSOLE_PORT invalid name failure.", | ||
"eStrKey": "InvalidValue", | ||
"eStr": ["name"] | ||
}, | ||
"CONSOLE_PORT_INVALID_BAUD": { | ||
"desc": "CONSOLE_PORT invalid baud failure.", | ||
"eStrKey": "InvalidValue", | ||
"eStr": ["baud"] | ||
}, | ||
"CONSOLE_PORT_VALID": { | ||
"desc": "Verifying CONSOLE_PORT configuration no failure." | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/sonic-yang-models/tests/yang_model_tests/tests/restapi.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,16 @@ | ||
{ | ||
"RESTAPI_TABLE_WITH_INCORRECT_CERT": { | ||
"desc": "RESTAPI TABLE_WITH_INCORRECT_CERT failure.", | ||
"eStr": ["Value", "does not satisfy the constraint"] | ||
}, | ||
"RESTAPI_TABLE_WITH_INCORRECT_CLIENT": { | ||
"desc": "RESTAPI TABLE_WITH_INCORRECT_CLIENT failure.", | ||
"eStr": ["Value", "does not satisfy the constraint"] | ||
}, | ||
"RESTAPI_TABLE_WITH_VALID_CONFIG": { | ||
"desc": "RESTAPI TABLE WITH VALID CONFIG." | ||
}, | ||
"RESTAPI_TABLE_WITH_MULTIPLE_CERTS": { | ||
"desc": "RESTAPI TABLE WITH MULTIPLE CERTS." | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
src/sonic-yang-models/tests/yang_model_tests/tests_config/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,88 @@ | ||
{ | ||
"CONSOLE_DISABLED": { | ||
"sonic-console:sonic-console": { | ||
"sonic-console:CONSOLE_SWITCH": { | ||
"sonic-console:console_mgmt": { | ||
"enabled": "no" | ||
} | ||
} | ||
} | ||
}, | ||
"CONSOLE_DEFAULT_CONSOLE_MGMT": { | ||
"sonic-console:sonic-console": { | ||
"sonic-console:CONSOLE_SWITCH": { | ||
"sonic-console:console_mgmt": { | ||
} | ||
} | ||
} | ||
}, | ||
"CONSOLE_DISABLED_INCORRECT_PATTERN": { | ||
"sonic-console:sonic-console": { | ||
"sonic-console:CONSOLE_SWITCH": { | ||
"sonic-console:console_mgmt": { | ||
"enabled": "false" | ||
} | ||
} | ||
} | ||
}, | ||
"CONSOLE_PORT_DEFAULT_FLOW_CONTROL": { | ||
"sonic-console:sonic-console": { | ||
"sonic-console:CONSOLE_PORT": { | ||
"CONSOLE_PORT_LIST": [ | ||
{ | ||
"name": "1", | ||
"baud_rate": "9600" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"CONSOLE_PORT_INVALID_NAME": { | ||
"sonic-console:sonic-console": { | ||
"sonic-console:CONSOLE_PORT": { | ||
"CONSOLE_PORT_LIST": [ | ||
{ | ||
"name": "invalid", | ||
"baud_rate": "9600" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"CONSOLE_PORT_INVALID_BAUD": { | ||
"sonic-console:sonic-console": { | ||
"sonic-console:CONSOLE_PORT": { | ||
"CONSOLE_PORT_LIST": [ | ||
{ | ||
"name": "1", | ||
"baud_rate": "invalid" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"CONSOLE_PORT_VALID": { | ||
"sonic-console:sonic-console": { | ||
"sonic-console:CONSOLE_PORT": { | ||
"CONSOLE_PORT_LIST": [ | ||
{ | ||
"name": "1", | ||
"baud_rate": "9600", | ||
"flow_control": "1", | ||
"remote_device": "remote_host_1" | ||
}, | ||
{ | ||
"name": "2", | ||
"baud_rate": "9600", | ||
"flow_control": "0", | ||
"remote_device": "remote_host_2" | ||
}, | ||
{ | ||
"name": "3", | ||
"baud_rate": "9600" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.