mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[#1242] Updated mysql admin unittest
This commit is contained in:
@@ -258,7 +258,7 @@ mysql_upgrade_test() {
|
||||
|
||||
assert_str_eq "1.0" ${version} "Expected kea-admin to return %s, returned value was %s"
|
||||
|
||||
# Ok, we have a 1.0 database. Let's upgrade it to 9.1
|
||||
# Ok, we have a 1.0 database. Let's upgrade it to 9.2
|
||||
${keaadmin} db-upgrade mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir
|
||||
ERRCODE=$?
|
||||
|
||||
@@ -729,7 +729,7 @@ EOF
|
||||
qry="select is_array from dhcp6_option_def"
|
||||
run_statement "dhcp6_option_def verify is_array column" "$qry"
|
||||
|
||||
# Schema upgrade from 8.2 to 9.1
|
||||
# Schema upgrade from 8.2 to 9.2
|
||||
|
||||
# New DDNS columns.
|
||||
|
||||
@@ -749,9 +749,9 @@ EOF
|
||||
qry="select ddns_send_updates, ddns_override_no_update, ddns_override_client_update, ddns_replace_client_name, ddns_generated_prefix, ddns_qualifying_suffix from dhcp6_subnet"
|
||||
run_statement "dhcp6_subnet" "$qry"
|
||||
|
||||
# Verify upgraded schema reports version 9.1
|
||||
# Verify upgraded schema reports version 9.2
|
||||
version=$(${keaadmin} db-version mysql -u $db_user -p $db_password -n $db_name -d $db_scripts_dir)
|
||||
assert_str_eq "9.1" ${version} "Expected kea-admin to return %s, returned value was %s"
|
||||
assert_str_eq "9.2" ${version} "Expected kea-admin to return %s, returned value was %s"
|
||||
|
||||
# Let's wipe the whole database
|
||||
mysql_wipe
|
||||
|
Reference in New Issue
Block a user