Skip to content

Commit efc0ed7

Browse files
committed
add ci test
1 parent fce996a commit efc0ed7

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"Vue.volar",
2121
"ms-azuretools.vscode-docker",
2222
"zixuanchen.vitest-explorer",
23-
"alexcvzz.vscode-sqlite"
23+
"alexcvzz.vscode-sqlite",
24+
"Azurite.azurite"
2425
]
2526
}
2627
},

.github/workflows/pull-db-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ jobs:
121121
MINIO_SECRET_KEY: 12345678
122122
ports:
123123
- "9000:9000"
124+
azurite:
125+
image: mcr.microsoft.com/azure-storage/azurite
126+
ports:
127+
- "10000:10000"
124128
steps:
125129
- uses: actions/checkout@v3
126130
- uses: actions/setup-go@v4

modules/storage/azure_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ func TestAzureBlobStorageIterator(t *testing.T) {
1717
}
1818
testStorageIterator(t, setting.AzureBlobStorageType, &setting.Storage{
1919
AzureBlobConfig: setting.AzureBlobStorageConfig{
20-
Endpoint: "https://.blob.core.windows.net/",
21-
AccountName: "",
22-
AccountKey: "",
20+
// https://learn.microsoft.com/ja-jp/azure/storage/common/storage-use-azurite?tabs=visual-studio-code#ip-style-url
21+
Endpoint: "http://127.0.0.1:10000/devstoreaccount1/",
22+
// https://learn.microsoft.com/azure/storage/common/storage-use-azurite?tabs=visual-studio-code#well-known-storage-account-and-key
23+
AccountName: "devstoreaccount1",
24+
AccountKey: "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==",
2325
Container: "test",
2426
},
2527
})

0 commit comments

Comments
 (0)