Skip to content

Commit 424ecc0

Browse files
committed
[#3677] Removed duplicate function
modified: mysql_tests.sh.in
1 parent 3eb5460 commit 424ecc0

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

src/bin/admin/tests/mysql_tests.sh.in

-39
Original file line numberDiff line numberDiff line change
@@ -3609,45 +3609,6 @@ mysql_remove_control_socket_parameters_test() {
36093609
test_finish 0
36103610
}
36113611

3612-
# Verifies that client_class to client_classes migrates
3613-
# single text entries to JSON list correctly
3614-
mysql_migrate_client_class_test() {
3615-
test_start "mysql.migrate_client_class_test"
3616-
3617-
# Let's wipe the whole database
3618-
mysql_wipe
3619-
3620-
# We need to create an older database with lease data so we can
3621-
# verify the upgrade mechanisms which prepopulate the lease stat
3622-
# tables.
3623-
#
3624-
# Initialize database to schema 1.0.
3625-
mysql -u"${db_user}" -p"${db_password}" "${db_name}" < "@abs_top_srcdir@/src/bin/admin/tests/dhcpdb_create_1.0.mysql"
3626-
3627-
# Now upgrade to schema 4.0, this has lease_state in it
3628-
mysql_upgrade_schema_to_version 26.0
3629-
3630-
# Now we need insert some leases to "migrate" for both v4 and v6
3631-
qry=\
3632-
"set @disable_audit 1;\
3633-
insert into dhcp4_shared_network (name, client_classes) values ('aaa', 'abc');\
3634-
insert into dhcp4_shared_network (name, client_classes) values ('bbb', '');\
3635-
insert into dhcp4_shared_network (name) values ('ccc');\
3636-
set @disable_audit 0;\
3637-
run_statement "insert v4 networks" "$qry"
3638-
3639-
# Let's upgrade it to the latest version.
3640-
run_command \
3641-
"${kea_admin}" db-upgrade mysql -u "${db_user}" -p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}"
3642-
3643-
qry="select client_classes from dhcp4_shared_network where name = 'aaa' and client_classes = '[ \"abc\" ]';
3644-
run_statement "#4.1" "$qry" 1
3645-
3646-
mysql_wipe
3647-
3648-
test_finish 0
3649-
}
3650-
36513612
# Verifies that client_class to client_classes migrates
36523613
# single text entries to JSON list correctly
36533614
mysql_migrate_client_class_test() {

0 commit comments

Comments
 (0)