diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 54a537e..c1aabe3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,7 @@ jobs: env: ADMIN_TOKEN: test1234 I_REALLY_WANT_VOLATILE_STORAGE: "true" + DISABLE_ICON_DOWNLOAD: "false" LOGIN_RATELIMIT_SECONDS: "1" LOGIN_RATELIMIT_MAX_BURST: "1000000" ADMIN_RATELIMIT_SECONDS: "1" @@ -49,7 +50,7 @@ jobs: - id: binaries run: | echo "LOCAL_BINARIES=$GITHUB_WORKSPACE/bin" >> $GITHUB_OUTPUT - echo "BWCLI_VERSION=2023.1.0" >> $GITHUB_OUTPUT + echo "BWCLI_VERSION=2023.2.0" >> $GITHUB_OUTPUT - name: Check out repository code uses: actions/checkout@v3 @@ -57,7 +58,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '>=1.22.2' + go-version: '>=1.22.0' # Cache go build cache, used to speedup go test - name: Go Build Cache diff --git a/README.md b/README.md index ca8ee23..dfc8c38 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ This project is not associated with the Bitwarden project nor 8bit Solutions LLC ## Supported Versions The plugin has been tested and built with the following components: -- [Terraform] v1.5.2 -- [Bitwarden CLI] v2023.7.0 -- [Go] 1.22.2 (for development) +- [Terraform] v1.6.1 +- [Bitwarden CLI] v2023.2.0 +- [Go] 1.22.0 (for development) - [Docker] 23.0.5 (for development) The provider likely works with older versions but those haven't been tested. @@ -141,11 +141,13 @@ In order to run the full suite of Acceptance tests, start a Vaultwarden server: ```sh $ docker run -ti \ -e I_REALLY_WANT_VOLATILE_STORAGE=true \ + -e DISABLE_ICON_DOWNLOAD=false \ -e ADMIN_TOKEN=test1234 \ -e LOGIN_RATELIMIT_SECONDS=1 \ -e LOGIN_RATELIMIT_MAX_BURST=1000000 \ -e ADMIN_RATELIMIT_SECONDS=1 \ -e ADMIN_RATELIMIT_MAX_BURST=1000000 \ + --mount type=tmpfs,destination=/data \ -p 8080:80 vaultwarden/server ``` diff --git a/internal/provider/provider_utils_test.go b/internal/provider/provider_utils_test.go index 1e19f6e..206f440 100644 --- a/internal/provider/provider_utils_test.go +++ b/internal/provider/provider_utils_test.go @@ -97,7 +97,8 @@ func ensureVaultwardenConfigured(t *testing.T) { t.Fatal(err) } } - testOrganizationID, err = webapiClient.CreateOrganization(fmt.Sprintf("org-%d", time.Now().Unix()), fmt.Sprintf("coll-%d", time.Now().Unix()), testEmail) + dateTimeStr := fmt.Sprintf("%d-%d-%d", time.Now().Hour(), time.Now().Minute(), time.Now().Second()) + testOrganizationID, err = webapiClient.CreateOrganization(fmt.Sprintf("org-%s", dateTimeStr), fmt.Sprintf("coll-%s", dateTimeStr), testEmail) if err != nil { t.Fatal(err) }