diff options
Diffstat (limited to 'src/bin/admin/tests/pgsql_tests.sh.in')
-rw-r--r-- | src/bin/admin/tests/pgsql_tests.sh.in | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/bin/admin/tests/pgsql_tests.sh.in b/src/bin/admin/tests/pgsql_tests.sh.in index 08d6b0deb0..32d37e6ba7 100644 --- a/src/bin/admin/tests/pgsql_tests.sh.in +++ b/src/bin/admin/tests/pgsql_tests.sh.in @@ -869,11 +869,26 @@ pgsql_upgrade_17_to_18_test() { } pgsql_upgrade_18_to_19_test() { - # The function, pgsql_ddns_conflict_resolution_mode_update_test, is called explicitly - # and tests conversion of ddns-use-conflict-resolution to ddns-conflict-resolution-mode. + # The function, pgsql_ddns_conflict_resolution_mode_update_test, + # is called explicitly and tests conversion of + # ddns-use-conflict-resolution to ddns-conflict-resolution-mode. # For now this function only verifies version number. version=$("${kea_admin}" db-version pgsql -u "${db_user}" -p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}") assert_str_eq "19.0" "${version}" 'Expected kea-admin to return %s, returned value was %s' + + # Verify that lease6_relay_id lease_addr is binary. + qry="insert into lease6_relay_id(relay_id,lease_addr) values('18219',cast('3001::99' as inet));" + run_statement "lease6_relay_id_insert" "$qry" + + qry="select host(lease_addr) from lease6_relay_id where relay_id = '18219';" + run_statement "lease6_relay_id_get" "$qry" "3001::99" + + # Verify that lease6_remote_id lease_addr is binary. + qry="insert into lease6_remote_id(remote_id,lease_addr) values('18219',cast('3001::99' as inet));" + run_statement "lease6_remote_id_insert" "$qry" + + qry="select host(lease_addr) from lease6_remote_id where remote_id = '18219';" + run_statement "lease6_remote_id_get" "$qry" "3001::99" } pgsql_upgrade_test() { |