Merge branch '2.3' into 2.4
This commit is contained in:
17
system-test/maxscale_process_user.cpp
Normal file
17
system-test/maxscale_process_user.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Check if Maxscale priocess is running as 'maxscale'
|
||||
*/
|
||||
|
||||
#include <maxtest/testconnections.hh>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
TestConnections test(argc, argv);
|
||||
|
||||
test.set_timeout(50);
|
||||
auto res = test.maxscales->ssh_output("ps -U maxscale -C maxscale -o user --no-headers").second;
|
||||
res = res.substr(0, strlen("maxscale"));
|
||||
test.expect(res == "maxscale", "MaxScale running as '%s' instead of 'maxscale'", res.c_str());
|
||||
|
||||
return test.global_result;
|
||||
}
|
Reference in New Issue
Block a user