Drop created tables in tests
If a table is created in a test, it should also drop the table.
This commit is contained in:
@ -209,5 +209,9 @@ int main(int argc, char* argv[])
|
|||||||
run(test);
|
run(test);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test.maxscales->connect();
|
||||||
|
drop(test);
|
||||||
|
test.maxscales->disconnect();
|
||||||
|
|
||||||
return test.global_result;
|
return test.global_result;
|
||||||
}
|
}
|
||||||
|
@ -190,5 +190,9 @@ int main(int argc, char* argv[])
|
|||||||
run(test);
|
run(test);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test.maxscales->connect();
|
||||||
|
drop(test);
|
||||||
|
test.maxscales->disconnect();
|
||||||
|
|
||||||
return test.global_result;
|
return test.global_result;
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,10 @@ int main(int argc, char *argv[])
|
|||||||
Test->repl->close_connections();
|
Test->repl->close_connections();
|
||||||
Test->maxscales->close_maxscale_connections(0);
|
Test->maxscales->close_maxscale_connections(0);
|
||||||
|
|
||||||
|
Test->repl->connect();
|
||||||
|
Test->try_query(Test->repl->nodes[0], "DROP TABLE long_blob_table");
|
||||||
|
Test->repl->disconnect();
|
||||||
|
|
||||||
int rval = Test->global_result;
|
int rval = Test->global_result;
|
||||||
delete Test;
|
delete Test;
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -100,5 +100,9 @@ int main(int argc, char* argv[])
|
|||||||
test.assert(false, "Could not copy masking file to MaxScale node.");
|
test.assert(false, "Could not copy masking file to MaxScale node.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test.maxscales->connect();
|
||||||
|
test.try_query(test.maxscales->conn_rwsplit[0], "DROP TABLE MXS_1719");
|
||||||
|
test.maxscales->disconnect();
|
||||||
|
|
||||||
return test.global_result;
|
return test.global_result;
|
||||||
}
|
}
|
||||||
|
@ -229,5 +229,9 @@ int main(int argc, char *argv[])
|
|||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test.repl->connect();
|
||||||
|
execute_query(test.repl->nodes[0], "DROP TABLE test.throttle");
|
||||||
|
test.repl->disconnect();
|
||||||
|
|
||||||
return test.global_result;
|
return test.global_result;
|
||||||
}
|
}
|
||||||
|
@ -82,6 +82,11 @@ int main(int argc, char *argv[])
|
|||||||
test->tprintf("Cecking if Maxscale alive\n");
|
test->tprintf("Cecking if Maxscale alive\n");
|
||||||
test->check_maxscale_alive(0);
|
test->check_maxscale_alive(0);
|
||||||
int rval = test->global_result;
|
int rval = test->global_result;
|
||||||
|
|
||||||
|
test->maxscales->connect();
|
||||||
|
execute_query(test->maxscales->conn_rwsplit[0], "DROP TABLE test.dump");
|
||||||
|
test->maxscales->disconnect();
|
||||||
|
|
||||||
delete test;
|
delete test;
|
||||||
unlink(filename);
|
unlink(filename);
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -65,5 +65,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
test.maxscales->disconnect();
|
test.maxscales->disconnect();
|
||||||
|
|
||||||
|
test.repl->connect();
|
||||||
|
test.try_query(test.repl->nodes[0], "DROP TABLE long_blob_table");
|
||||||
|
test.repl->disconnect();
|
||||||
|
|
||||||
return test.global_result;
|
return test.global_result;
|
||||||
}
|
}
|
||||||
|
@ -633,5 +633,9 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
run(test);
|
run(test);
|
||||||
|
|
||||||
|
test.repl->connect();
|
||||||
|
execute_query(test.repl->nodes[0], "DROP TABLE test.t");
|
||||||
|
test.repl->disconnect();
|
||||||
|
|
||||||
return test.global_result;
|
return test.global_result;
|
||||||
}
|
}
|
||||||
|
@ -273,6 +273,10 @@ int main(int argc, char *argv[])
|
|||||||
/** More complex tests */
|
/** More complex tests */
|
||||||
test_complex(Test);
|
test_complex(Test);
|
||||||
|
|
||||||
|
Test->repl->connect();
|
||||||
|
execute_query(Test->repl->nodes[0], "DROP TABLE test.readonly");
|
||||||
|
Test->repl->disconnect();
|
||||||
|
|
||||||
/** Clean up test environment */
|
/** Clean up test environment */
|
||||||
Test->repl->flush_hosts();
|
Test->repl->flush_hosts();
|
||||||
int rval = Test->global_result;
|
int rval = Test->global_result;
|
||||||
|
Reference in New Issue
Block a user