-
Notifications
You must be signed in to change notification settings - Fork 661
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[db_migrator] Add migration of FLEX_COUNTER_DELAY_STATUS during 1911-…
…>2211 upgrade + fast-reboot. Add UT. Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com>
- Loading branch information
1 parent
984983e
commit 5f20cff
Showing
5 changed files
with
96 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
tests/db_migrator_input/config_db/cross_branch_upgrade_to_4_0_1_expected.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,19 @@ | ||
{ | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_4_0_6" | ||
}, | ||
"FLEX_COUNTER_TABLE|ACL": { | ||
"FLEX_COUNTER_STATUS": "true", | ||
"FLEX_COUNTER_DELAY_STATUS": "true", | ||
"POLL_INTERVAL": "10000" | ||
}, | ||
"FLEX_COUNTER_TABLE|QUEUE": { | ||
"FLEX_COUNTER_STATUS": "true", | ||
"FLEX_COUNTER_DELAY_STATUS": "true", | ||
"POLL_INTERVAL": "10000" | ||
}, | ||
"FLEX_COUNTER_TABLE|PG_WATERMARK": { | ||
"FLEX_COUNTER_STATUS": "false", | ||
"FLEX_COUNTER_DELAY_STATUS": "true" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/db_migrator_input/config_db/cross_branch_upgrade_to_4_0_1_input.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,18 @@ | ||
{ | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_1_0_1" | ||
}, | ||
"FLEX_COUNTER_TABLE|ACL": { | ||
"FLEX_COUNTER_STATUS": "true", | ||
"FLEX_COUNTER_DELAY_STATUS": "true", | ||
"POLL_INTERVAL": "10000" | ||
}, | ||
"FLEX_COUNTER_TABLE|QUEUE": { | ||
"FLEX_COUNTER_STATUS": "true", | ||
"FLEX_COUNTER_DELAY_STATUS": "false", | ||
"POLL_INTERVAL": "10000" | ||
}, | ||
"FLEX_COUNTER_TABLE|PG_WATERMARK": { | ||
"FLEX_COUNTER_STATUS": "false" | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"FAST_REBOOT|system": { | ||
"enable": "true" | ||
} | ||
} |
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