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

Address comments in #149 #197

Merged
merged 6 commits into from
Oct 30, 2019

Conversation

tpantelis
Copy link
Contributor

@tpantelis tpantelis commented Oct 30, 2019

#149

  • renamed TestPod to NetworkPod
  • renamed createListenerConnectorPair t0 runAndVerifyNetworkPod2ServicePair
  • renamed other function names where appropriate

mangelajo and others added 5 commits September 18, 2019 14:59
The concept of TestPodConfig and TestPod is defined, letting us create
testing pods from a single interface, and automating the creation
of UUID data to exchange.

As late modifications has shown that the number of parameters keeps growing
having a single fixture to create test pods will make easier to write
and read E2E tests.

Depends-On: submariner-io#148
- renamed TestPod to NetworkPod
- renamed createListenerConnectorPair t0 runAndVerifyNetworkPod2ServicePair
- renamed other function names where appropriate

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
@@ -30,51 +30,51 @@ var _ = Describe("[dataplane] Basic Pod to Service tests across clusters without
})
})

func testPod2ServiceTCP(f *framework.Framework, leftScheduling framework.TestPodScheduling, rightScheduling framework.TestPodScheduling) {
func testPod2ServiceTCP(f *framework.Framework, leftScheduling framework.NetworkPodScheduling, rightScheduling framework.NetworkPodScheduling) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I like "TestPod..." more as it is generic. NetworkPod... becomes more specific which at this point is not needed IMO

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, there was a discussion on the other patch around this.

TestPod is shorter, I agree with you, and we can assume that pods are going to be "network" always for us... but I'm ok with the current patch, we need to make progress. And thanks tom for proactively proposing the amendments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm OK either way - just trying to address Mike's concerns. While TestPod is generic, these pods really aren't generic, ie they run specific commands to test networking so NetworkPod seems more meaningful in this case.

Copy link
Contributor

@mangelajo mangelajo left a comment

Choose a reason for hiding this comment

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

Oh wow, changes look good, thanks tom!!!!

np.Pod = finalPod
}

func (np *NetworkPod) AwaitSuccessfulFinish() {
Copy link
Contributor

Choose a reason for hiding this comment

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

My version was more generic though. For example being able to wait for non-successful makes it possible to do negative tests in network policies (pods don't connect), but we can add another function on a later PR very easily. The resulting test code is cleaner your way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah that's what I was thinking, ie add AwaitFinish later if needed.

@tpantelis tpantelis merged commit dbd474b into submariner-io:master Oct 30, 2019
@tpantelis tpantelis deleted the e2e-refactor-podcreation branch December 2, 2019 15:25
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