Some of the production code is difficult to test. Add unit tests need additional refactoring.
main.go
- cannot run unit test without Athenz API mock
- code does not have unit test
|
if !isSignal || len(errs) != 1 || errs[0] != ctx.Err() { |
|
return errs |
|
} |
|
glg.Info("authorization proxy main process shutdown success") |
|
os.Exit(1) |
Some of the production code is difficult to test. Add unit tests need additional refactoring.
main.goauthorization-proxy/main.go
Lines 130 to 132 in 279622e
authorization-proxy/main.go
Lines 181 to 182 in 279622e