Skip to content
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

bug fixes and more testing/coverage #32

Merged
merged 5 commits into from
Jan 14, 2017
Merged

bug fixes and more testing/coverage #32

merged 5 commits into from
Jan 14, 2017

Conversation

tejashah88
Copy link
Member

  • added testing for request verification, HTTPS support, and POST-based routes
  • fixed potential memory leaks from not closing the HTTPS server instance and not removing the hotswap listeners
  • now using alexa-verifier-middleware for request verification
  • changed loading location of contents of 'sslcert' folder (should be part of 'examples' folder)
  • fixed documentation for generating the SSL certificate

@coveralls
Copy link

Coverage Status

Coverage increased (+13.0%) to 77.778% when pulling ab178ce on tejashah88:master into 16f581c on alexa-js:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+22.1%) to 86.928% when pulling b72dac3 on tejashah88:master into 16f581c on alexa-js:master.

@tejashah88 tejashah88 changed the title group of bug fixes and more testing/coverage bug fixes and more testing/coverage Jan 14, 2017
Copy link
Collaborator

@dblock dblock left a comment

Choose a reason for hiding this comment

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

I have some minor nitpicks otherwise this looks great. Mind taking a look at the comments? Thanks.

@@ -2,6 +2,7 @@

### 2.3.2 (Next)

* [#32](https://github.com/alexa-js/alexa-app-server/pull/32): group of bug fixes and more testing/coverage - [@tejashah88](https://github.com/tejashah88)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets expand this to be specific to be helpful to people reading the CHANGELOG, just list actual fixes on separate lines? Also start with a Capital letter and end with a period ;) <nitpick />

@@ -7,6 +7,7 @@ var express = require('express');
var alexa = require('alexa-app');
var verifier = require('alexa-verifier');
var bodyParser = require('body-parser');
var avm = require('alexa-verifier-middleware');
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would call this alexaVerifierMiddleware to be consistent and remove the var verifier above that i think we no longer need?

@@ -23,12 +24,16 @@ var appServer = function(config) {
self.error = function(msg) { console.log(msg); };

// Configure hotswap to watch for changes and swap out module code
hotswap.on('swap', function(filename) {
var swapCallback = function(filename) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

hotswapCallback? Minor.

@@ -20,6 +20,7 @@
"dependencies": {
"alexa-app": "^2.4.0",
"alexa-verifier": "0.0.5",
Copy link
Collaborator

Choose a reason for hiding this comment

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

We still need an explicit verifier dependency? Maybe not lock to a version and let avm bring it?

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch for that!

@coveralls
Copy link

Coverage Status

Coverage increased (+22.06%) to 86.842% when pulling b005b50 on tejashah88:master into 16f581c on alexa-js:master.

@dblock dblock merged commit b622cf1 into alexa-js:master Jan 14, 2017
@dblock
Copy link
Collaborator

dblock commented Jan 14, 2017

Nice work, merged, thank you!

@dblock
Copy link
Collaborator

dblock commented Jan 14, 2017

@tejashah88 Want to help maintaining this library? Make a release? I will add you to this repo and npm.

@tejashah88
Copy link
Member Author

@dblock I would be more than willing to help maintain this library.

@dblock
Copy link
Collaborator

dblock commented Jan 14, 2017

@tejashah88 You're in, you should have both repo and npm access. Maybe you can add something like https://github.com/alexa-js/alexa-app/blob/master/RELEASING.md and then make a release Please continue making pull requests for code, we code review each-others.

@tejashah88
Copy link
Member Author

@dblock No worries, I have quite a few more PR's upcoming! For making the release, should I add the RELEASING.md, or should we make the release first?

@dblock
Copy link
Collaborator

dblock commented Jan 15, 2017

I suggest copying/writing RELEASING and doing a release to "test" it. But really that's just my 0.02c, I want to make sure the next person releasing can just follow simple instructions.

@tejashah88
Copy link
Member Author

Understood, I'll probably be doing some more bug fixing but I do have the RELEASING file ready.

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