Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(service/redis): Migrate task to new task planner #3374

Merged
merged 10 commits into from
Nov 17, 2023
42 changes: 42 additions & 0 deletions .github/services/redis/redis_tls/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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: redis_tls
description: 'Behavior test for redis tls'

runs:
using: "composite"
steps:
- uses: actions/checkout@v4

- name: Setup Redis with TLS
shell: bash
working-directory: fixtures/redis
run: |
# Install the CA in the system
sudo cp ssl/ca.crt /usr/local/share/ca-certificates
sudo update-ca-certificates

docker compose -f docker-compose-redis-tls.yml up -d --wait
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_REDIS_ENDPOINT=rediss://127.0.0.1:6379
OPENDAL_REDIS_ROOT=/
OPENDAL_REDIS_DB=0
EOF
45 changes: 45 additions & 0 deletions .github/services/redis/redis_with_cluster_tls/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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: redis_with_cluster_tls
description: 'Behavior test for redis with cluster tls'

runs:
using: "composite"
steps:
- uses: actions/checkout@v4

- name: Setup Redis Cluster with TLS
shell: bash
working-directory: fixtures/redis
run: |

# Install the CA in the system

sudo cp ssl/ca.crt /usr/local/share/ca-certificates
sudo update-ca-certificates

docker compose -f docker-compose-redis-cluster-tls.yml up -d --wait

- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_REDIS_CLUSTER_ENDPOINTS=rediss://127.0.0.1:6380/,rediss://127.0.0.1:6381/,rediss://127.0.0.1:6382/,rediss://127.0.0.1:6383/,rediss://127.0.0.1:6384/,rediss://127.0.0.1:6385/
OPENDAL_REDIS_ROOT=/test/opendal
sunheyi6 marked this conversation as resolved.
Show resolved Hide resolved
OPENDAL_REDIS_DB=0
EOF
103 changes: 0 additions & 103 deletions .github/workflows/service_test_redis.yml

This file was deleted.