Files
config/provider/env/provider_test.go
andrey 3945d61f17
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
add definition config
2024-01-25 18:17:27 +03:00

25 lines
413 B
Go

package env_test
import (
"os"
"testing"
"gitoa.ru/go-4devs/config/provider/env"
"gitoa.ru/go-4devs/config/test"
)
func TestProvider(t *testing.T) {
t.Parallel()
os.Setenv("FDEVS_CONFIG_DSN", test.DSN)
os.Setenv("FDEVS_CONFIG_PORT", "8080")
provider := env.New("fdevs", "config")
read := []test.Read{
test.NewRead(test.DSN, "dsn"),
test.NewRead(8080, "port"),
}
test.Run(t, provider, read)
}