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

Add ParseDump function to allow using Fake.Dump() output as a test setup. #2

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

npinaeva
Copy link
Member

@npinaeva npinaeva commented Jan 24, 2024

Unit test rules are coming from https://github.com/kubernetes/kubernetes/blob/b98e47dd80166935117f890b437c8e30a91da173/pkg/proxy/nftables/proxier_test.go#L293, but all chain declarations were put in the beginning to avoid "no such chain" error

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 24, 2024
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 24, 2024
fake.go Outdated Show resolved Hide resolved
fake.go Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
util.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
@danwinship
Copy link
Collaborator

btw until we get proper CI here, you can do go test -count=1 . to run the unit tests, and be sure to gofmt -s -w *.go to check formatting 🙂

@npinaeva npinaeva changed the title Add ParseNFTablesDump function to allow using Fake.Dump() output as a test setup. Add ParseDump function to allow using Fake.Dump() output as a test setup. Jan 26, 2024
@danwinship
Copy link
Collaborator

closing and reopening to see if that pulls in the new ci...

@danwinship danwinship closed this Jan 26, 2024
@danwinship danwinship reopened this Jan 26, 2024
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake_test.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
@npinaeva npinaeva force-pushed the parse-dump branch 2 times, most recently from 31d22ce to 0608374 Compare February 1, 2024 08:51
Copy link
Collaborator

@danwinship danwinship left a comment

Choose a reason for hiding this comment

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

general outline is good

objects.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@danwinship danwinship left a comment

Choose a reason for hiding this comment

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

great. mostly just comment nitpicks now

fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
fake.go Outdated Show resolved Hide resolved
types.go Outdated Show resolved Hide resolved
fake_test.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
objects.go Outdated Show resolved Hide resolved
objects.go Show resolved Hide resolved
setup.

Signed-off-by: Nadia Pinaeva <npinaeva@redhat.com>
@danwinship
Copy link
Collaborator

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 14, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, npinaeva

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 14, 2024
@k8s-ci-robot k8s-ci-robot merged commit eb4c66b into kubernetes-sigs:master Feb 14, 2024
5 checks passed
@npinaeva npinaeva deleted the parse-dump branch February 15, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants