Skip to content

Commit

Permalink
add github test workflow of zookeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
Murphy-OrangeMud committed Jul 31, 2023
1 parent e1d83d0 commit 7cf8a99
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 15 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/service_test_zookeeper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Service Test Zookeeper

on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- "core/src/**"
- "core/tests/**"
- "!core/src/docs/**"
- "!core/src/services/**"
- "core/src/services/zookeeper/**"
- ".github/workflows/service_test_zookeeper.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
zookeeper:
runs-on: ubuntu-latest
services:
zookeeper:
image: zookeeper
ports:
- 2181: 2181
steps:
- uses: action/checkout@v3
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-nextest: true
- name: Teset
shell: bash
working-directory: core
run: cargo nextest run zookeeper --features services-zookeeper
env:
OPENDAL_ZOOKEEPER_TEST: on
OPENDAL_ZOOKEEPER_ENDPOINT: 127.0.0.1:2181
15 changes: 0 additions & 15 deletions core/src/services/zookeeper/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,3 @@ impl kv::Adapter for ZkAdapter {
}
}
}

#[test]
fn test_get() {

}

#[test]
fn test_set() {

}

#[test]
fn test_delete() {

}

0 comments on commit 7cf8a99

Please sign in to comment.