Skip to content

Commit

Permalink
tests, fixup use of temporary MINIO_ROOT_USER variable
Browse files Browse the repository at this point in the history
  • Loading branch information
BuJo committed Aug 8, 2022
1 parent e29fb19 commit 7826cd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ tasks:
env:
TF_ACC: 0
MINIO_ENDPOINT: localhost:9000
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_USER: minio
MINIO_PASSWORD: minio123
MINIO_ENABLE_HTTPS: false
cmds:
- go test -v -cover ./minio
Expand Down
4 changes: 2 additions & 2 deletions minio/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ func testAccPreCheck(t *testing.T) {
if _, ok := os.LookupEnv("MINIO_ENDPOINT"); !ok {
valid = false
}
if _, ok := os.LookupEnv("MINIO_ROOT_USER"); !ok {
if _, ok := os.LookupEnv("MINIO_USER"); !ok {
valid = false
}
if _, ok := os.LookupEnv("MINIO_ROOT_PASSWORD"); !ok {
if _, ok := os.LookupEnv("MINIO_PASSWORD"); !ok {
valid = false
}
if _, ok := os.LookupEnv("MINIO_ENABLE_HTTPS"); !ok {
Expand Down

0 comments on commit 7826cd7

Please sign in to comment.