1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

[MENT-26] Adding Azure CI testing

Tests configured for windows and ubuntu 18.04

Tests with simple password are changed for more complex password to
satisfy possible complex password requirement.
This commit is contained in:
rusher
2019-07-22 09:40:53 +02:00
parent 5fa9c4615e
commit 158a2d7db3
2 changed files with 236 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ static int test_conc66(MYSQL *my)
fprintf(fp, "user=conc66\n");
fprintf(fp, "port=3306\n");
fprintf(fp, "enable-local-infile\n");
fprintf(fp, "password='test\\\";#test'\n");
fprintf(fp, "password='test@A1\\\";#test'\n");
fclose(fp);
@@ -52,7 +52,7 @@ static int test_conc66(MYSQL *my)
rc= mysql_options(mysql, MYSQL_READ_DEFAULT_FILE, "./my-conc66-test.cnf");
check_mysql_rc(rc, mysql);
sprintf(query, "GRANT ALL ON %s.* TO 'conc66'@'%s' IDENTIFIED BY 'test\";#test'", schema, this_host ? this_host : "localhost");
sprintf(query, "GRANT ALL ON %s.* TO 'conc66'@'%s' IDENTIFIED BY 'test@A1\";#test'", schema, this_host ? this_host : "localhost");
rc= mysql_query(my, query);
check_mysql_rc(rc, my);
rc= mysql_query(my, "FLUSH PRIVILEGES");
@@ -800,7 +800,7 @@ static int test_bind_address(MYSQL *my)
sprintf(query, "DROP USER '%s'@'%s'", username, bind_addr);
rc= mysql_query(my, query);
sprintf(query, "CREATE USER '%s'@'%s'", username, bind_addr);
sprintf(query, "CREATE USER '%s'@'%s' IDENTIFIED BY '%s'", username, bind_addr, password);
rc= mysql_query(my, query);
check_mysql_rc(rc, my);