Skip to content

Commit

Permalink
Fix testing pipeline and other failing tests
Browse files Browse the repository at this point in the history
Add `TF_ACC=1` environment variable to run the acceptance tests the provider has.
  • Loading branch information
edif2008 committed Apr 29, 2024
1 parent de03970 commit 7adb2e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ jobs:

- name: Test
run: go test -v ./... -cover
env:
TF_ACC: "1"
timeout-minutes: 10
2 changes: 1 addition & 1 deletion internal/onepassword/cli/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestPasswordRecipeToString(t *testing.T) {

for description, test := range tests {
t.Run(description, func(t *testing.T) {
actualString := passwordRecipeToString(test.recipe)
actualString := passwordRecipeToString(test.recipe, test.recipe != nil)
if actualString != test.expectedString {
t.Errorf("Unexpected password recipe string. Expected \"%s\", but got \"%s\"", test.expectedString, actualString)
}
Expand Down

0 comments on commit 7adb2e3

Please sign in to comment.