-
Notifications
You must be signed in to change notification settings - Fork 157
Network integration image test #434
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
Network integration image test #434
Conversation
|
Note: since googleapis/google-api-python-client#499, the python test that authenticate are actually broken. I'll fix it afterwards for all image_tests, ok? |
| # traffic from a different IP even if the router is sending traffic to it. | ||
| # This was a test to guarantee that behavior. | ||
| try: | ||
| TestForwardingRule(MM(compute, testee), testee) |
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.
forgot to raise an exception here: the TestForwardingRule should not work on this case. Hang on..
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.
done
7836abd to
28ba908
Compare
|
/ok-to-test |
Codecov Report
@@ Coverage Diff @@
## master #434 +/- ##
=========================================
Coverage ? 71.76%
=========================================
Files ? 39
Lines ? 3814
Branches ? 0
=========================================
Hits ? 2737
Misses ? 879
Partials ? 198
Continue to review full report at Codecov.
|
28ba908 to
647e8f7
Compare
|
rebased PR and adjusted content |
|
I feel like a lot of this logic could and should be moved into the daisy workflow. I don't like the idea of maintaining an additional compute library just for tests when daisy can set all that up. For example if we added steps to add forwarding rules, that way we don't need to add all the logic in for cleanup. This may require a test case for the positive case and the negative but thats ok if it means less code. |
That's right. It seems like a bunch of reimplementation, right? There is daisy, the python library, this
I can start by implementing this part but I guess we need to reassess what is being done on this python tests. If that works well, then I'd rather send a new pull request than to update this one, if that's ok for you. If so, please close this without merging. |
|
@zmarano btw, Is this test wrongly defined? I expect it to be right? |
|
oh, I just noticed some confusing terms: this |
647e8f7 to
a6d7358
Compare
|
This PR was not closed so I just updated this one with the ForwardingRule and TargetInstances being created on daisy. It's much better this way, thanks for the idea! |
|
ops, I completely forgot to extend the go tests. Hang on |
a6d7358 to
03e321c
Compare
|
that's better :-) |
|
@adjackura the PR is once again ready to be reviewed |
adjackura
left a comment
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.
Looks good, just a few nits.
Also it looks like our linter isn't working as expected, I'll have to look into that
daisy/compute/compute.go
Outdated
| return nil | ||
| } | ||
|
|
||
| func (c *client) CreateForwardingRule(project, region string, ti *compute.ForwardingRule) error { |
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.
fr *compute.ForwardingRule
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.
Also docstring
daisy/compute/compute.go
Outdated
| } | ||
|
|
||
| func (c *client) operationsWait(project, zone, name string) error { | ||
| type OperationGetterFunc func() (*compute.Operation, error) |
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.
Does this type need to be public?
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. I'll change it to be unexported.
|
/lint |
daisy-bot
left a comment
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.
@adjackura: 6 warnings.
Details
In response to this:
/lint
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| package daisy |
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.
Golint comments: should have a package comment, unless it's in another file for this package. More info.
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.
ignore this
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| package daisy |
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.
Golint comments: should have a package comment, unless it's in another file for this package. More info.
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.
ignore this
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| package daisy |
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.
Golint comments: should have a package comment, unless it's in another file for this package. More info.
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.
ignore this
daisy/compute/compute.go
Outdated
| } | ||
|
|
||
| func (c *client) operationsWait(project, zone, name string) error { | ||
| type OperationGetterFunc func() (*compute.Operation, error) |
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.
Golint comments: exported type OperationGetterFunc should have comment or be unexported. More info.
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| package daisy |
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.
Golint comments: should have a package comment, unless it's in another file for this package. More info.
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.
ignore this
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| package daisy |
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.
Golint comments: should have a package comment, unless it's in another file for this package. More info.
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.
ignore this
03e321c to
7371fa9
Compare
|
@gut: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
done. Thanks |
…heck Ignore long job name in knative prow config check
No description provided.