From 66da4772f963d58befb3a418b466bb9a7f18439b Mon Sep 17 00:00:00 2001 From: He Wang Date: Thu, 20 Jun 2024 21:31:10 +0800 Subject: [PATCH] add init_sql --- .github/workflows/java-test-oceanbase-ce.yml | 5 +++++ .github/workflows/test-oceanbase-ce.yml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/java-test-oceanbase-ce.yml b/.github/workflows/java-test-oceanbase-ce.yml index 35069d0..e2ec662 100644 --- a/.github/workflows/java-test-oceanbase-ce.yml +++ b/.github/workflows/java-test-oceanbase-ce.yml @@ -29,6 +29,10 @@ on: required: false type: string default: '127.0.0.1:2882:2881' + init_sql: + required: false + type: string + default: '' jobs: test-oceanbase-ce: @@ -60,6 +64,7 @@ jobs: sql_port: ${{ inputs.port }} sys_root_password: ${{ inputs.sys_password }} tenant_name: ${{ inputs.test_tenant }} + init_sql: ${{ inputs.init_sql }} - name: Test Docker container env: diff --git a/.github/workflows/test-oceanbase-ce.yml b/.github/workflows/test-oceanbase-ce.yml index b50a0b8..785bba5 100644 --- a/.github/workflows/test-oceanbase-ce.yml +++ b/.github/workflows/test-oceanbase-ce.yml @@ -39,6 +39,7 @@ jobs: port: 1234 sys_password: '' test_tenant: test - test_password: '' + test_password: 123456 server_ip: 127.0.0.1 rs_list: 127.0.0.1:2882:2881 + init_sql: "ALTER USER root IDENTIFIED BY '123456'"