summaryrefslogtreecommitdiff
path: root/data/datasource_env_test.go
AgeCommit message (Collapse)Author
2024-01-22Use go-fsimpl to read from datasources (#1336)Dave Henderson
* Use go-fsimpl to read from datasources Signed-off-by: Dave Henderson <dhenderson@gmail.com> * trying to fix windows bug Signed-off-by: Dave Henderson <dhenderson@gmail.com> * attempts to fix some of the path madness Signed-off-by: Dave Henderson <dhenderson@gmail.com> * remove 'HOME' from expected env vars Signed-off-by: Dave Henderson <dhenderson@gmail.com> * more tweaks Signed-off-by: Dave Henderson <dhenderson@gmail.com> * lint fix Signed-off-by: Dave Henderson <dhenderson@gmail.com> --------- Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2023-12-19test: use `t.Setenv` to set env vars in tests (#1940)Eng Zer Jun
* test: use `t.Setenv` to set env vars in tests 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> * minor adjustments Signed-off-by: Dave Henderson <dhenderson@gmail.com> --------- Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> Signed-off-by: Dave Henderson <dhenderson@gmail.com> Co-authored-by: Dave Henderson <dhenderson@gmail.com>
2023-04-29Use required.NoError for faster failure in testsDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2022-01-09Propagate context into datasource read functions (#1282)Dave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2019-03-30Some more Windows fixes (#527)Dave Henderson
* Some more Windows fixes Signed-off-by: Dave Henderson <dhenderson@gmail.com> * Upgrading xignore Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2019-03-07Getting _some_ integration tests running in appveyor (#507)Dave Henderson
* Running integration tests in appveyor Signed-off-by: Dave Henderson <dhenderson@gmail.com> * fixup! Running integration tests in appveyor * fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Running integration tests in appveyor
2018-08-18Removing unnecessary uses of NewSourceDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-05-26Adding env datasourceDave Henderson
Signed-off-by: Dave Henderson <dhenderson@gmail.com>