Skip to content

Commit fc44000

Browse files
committed
Fixed UT bugs and YANG model bugs revealed by UTs
1 parent 4b512d0 commit fc44000

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/sonic-yang-models/tests/yang_model_tests/tests/stormond.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
},
1313
"STORMOND_POLLING_INTVL_BAD_LEN_MAX": {
1414
"desc": "Configure an invalid daemon polling interval: out of range value",
15-
"eStrKey" : "Pattern"
15+
"eStrKey" : "InvalidValue"
1616
},
1717
"STORMOND_SYNC_INTVL_BAD_LEN_MAX": {
1818
"desc": "Configure an invalid fsstats file sync interval: out of range value",
19-
"eStrKey" : "Pattern"
19+
"eStrKey" : "InvalidValue"
2020
}
2121
}

src/sonic-yang-models/tests/yang_model_tests/tests_config/stormond.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sonic-stormond-config:sonic-stormond-config": {
1515
"sonic-stormond-config:STORMOND_CONFIG": {
1616
"INTERVALS":{
17-
"daemon_polling_interval" : "",
17+
"daemon_polling_interval" : "-1",
1818
"fsstats_sync_interval" : "86400"
1919

2020
}
@@ -26,7 +26,7 @@
2626
"sonic-stormond-config:STORMOND_CONFIG": {
2727
"INTERVALS":{
2828
"daemon_polling_interval" : "3600",
29-
"fsstats_sync_interval" : ""
29+
"fsstats_sync_interval" : "five_thousand_two_hundred_seconds"
3030

3131
}
3232
}

src/sonic-yang-models/yang-models/sonic-stormond-config.yang

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ module sonic-stormond-config{
2222
leaf daemon_polling_interval {
2323
description "Polling inerval for Storage Monitoring Daemon in STORMOND_CONFIG table";
2424
type string {
25-
length 1..32;
25+
length 1..86400;
2626
}
2727
}
2828

2929
leaf fsstats_sync_interval {
3030
description "FSSTATS JSON file syncing interval for the Storage Monitoring Daemon in STORMOND_CONFIG table";
3131
type string {
32-
length 1..32;
32+
length 1..604800;
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)