MXS-1949: Add test case
Added a test case that verifies the bug is fixed.
This commit is contained in:
@ -946,6 +946,10 @@ add_test_executable(mxs1926_killed_server.cpp mxs1926_killed_server mxs1926_kill
|
|||||||
# https://jira.mariadb.org/browse/MXS-1932
|
# https://jira.mariadb.org/browse/MXS-1932
|
||||||
add_test_executable(mxs1932_hidden_cnf.cpp mxs1932_hidden_cnf replication LABELS REPL_BACKEND)
|
add_test_executable(mxs1932_hidden_cnf.cpp mxs1932_hidden_cnf replication LABELS REPL_BACKEND)
|
||||||
|
|
||||||
|
# MXS-1949: Warning for user load failure logged even when service has no users
|
||||||
|
# https://jira.mariadb.org/browse/MXS-1949
|
||||||
|
add_test_executable(mxs1949_warn_user_injection.cpp mxs1949_warn_user_injection avro LABELS REPL_BACKEND)
|
||||||
|
|
||||||
# MXS-1958: Users with insert-only privileges don't work
|
# MXS-1958: Users with insert-only privileges don't work
|
||||||
# https://jira.mariadb.org/browse/MXS-1958
|
# https://jira.mariadb.org/browse/MXS-1958
|
||||||
add_test_executable(mxs1958_insert_priv.cpp mxs1958_insert_priv replication LABELS REPL_BACKEND)
|
add_test_executable(mxs1958_insert_priv.cpp mxs1958_insert_priv replication LABELS REPL_BACKEND)
|
||||||
|
|||||||
15
maxscale-system-test/mxs1949_warn_user_injection.cpp
Normal file
15
maxscale-system-test/mxs1949_warn_user_injection.cpp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* MXS-1949: Warning for user load failure logged even when service has no users
|
||||||
|
*
|
||||||
|
* Check that the message is not logged when services have no servers and
|
||||||
|
* 'inject_service_user' is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "testconnections.h"
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
TestConnections test(argc, argv);
|
||||||
|
test.check_log_err(0, " No users were loaded but 'inject_service_user' is enabled", false);
|
||||||
|
return test.global_result;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user