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

Fix TCP Route test #183

Merged

Conversation

AwesomePatrol
Copy link
Contributor

@AwesomePatrol AwesomePatrol commented Apr 3, 2024

Previously, the tests relied on hardcoded names of NEGs created by
neg-controller in GKE cluster. Now all e2e tests can be run without GKE.

@AwesomePatrol
Copy link
Contributor Author

/cc @kl52752
/cc @akwi-github

/assign @bowei

@google-oss-prow google-oss-prow bot requested a review from kl52752 April 3, 2024 10:41
Copy link
Contributor

@AwesomePatrol: GitHub didn't allow me to request PR reviews from the following users: akwi-github.

Note that only GoogleCloudPlatform members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @kl52752
/cc @akwi-github

/assign @bowei

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.

e2e/tcproute_test.go Outdated Show resolved Hide resolved
@kl52752
Copy link
Contributor

kl52752 commented Apr 3, 2024

/lgtm

e2e/tcproute_test.go Outdated Show resolved Hide resolved
e2e/test-helpers.go Outdated Show resolved Hide resolved
e2e/test-helpers.go Outdated Show resolved Hide resolved
Previously, the tests relied on hardcoded names of NEGs created by
neg-controller in GKE cluster. Now all e2e tests can be run without GKE.
@Ramkumar-K
Copy link

/approve

@kl52752
Copy link
Contributor

kl52752 commented Apr 8, 2024

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Apr 8, 2024
@akwi-github
Copy link
Member

/cc @mag-kol

@google-oss-prow google-oss-prow bot requested a review from mag-kol April 9, 2024 10:21
Comment on lines -333 to +341
{Type: exec.ActionTypeMeta, Name: eventName(negID)},
{Type: exec.ActionTypeCreate, Name: actionName(exec.ActionTypeCreate, negID)},
Copy link

Choose a reason for hiding this comment

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

thisis changing the behavior of the test, isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, previously there were hardcoded references to existing NEGs. Now they are created as needed for the duration of the test

Copy link
Contributor

Choose a reason for hiding this comment

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

that's a good point, you don't have to change the behaviour of the test. Just create the NEG with raw API call and leave the node as it was (External).

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 considered that, but I opted for a simpler solution for now. We can always add another test later

@bowei
Copy link
Member

bowei commented Apr 17, 2024

/approve
/lgtm

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AwesomePatrol, bowei, Ramkumar-K

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit abfa33a into GoogleCloudPlatform:master Apr 17, 2024
3 checks passed
AwesomePatrol added a commit to AwesomePatrol/k8s-cloud-provider that referenced this pull request May 7, 2024
Aleksander: Could you PTAL GoogleCloudPlatform#183?
Rohit: I’m no longer on this team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants