Skip to content

Commit

Permalink
Added ProxySQL admin queries enabling 'RESTAPI' for test 'reg_test_32…
Browse files Browse the repository at this point in the history
…23-restapi_return_codes-t'
  • Loading branch information
JavierJF committed Mar 10, 2021
1 parent de9dfa9 commit e86bca9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/tap/tests/reg_test_3223-restapi_return_codes-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ int main(int argc, char** argv) {
return -1;
}

// Enable 'RESTAPI'
MYSQL_QUERY(proxysql_admin, "SET admin-restapi_enabled='true'");
MYSQL_QUERY(proxysql_admin, "SET admin-restapi_port=6070");

MYSQL_QUERY(proxysql_admin, "LOAD ADMIN VARIABLES TO RUNTIME");

// Clean current 'restapi_routes' if any
MYSQL_QUERY(proxysql_admin, "DELETE FROM restapi_routes");

Expand Down

0 comments on commit e86bca9

Please sign in to comment.