Skip to content

Additional WFE tests - #265

Merged
rolandshoemaker merged 12 commits into
letsencrypt:masterfrom
rolandshoemaker:wfe-tests
May 31, 2015
Merged

rolandshoemaker merged 12 commits into
letsencrypt:masterfrom
rolandshoemaker:wfe-tests

Conversation

@rolandshoemaker

Copy link
Copy Markdown
Contributor

Fixes for #211 and #212. Also added a bit of a hack so that all of the tests can benefit from wfe.HandlePaths() and check the returned headers are correct.

Also fixed a nil pointer dereference in the RA that would be triggered if the user passed a CSR without any DNSNames specified.

Comment thread wfe/web-front-end_test.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please express this as hex in the test file, as with the CSRs and certs in the /ca/ tests.

Comment thread ra/registration-authority.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect. There could be a name in csr.Subject.CommonName. But actually, please go ahead and drop this. I have added it to #262, along with some other fixes in this area.

@bifurcation

Copy link
Copy Markdown
Contributor

Thanks for working on these tests. With the comments above addressed, r=me. I have marked #211 and #212 as pr-in-progress. There may be some merge conflicts with #262, but there's nothing obvious besides the one thing in registration-authority.go that I mentioned above.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.27%) to 44.35% when pulling e0b360a on rolandshoemaker:wfe-tests into 441ce32 on letsencrypt:master.

@rolandshoemaker

Copy link
Copy Markdown
Contributor Author

@bifurcation ready for re-review.

Comment thread wfe/web-front-end_test.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not wrong, you can just delete this comment :)

@bifurcation

Copy link
Copy Markdown
Contributor

r=bifurcation

Go ahead and delete that one comment, then merge away!

rolandshoemaker added a commit that referenced this pull request May 31, 2015
@rolandshoemaker
rolandshoemaker merged commit 6ab6f33 into letsencrypt:master May 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants