Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Fix netpol e2e test #1244

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

adrianludwin
Copy link
Contributor

The test was failing incorrectly; it now passes if netpols are enabled
and is skipped if they're not.

Tested: on GKE with netpol enabled and on Kind with them disabled.

The test was failing incorrectly; it now passes if netpols are enabled
and is skipped if they're not.

Tested: on GKE with netpol enabled and on Kind with them disabled.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 28, 2020
@adrianludwin
Copy link
Contributor Author

/assign @GinnyJI
/assign @yiqigao217

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 28, 2020
Copy link
Contributor

@yiqigao217 yiqigao217 left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold

Just 1 question and wait for @GinnyJI for another eye.

for i:=0; !netpolWorks && i<3; i++ {
// This command will return a non-nil error if it works correctly
stdout, _ := RunCommand(clientCmd, nsService1, alpineArgs, wgetArgs)
if strings.Contains(stdout, "wget: download timed out") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: If the netpol is not enabled in the cluster it will just get "Welcome to nginx!", right?

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Oct 28, 2020
@adrianludwin
Copy link
Contributor Author

adrianludwin commented Oct 28, 2020 via email

@GinnyJI
Copy link
Contributor

GinnyJI commented Oct 28, 2020

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrianludwin, GinnyJI

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

@GinnyJI
Copy link
Contributor

GinnyJI commented Oct 28, 2020

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 28, 2020
@k8s-ci-robot k8s-ci-robot merged commit 0b3dc49 into kubernetes-retired:hnc-v0.6 Oct 28, 2020
@adrianludwin adrianludwin added this to the hnc-v0.6 milestone Dec 10, 2020
@adrianludwin adrianludwin deleted the netpol-test branch April 30, 2021 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants