Skip to content

Commit

Permalink
Added validation for extra extensions if present
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-yb committed Feb 26, 2025
1 parent 5124c2e commit 8a83839
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions migtests/tests/pg/multiple-schemas/validate
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import yb
import common
import sys

live_migration = 'false'
def main():
Expand Down Expand Up @@ -157,6 +158,12 @@ def migration_completed_checks(tgt):
expectedExtensions.remove("timetravel")
for extension in expectedExtensions:
assert extension in extensions, f"expected extension is not reported: {extension}"

# Check for extra/unexpected extensions
extra_extensions = set(extensions) - set(expectedExtensions)
if extra_extensions:
print(f"ERROR: Unexpected extensions found: {extra_extensions}")
sys.exit(1) # Exit with error status

def change_expected_values_for_live_migration():
del EXPECTED_ROW_COUNT["Mixed_Case_Table_Name_Test"]
Expand Down

0 comments on commit 8a83839

Please sign in to comment.