-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathTestOceanBasePQS.java
More file actions
27 lines (21 loc) · 1.16 KB
/
TestOceanBasePQS.java
File metadata and controls
27 lines (21 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package sqlancer.dbms;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import org.junit.jupiter.api.Test;
import sqlancer.Main;
public class TestOceanBasePQS {
@Test
public void testPQS() {
assumeTrue(TestConfig.isEnvironmentTrue(TestConfig.OCEANBASE_ENV));
assertEquals(0,
Main.executeMain(new String[] { "--random-seed", "0", "--timeout-seconds", TestConfig.SECONDS,
"--num-threads", "4", "--random-string-generation", "ALPHANUMERIC_SPECIALCHAR",
"--database-prefix", "pqsdb", "--num-queries", TestConfig.NUM_QUERIES, "--username",
"sqlancer@test", "--password", "sqlancer",
// after deploy oceanbase,if you don't create tenant to test,firstly create tenant test,then
// create user sqlancer:
// mysql -h127.1 -uroot@test -P2881 -Doceanbase -A -e"create user sqlancer identified by
// 'sqlancer';grant all on *.* to sqlancer;"
"oceanbase", "--oracle", "PQS" }));
}
}