-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ACME/Let’s Encrypt integration tests #975
Conversation
37f9800
to
31719a0
Compare
BaseSuite | ||
} | ||
|
||
func (s *AcmeSuite) setupBoulder(c *check.C) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be in SetUpSuite
and not called by the test I think 👼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the same structure than the ConsulSuite, but yes sounds good :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -52,6 +54,18 @@ func (s *BaseSuite) TearDownSuite(c *check.C) { | |||
func (s *BaseSuite) createComposeProject(c *check.C, name string) { | |||
projectName := fmt.Sprintf("integration-test-%s", name) | |||
composeFile := fmt.Sprintf("resources/compose/%s.yml", name) | |||
|
|||
addrs, err := net.InterfaceAddrs() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trecloux care to explain this change ? 👼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ACME/Boulder service needs to call traefik to check the HTTPS/SNI challenge.
So we need to know the IP address of traefik.
This code is looking for the host non loopback IP V4 address .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum ok, but who uses DOCKER_HOST_IP
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah nevermind, didn't look at the compose file 😂
476d31d
to
fcd0a2f
Compare
@@ -0,0 +1,44 @@ | |||
boulder: | |||
image: trecloux/boulder:20161209-8a6382f4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What changes have been made to letsencrypt/boulder
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No change, I just built/pushed the last commit of the release branch 8a6382f4 is the commit id. The official image was not updated for 9 months.
fcd0a2f
to
c797162
Compare
@trecloux If you don't mind, could you use this image instead: |
802616d
to
6d37e15
Compare
@emilevauge I updated the image. Unfortunately the test looks instable on travis |
} | ||
return nil | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add c.Assert(err, checker.IsNil)
here I think ;)
@emilevauge Thanks for the tip, fixed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐻
Needs a rebase though 👼
7b0e29a
to
7f5190c
Compare
@vdemeester I rebased the branch, should I squash the commits ? |
In this case yeah, we don't need to keep |
Thx @gwallet for the help.
7f5190c
to
599c95e
Compare
Tests are based on a boulder image I pushed on my personal docker hub account.
Thx @gwallet for the help.