-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[202111][db_migrator] Add migration of FLEX_COUNTER_DELAY_STATUS duri…
…ng 1911->master upgrade + fast-reboot. Add UT. Signed-off-by: vadymhlushko-mlnx <[email protected]>
- Loading branch information
1 parent
77bf177
commit d4ade57
Showing
6 changed files
with
105 additions
and
2 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_2_0_5_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_2_0_5" | ||
}, | ||
"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_2_0_5_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 |
---|---|---|
|
@@ -2043,6 +2043,6 @@ | |
"admin_status": "up" | ||
}, | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_2_0_4" | ||
"VERSION": "version_2_0_5" | ||
} | ||
} |
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