зеркало из https://github.com/github/vitess-gh.git
added pitr testcase
Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
This commit is contained in:
Родитель
1a800d9777
Коммит
47bce654e1
|
@ -0,0 +1,19 @@
|
|||
name: PITR test
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: PITR Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.13
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup tmate session
|
||||
uses: mxschmitt/action-tmate@v2
|
|
@ -6,13 +6,17 @@ ripple=https://github.com/google/mysql-ripple.git
|
|||
#download bazel
|
||||
curl $bazel --output bazel -L
|
||||
chmod +x bazel
|
||||
ls -l
|
||||
|
||||
#download ripple and build it
|
||||
git clone $ripple
|
||||
cd mysql-ripple
|
||||
bazel build :all
|
||||
cp ../bazel .
|
||||
./bazel build :all
|
||||
|
||||
# copy rippled and delete dependent directory
|
||||
pwd
|
||||
ls
|
||||
cp bazel-bin/rippled ../.
|
||||
cd -
|
||||
rm -rf mysql-ripple
|
|
@ -1,12 +1,14 @@
|
|||
package pitr
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"vitess.io/vitess/go/test/endtoend/cluster"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -14,6 +16,9 @@ const (
|
|||
)
|
||||
|
||||
func TestPointInTimeRecovery(t *testing.T) {
|
||||
defer cluster.PanicHandler(nil)
|
||||
flag.Parse()
|
||||
|
||||
tmpProcess := exec.Command(
|
||||
binlogServer,
|
||||
"--version",
|
||||
|
|
|
@ -271,7 +271,7 @@
|
|||
"Args": ["vitess.io/vitess/go/test/endtoend/recovery/pitr"],
|
||||
"Command": [],
|
||||
"Manual": false,
|
||||
"Shard": 25,
|
||||
"Shard": 26,
|
||||
"RetryMax": 0,
|
||||
"ExtraDockerArg" : "rippled",
|
||||
"Tags": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче