Isolate secrets bootstrap in maintained example tests
This commit is contained in:
@@ -8,6 +8,13 @@ import (
|
||||
)
|
||||
|
||||
func TestMaintainedApplicationExamplesUseNativeLoading(t *testing.T) {
|
||||
const token = "SCRIPTORIUM_EXAMPLE_TOKEN"
|
||||
// Exercise provisioning from absence, restoring the original environment at cleanup.
|
||||
t.Setenv(token, "")
|
||||
if err := os.Unsetenv(token); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
root, err := filepath.Abs(filepath.Join("..", "..", ".."))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user