fleet/cmd
Eng Zer Jun 1ab171faf3
test: use T.Setenv to set env vars in tests (#6714)
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>
2022-07-18 14:22:28 -03:00
..
cpe Feature 6096: Scan RHEL/CentOS hosts using OVAL definitions (#6241) 2022-06-23 16:44:45 -04:00
fleet add API endpoints to retrieve pre-built installers (#6672) 2022-07-18 13:44:30 -03:00
fleetctl test: use T.Setenv to set env vars in tests (#6714) 2022-07-18 14:22:28 -03:00
osquery-perf Add battery info in host details response (#6394) 2022-06-28 14:11:49 -04:00