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
endpoint: move TestReadEpsFromDirNames
to pkg/endpoint
#8997
Merged
ianvernon
merged 1 commit into
master
from
pr/ianvernon/move-TestReadEPsFromDirNames-to-endpoint-pkg
Aug 22, 2019
Merged
endpoint: move TestReadEpsFromDirNames
to pkg/endpoint
#8997
ianvernon
merged 1 commit into
master
from
pr/ianvernon/move-TestReadEPsFromDirNames-to-endpoint-pkg
Aug 22, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ianvernon
added
pending-review
kind/cleanup
This includes no functional changes.
labels
Aug 22, 2019
ianvernon
changed the title
endpoint: move \
endpoint: move Aug 22, 2019
TestReadEpsFromDirNames\
to \pkg/endpoint\
TestReadEpsFromDirNames
to pkg/endpoint
ianvernon
force-pushed
the
pr/ianvernon/move-TestReadEPsFromDirNames-to-endpoint-pkg
branch
from
August 22, 2019 00:07
2f0dace
to
6b62f1e
Compare
test-me-please |
ianvernon
force-pushed
the
pr/ianvernon/move-TestReadEPsFromDirNames-to-endpoint-pkg
branch
from
August 22, 2019 00:12
6b62f1e
to
b6d0081
Compare
test-me-please |
ianvernon
force-pushed
the
pr/ianvernon/move-TestReadEPsFromDirNames-to-endpoint-pkg
branch
from
August 22, 2019 00:36
b6d0081
to
bcd40bf
Compare
test-me-please |
raybejjani
approved these changes
Aug 22, 2019
pkg/endpoint/endpoint_status_test.go
Outdated
@@ -31,7 +31,6 @@ import ( | |||
"github.com/cilium/cilium/pkg/labels" | |||
"github.com/cilium/cilium/pkg/policy" | |||
"github.com/cilium/cilium/pkg/policy/trafficdirection" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unintended, I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
The test was previously in `daemon`, and necessitated leaking a lot of Endpoint-related state. Instead, refactor the test into the Endpoint package. Do not regenerate the endpoints needed for testing; instead, write their headerfiles using `writeHeaderfile`, since that is the operation which is needed to be performed in order to perform the test to read the serialized Endpoints from their corresponding headerfiles. Signed-off by: Ian Vernon <ian@cilium.io>
ianvernon
force-pushed
the
pr/ianvernon/move-TestReadEPsFromDirNames-to-endpoint-pkg
branch
from
August 22, 2019 14:29
bcd40bf
to
852d91d
Compare
test-me-please |
ianvernon
deleted the
pr/ianvernon/move-TestReadEPsFromDirNames-to-endpoint-pkg
branch
August 22, 2019 16:20
aanm
added
the
release-note/misc
This PR makes changes that have no direct user impact.
label
Nov 14, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/cleanup
This includes no functional changes.
release-note/misc
This PR makes changes that have no direct user impact.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The test was previously in `daemon`, and necessitated leaking a lot of
Endpoint-related state. Instead, refactor the test into the Endpoint package.
Do not regenerate the endpoints needed for testing; instead, write their
headerfiles using `writeHeaderfile`, since that is the operation which
is needed to be performed in order to perform the test to read the serialized
Endpoints from their corresponding headerfiles.
Signed-off by: Ian Vernon ian@cilium.io
This change is