Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/services/azblob/azure_azblob/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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: azure_azblob
description: 'Behavior test for Azure azblob. This service is sponsored by @datafuse_labs.'

runs:
using: "composite"
steps:
- name: Setup
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OPENDAL_AZBLOB_CONTAINER: op://services/azblob/container
OPENDAL_AZBLOB_ENDPOINT: op://services/azblob/endpoint
OPENDAL_AZBLOB_ACCOUNT_NAME: op://services/azblob/account_name
OPENDAL_AZBLOB_ACCOUNT_KEY: op://services/azblob/account_key
44 changes: 44 additions & 0 deletions .github/services/azblob/azurite_azblob/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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: azurite_azblob
description: 'Behavior test for azurite azblob'

runs:
using: "composite"
steps:
- name: Setup azurite azblob service
shell: bash
working-directory: fixtures/azblob
run: docker-compose -f docker-compose-azurite.yml up -d
- name: Setup test bucket
shell: bash
run: |
az storage container create \
--name test \
--connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;"
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
RUST_BACKTRACE=full
RUST_LOG=debug
OPENDAL_AZBLOB_CONTAINER=test
OPENDAL_AZBLOB_ENDPOINT=http://127.0.0.1:10000/devstoreaccount1
OPENDAL_AZBLOB_ACCOUNT_NAME=devstoreaccount1
OPENDAL_AZBLOB_ACCOUNT_KEY=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
EOF
8 changes: 4 additions & 4 deletions .github/services/sqlite/sqlite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ description: 'Behavior test for sqlite'
runs:
using: "composite"
steps:
- name: Setup Sqlite
- name: Setup Sqlite
shell: bash
working-directory: fixtures/sqlite
run: mkdir -p /tmp/opendal && sqlite3 /tmp/opendal/test.db < data.sql
- name: Setup
shell: bash
run: |
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_SQLITE_CONNECTION_STRING=file:///tmp/opendal/test.db
OPENDAL_SQLITE_TABLE=data
Expand Down
103 changes: 0 additions & 103 deletions .github/workflows/service_test_azblob.yml

This file was deleted.

24 changes: 24 additions & 0 deletions fixtures/azblob/docker-compose-azurite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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.

version: '3.8'

services:
redis:
image: mcr.microsoft.com/azure-storage/azurite
ports:
- 10000:10000