Skip to content

Integration test using test.js - #215

Merged
jcjones merged 4 commits into
masterfrom
client-test
May 22, 2015
Merged

jcjones merged 4 commits into
masterfrom
client-test

Conversation

@jsha

@jsha jsha commented May 20, 2015

Copy link
Copy Markdown
Contributor

Add an integration test using test.js

Include updates to test.js to make its output more useful as a diagnostic.

It remains a future TODO to do integration testing with the real letsencrypt
client.

Partly fixes #210

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 43.7% when pulling 73518b4 on client-test into a9a50d9 on master.

jcjones pushed a commit that referenced this pull request May 21, 2015
- Don't ignore entropy underruns in challenges.go
- Correct identity crisis in Policy Authority; hopefully it will remember.
- Add a method `AuditObject` in audit-logger and convert RA/VA to use it
- Fix json typo in registration-authority that caused empty audit logs
- Fix vet issue in WFE where RegID was being printed as a 32-bit int instead of 64-bit
- Unfix the issue in WFE where RegID isn't right, per PR #215
Comment thread test/integration-test.sh 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 should probably be "node" rather than "js" for compatibility.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 44.74% when pulling 27c7c8b on client-test into 8ee3d3f on master.

Include updates to test.js to make its output more useful as a diagnostic.

It remains a future TODO to do integration testing with the real letsencrypt
client.

Also, work around a go vet bug.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 44.74% when pulling 1532342 on client-test into 8ee3d3f on master.

@jsha

jsha commented May 22, 2015

Copy link
Copy Markdown
Contributor Author

Ok, ready for re-review.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.11%) to 44.83% when pulling c1f3791 on client-test into 8ee3d3f on master.

Comment thread test.sh 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.

I think the only thing that still needs doing is to check for the existence of setsid before attempting to use it, since it doesn't exist on BSD. I'd recommend doing something like:

SETSID=$(which setsid)
${SETSID} bash test/integratio-test.sh

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the absence of setsid, if you run test.sh multiple times, it will leave a dangling copy of boulder running, which will mean subsequent runs won't pick up boulder changes. I'm going to poke at an install/run command pair which will fix these issues with killing grandchildren (since there will be no grandchildren).

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.11%) to 44.84% when pulling dc02fed on client-test into 8ee3d3f on master.

@jsha

jsha commented May 22, 2015

Copy link
Copy Markdown
Contributor Author

Ready for re-review again. I took out the part that automatically runs integration-test.sh from test.sh, because there are still some issues to work out regarding shutdown of boulder and compatibility across Linux and OS X. But there are some incidental interop bugs that are fixed in this branch, so I wanted to unblock it from those issues. cc @jcjones

Comment thread test.sh

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.

Why did we strip this? Anyway, I don't really care.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I stripped it because if there are no unformatted files, the test output ends with this statement, which is confusing. I'd be happy to add back in, so long as we end with an "ok" or something.

@jcjones

jcjones commented May 22, 2015

Copy link
Copy Markdown
Contributor

Let's go for it. Can always add that comment back in if we care. :)

jcjones added a commit that referenced this pull request May 22, 2015
Integration test using test.js
@jcjones
jcjones merged commit 4a92001 into master May 22, 2015
@jcjones
jcjones deleted the client-test branch May 22, 2015 23:36
eq19 pushed a commit to VirtualNetworks/boulder that referenced this pull request May 1, 2025
eq19 pushed a commit to VirtualNetworks/boulder that referenced this pull request May 1, 2025
eq19 pushed a commit to VirtualNetworks/boulder that referenced this pull request May 1, 2025
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.

Integration tests between client and server

3 participants