Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Override controller cert generation during tests #6663
Conversation
|
!!build!! |
|
QA checks out. |
|
Addressed a different way now. |
howbazaar
closed this
Jan 17, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bz2 commentedDec 6, 2016
Add hook point in controller cert generation function so that
fake certs can be injected during testing.
Without a fast path, cert generation takes ~9s on our arm64 test
machine. Even on an amd64 machine it can take ~500ms per test.
QA steps
cd $GOPATH/src/github.com/juju/juju/apiservergo test -igo test -check.vv -check.f ".*serverSuite\.TestStop"|grep -F "WARNING juju.controller"- should have warning about overriding certsgo test -test.cpuprofile cpu.prof -check.f ".*serverSuite\.TestStop"go tool pprof apiserver.test cpu.prof(pprof) tree- validatecontroller.GenerateControllerCertAndKeydoes not dominate