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

E2E scheduling of pods to GW/NonGW nodes #148

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

mangelajo
Copy link
Contributor

Before this patch, E2E didn't have any control of where pods
landed, this made the testing of different scenarios random.

With this patch we ensure the testing of the datapath when
traffic needs to transit from a worker node to a gateway node.

Cluster type has been converted to an enumeration as part of this
commit.

skitt
skitt previously approved these changes Sep 11, 2019
mangelajo added a commit to mangelajo/submariner that referenced this pull request Sep 12, 2019
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
mpeterson
mpeterson previously approved these changes Sep 12, 2019
Copy link
Contributor

@mpeterson mpeterson left a comment

Choose a reason for hiding this comment

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

LGTM. If you want to address my comments great, if not merging it is also okey.

@mangelajo mangelajo dismissed stale reviews from mpeterson and skitt via 8dee790 September 16, 2019 15:24
@mangelajo
Copy link
Contributor Author

@sridhargaddam @mpeterson I posted a second commit with your requested changes, please re-review.

@mangelajo
Copy link
Contributor Author

mangelajo commented Sep 16, 2019 via email

@sridhargaddam
Copy link
Member

The order does not matter , all tests execute in random order always.

I see, thanks for clarifying. LGTM.

Enviado desde mi iPhone


El 16 sept 2019, a las 20:18, Sridhar Gaddam @.***> escribió: @sridhargaddam requested changes on this pull request. In test/e2e/dataplane/tcp_pod_to_service.go: > @@ -15,8 +15,8 @@ var _ = Describe("[dataplane] Basic Pod to Service tests across clusters without testPod2ServiceTCP(f, framework.NonGatewayNode, framework.NonGatewayNode) }) - It("Should be able to perform a Pod to Service TCP connection and exchange data between different clusters NonGW to GW", func() { - testPod2ServiceTCP(f, framework.NonGatewayNode, framework.GatewayNode) + It("Should be able to perform a Pod to Service TCP connection and exchange data between different clusters GW to GW", func() { Thanks for addressing the other comments. Lets validate GW to GW use-case before nonGW to nonGW (i.e., move this to line before 14). If GW to GW fails, then the second use-case is bound to fail. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

sridhargaddam
sridhargaddam previously approved these changes Sep 17, 2019
mpeterson
mpeterson previously approved these changes Sep 18, 2019
Copy link
Contributor

@mpeterson mpeterson left a comment

Choose a reason for hiding this comment

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

LGTM

@mangelajo
Copy link
Contributor Author

I had to fix conflicts with the SRC IP preservation changes.

Excuse the repetition which I'm handling in PR#149 in a different way (by making the framework a bit smarter and cleaner).. automating some of the repetitive tasks.

Before this patch, E2E didn't have any control of where pods
landed, this made the testing of different scenarios random.

With this patch we ensure the testing of the datapath when
traffic needs to transit from a worker node to a gateway node.

Cluster type has been converted to an enumeration as part of this
commit.
mangelajo added a commit to mangelajo/submariner that referenced this pull request Sep 18, 2019
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
Copy link
Contributor

@mpeterson mpeterson left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@sridhargaddam sridhargaddam left a comment

Choose a reason for hiding this comment

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

LGTM

@mangelajo mangelajo merged commit 0919214 into submariner-io:master Sep 19, 2019
@mangelajo mangelajo deleted the e2e-scheduling-pods branch September 19, 2019 14:45
tpantelis added a commit that referenced this pull request Oct 30, 2019
* E2E: Refactor handling of pods

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: #148

* Address comments inn #149

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

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
novad03 added a commit to novad03/k8s-submariner that referenced this pull request Nov 25, 2023
* E2E: Refactor handling of pods

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/submariner#148

* Address comments inn #149

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

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
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.

5 participants