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

compute: implement subnetworks #1435

Merged
merged 7 commits into from Jul 20, 2016
Merged

compute: implement subnetworks #1435

merged 7 commits into from Jul 20, 2016

Conversation

ashleyschuett
Copy link
Contributor

For #1073

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Jul 15, 2016
@@ -215,6 +221,135 @@ Network.prototype.createFirewall = function(name, config, callback) {
};

/**
* Create a subnetwork in this subnetwork.

This comment was marked as spam.

@jgeewax
Copy link
Contributor

jgeewax commented Jul 15, 2016

Awesome -- thanks! Can you take a look at the CLA ? We can't merge without that :(

@ashleyschuett
Copy link
Contributor Author

I updated it to be for the email address I used in the commits, but it doesn't seem to be updating.

@googlebot
Copy link

CLAs look good, thanks!

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Jul 15, 2016
@stephenplusplus
Copy link
Contributor

Thank you for helping! :)

The CI check stopped early because of the linter issues (https://travis-ci.org/GoogleCloudPlatform/gcloud-node/jobs/145010438#L917) -- if you push the changes that fix them, the rest of the tests should execute.

Were you interested in writing the unit tests for this change? If not, I'll create a PR branched off of this one with the changes.

@stephenplusplus stephenplusplus added the api: compute Issues related to the Compute Engine API. label Jul 15, 2016
@coveralls
Copy link

coveralls commented Jul 15, 2016

Coverage Status

Coverage decreased (-1.1%) to 98.888% when pulling f992360 on containership:master into d995fb6 on GoogleCloudPlatform:master.

@stephenplusplus
Copy link
Contributor

Looks like another bug that our linter didn't catch: https://travis-ci.org/GoogleCloudPlatform/gcloud-node/jobs/145071576#L534

lib/compute/network.js:268
  let region = new Region(this.compute, config.region);
  ^^^
SyntaxError: Unexpected strict mode reserved word

We still have to support 0.12 :\

@coveralls
Copy link

coveralls commented Jul 15, 2016

Coverage Status

Coverage decreased (-1.1%) to 98.888% when pulling 8e9166b on containership:master into d995fb6 on GoogleCloudPlatform:master.

@ashleyschuett
Copy link
Contributor Author

what other tests need to be written yet? I'm getting the same coverage results after writing the system tests.

};


let SUBNETWORK_CONFIG = {

This comment was marked as spam.

@stephenplusplus
Copy link
Contributor

Every line of code in the lib directory gets tested in the matching folder in the test directory. In this case, each of the methods you created require testing. Copying and pasting tests should go pretty far, but if this is something you'd rather leave for us, just let me know.

@coveralls
Copy link

coveralls commented Jul 15, 2016

Coverage Status

Coverage decreased (-1.1%) to 98.888% when pulling 90248b8 on containership:master into d2780ca on GoogleCloudPlatform:master.

@coveralls
Copy link

coveralls commented Jul 15, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling c064a32 on containership:master into d2780ca on GoogleCloudPlatform:master.

@ashleyschuett
Copy link
Contributor Author

Let me know if there is anything missing, or I need to do anything else!

* }, callback);
*
* //-
* // Get the firewalls from your project as a readable object stream.

This comment was marked as spam.

* @param {function=} callback - The callback function.
* @param {?error} callback.err - An error returned while making this
* request.
* @param {object} callback.metadata - The address's metadata.

This comment was marked as spam.

@stephenplusplus
Copy link
Contributor

Thanks, it looks pretty great! I'm done with the review for now. Let me know if you have any thoughts on the feedback I left. I'll look at the tests after any updates you might make.

@ashleyschuett
Copy link
Contributor Author

I'd defiantly like to take you up on getting some help with the test's. I'm not sure what I'm missing and am not sure how to test some of the functionality properly.

@stephenplusplus
Copy link
Contributor

No problem, I'm going over them now.

@stephenplusplus
Copy link
Contributor

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Jul 20, 2016
@coveralls
Copy link

coveralls commented Jul 20, 2016

Coverage Status

Coverage decreased (-0.05%) to 99.946% when pulling 3d6ff28 on containership:master into d2780ca on GoogleCloudPlatform:master.

@stephenplusplus
Copy link
Contributor

Oh geez, I made the coverage worse. That's sad. I'll be right on that!

@coveralls
Copy link

coveralls commented Jul 20, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 4a1921c on containership:master into d2780ca on GoogleCloudPlatform:master.

@stephenplusplus stephenplusplus merged commit 5689f96 into googleapis:master Jul 20, 2016
@stephenplusplus
Copy link
Contributor

Yay! Thank you very much!

@ashleyschuett
Copy link
Contributor Author

Awesome! Thanks for all the help! Do I need to do anything for the cia thing, or is that something you need to accept?

@stephenplusplus
Copy link
Contributor

Nope, it's all set. We just confused it when I PRd to your fork. Since
you've already signed, we're all good!
On Wed, Jul 20, 2016 at 10:19 AM Ashley Schuett [email protected]
wrote:

Awesome! Thanks for all the help! Do I need to do anything for the cia
thing, or is that something you need to accept?


You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
#1435 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAsIaBqa77VhdtTllV4oAC4lVZclV06Dks5qXi51gaJpZM4JNYLb
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: compute Issues related to the Compute Engine API. cla: no This human has *not* signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants