tests: remove patching up of az id column (#8968)

This was required since the compat tests used a snapshot generated from
a version of neon local which didn't contain the availability_zone_id
column.
This commit is contained in:
Vlad Lazar
2024-09-25 17:22:32 +01:00
committed by GitHub
parent 6f2333f52b
commit 04f32b9526

View File

@@ -642,9 +642,6 @@ class NeonEnvBuilder:
patch_script = ""
for ps in self.env.pageservers:
patch_script += f"UPDATE nodes SET listen_http_port={ps.service_port.http}, listen_pg_port={ps.service_port.pg} WHERE node_id = '{ps.id}';"
# This is a temporary to get the backward compat test happy
# since the compat snapshot was generated with an older version of neon local
patch_script += f"UPDATE nodes SET availability_zone_id='{ps.az_id}' WHERE node_id = '{ps.id}' AND availability_zone_id IS NULL;"
patch_script_path.write_text(patch_script)
# Update the config with info about tenants and timelines