From 0e46fc3b6f35f84f4ecfd2734fdc005c6ffd4489 Mon Sep 17 00:00:00 2001 From: MaxJa4 <74194322+MaxJa4@users.noreply.github.com> Date: Wed, 23 Aug 2023 20:01:57 +0200 Subject: [PATCH] Fix env name of oauth2 endpoint --- cmd/backup/config.go | 2 +- test/dropbox/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/backup/config.go b/cmd/backup/config.go index eaba4cd..b7ea5d1 100644 --- a/cmd/backup/config.go +++ b/cmd/backup/config.go @@ -72,7 +72,7 @@ type Config struct { AzureStoragePath string `split_words:"true"` AzureStorageEndpoint string `split_words:"true" default:"https://{{ .AccountName }}.blob.core.windows.net/"` DropboxEndpoint string `split_words:"true" default:"https://api.dropbox.com/"` - DropboxOAuth2Endpoint string `split_words:"true" default:"https://api.dropbox.com/"` + DropboxOAuth2Endpoint string `envconfig:"DROPBOX_OAUTH2_ENDPOINT" default:"https://api.dropbox.com/"` DropboxRefreshToken string `split_words:"true"` DropboxAppKey string `split_words:"true"` DropboxAppSecret string `split_words:"true"` diff --git a/test/dropbox/run.sh b/test/dropbox/run.sh index a2678ae..e581c12 100644 --- a/test/dropbox/run.sh +++ b/test/dropbox/run.sh @@ -13,7 +13,7 @@ logs=$(docker compose exec -T backup backup) sleep 5 -expect_running_containers "3" +expect_running_containers "4" echo "$logs" if echo "$logs" | grep -q "ERROR"; then