harbor/src
Eng Zer Jun cd0fa06a32
test: use T.Setenv to set env vars in tests (#17670)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-10-25 10:56:26 +08:00
..
chartserver test: use T.Setenv to set env vars in tests (#17670) 2022-10-25 10:56:26 +08:00
cmd lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
common feat: optimize return value in pkg modifier (#17655) 2022-10-21 15:38:39 +08:00
controller test: use T.Setenv to set env vars in tests (#17670) 2022-10-25 10:56:26 +08:00
core Fix redirect url redirect_url when OIDC auth mode is enabled (#17628) 2022-10-21 14:38:13 +08:00
jobservice test: use T.Setenv to set env vars in tests (#17670) 2022-10-25 10:56:26 +08:00
lib test: use T.Setenv to set env vars in tests (#17670) 2022-10-25 10:56:26 +08:00
migration lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
pkg test: use T.Setenv to set env vars in tests (#17670) 2022-10-25 10:56:26 +08:00
portal Fix redirect url redirect_url when OIDC auth mode is enabled (#17628) 2022-10-21 14:38:13 +08:00
registryctl test: use T.Setenv to set env vars in tests (#17670) 2022-10-25 10:56:26 +08:00
server test: use T.Setenv to set env vars in tests (#17670) 2022-10-25 10:56:26 +08:00
testing upgrade: bump up mockery to v2.14.0 (#17415) 2022-08-22 14:21:13 +08:00
vendor bump dependencies (#17549) 2022-09-15 16:50:16 +08:00
.golangci.yaml Enable staticcheck (#17286) 2022-08-01 16:58:51 +08:00
favicon.ico change code 20161019 2016-10-21 18:39:10 +08:00
go.mod Bump up golang version to v1.19 (#17588) 2022-09-22 17:38:26 +08:00
go.sum bump dependencies (#17549) 2022-09-15 16:50:16 +08:00