Skip to content

WIP: Ginkgo Migration #2041

Closed
ianvernon wants to merge 34 commits intomasterfrom
ginkgo-migration-branch
Closed

WIP: Ginkgo Migration #2041
ianvernon wants to merge 34 commits intomasterfrom
ginkgo-migration-branch

Conversation

@ianvernon
Copy link
Copy Markdown
Member

WIP, do not review yet!

@ianvernon ianvernon added the wip label Nov 14, 2017
@ianvernon ianvernon requested review from a team and aanm as code owners November 14, 2017 23:52
Comment thread test/helpers/cilium.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method Cilium.PolicyGetAll should have comment or be unexported

Comment thread test/helpers/cilium.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method Cilium.PolicyDelAll should have comment or be unexported

Comment thread test/helpers/cons.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported const IPv4 should be of the form "IPv4 ..."

Comment thread test/helpers/cons.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported const Create should be of the form "Create ..."

Comment thread test/helpers/cons.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported const Httpd1 should be of the form "Httpd1 ..."

Comment thread test/helpers/cmd.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method CmdRes.GetStdErr should have comment or be unexported

Comment thread test/helpers/cmd.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method CmdRes.GetStdOut should have comment or be unexported

Comment thread test/helpers/wrappers.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported type PerfTest should have comment or be unexported

Comment thread test/helpers/wrappers.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported function CurlFail should be of the form "CurlFail ..."

Comment thread test/helpers/wrappers.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

don't use ALL_CAPS in Go names; use CamelCase

Comment thread test/helpers/cilium.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method Cilium.PolicyGetAll should have comment or be unexported

Comment thread test/helpers/cilium.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method Cilium.PolicyDelAll should have comment or be unexported

Comment thread test/helpers/cons.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported const IPv4 should be of the form "IPv4 ..."

Comment thread test/helpers/cons.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported const Create should be of the form "Create ..."

Comment thread test/helpers/cons.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported const Httpd1 should be of the form "Httpd1 ..."

Comment thread test/helpers/cmd.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method CmdRes.GetStdErr should have comment or be unexported

Comment thread test/helpers/cmd.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method CmdRes.GetStdOut should have comment or be unexported

Comment thread test/helpers/wrappers.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported type PerfTest should have comment or be unexported

Comment thread test/helpers/wrappers.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported function CurlFail should be of the form "CurlFail ..."

Comment thread test/helpers/wrappers.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

don't use ALL_CAPS in Go names; use CamelCase

Comment thread test/runtime/monitor.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported const MonitorDropNotification should have comment (or a comment on this block) or be unexported

Comment thread test/helpers/wrappers.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

don't use ALL_CAPS in Go names; use CamelCase
exported const TCP_RR should have comment (or a comment on this block) or be unexported

Comment thread test/runtime/monitor.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported const MonitorDropNotification should have comment (or a comment on this block) or be unexported

Comment thread test/helpers/wrappers.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

don't use ALL_CAPS in Go names; use CamelCase
exported const TCP_RR should have comment (or a comment on this block) or be unexported

Ian Vernon added 22 commits November 15, 2017 14:10
Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
Not all runtime tests are prefixed with "Runtime" in their Describe block. Change the Jenkinsfile to run these tests.

Signed-off by: Ian Vernon <ian@cilium.io>
There are some scripts that we still need to run as part of the Ginkgo tests.
Migrate these scripts to be under the  directory. Make sure that these tests
are ran as part of the Makefile targets used in the Ginkgo tests.

Signed-off by: Ian Vernon <ian@cilium.io>
The way that unit tests are ran in the Ginkgo tests need to have GOROOT and
GOPATH set. Set these variables in the developer Docker image.

Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
Add a variety of constants for use in tests to significantly reduce the amount
of hardcoding.

Signed-off by: Ian Vernon <ian@cilium.io>
* Utilize constants added in test/helpers/cons.go
* Add `gops` use for getting stack traces in case the Ginkgo tests deadlock.
* Miscellaneous cleanup / log message changes.

Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
* Use constants recently added in `test/helpers/cons.go` to reduce amount of
hardcoding.
* Refactor Node structure to be more aptly-named to SSHMeta.
* Add wrappers around commonly used testing commands (ping, curl, netperf).

Signed-off by: Ian Vernon <ian@cilium.io>
* Use constants recently added in `test/helpers/cons.go`
* Miscellaneous log message cleanup.

Signed-off by: Ian Vernon <ian@cilium.io>
* Use constants recently added in `test/helpers/cons.go`.
* Miscellaneous log message changes and cleanup.

Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
* Add ReportFailed() function call if any It() fails
* Wait until endpoints are ready before running chaos testing
* Change expect output to compare strings instead of hard-to-read byte buffers

Signed-off by: Ian Vernon <ian@cilium.io>
* Start cilium-etcd service when running on new VM image for etcd tests to succeed.
* Dump output of spawned cilium process if it isn't ready for easier debugging.

Signed-off by: Ian Vernon <ian@cilium.io>
Ian Vernon added 10 commits November 15, 2017 14:10
* Change iptables FORWARD to default ACCEPT
* Change default pod CIDR

Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
Signed-off by: Ian Vernon <ian@cilium.io>
@ianvernon ianvernon force-pushed the ginkgo-migration-branch branch from 1b8e281 to 7265941 Compare November 15, 2017 23:32
Comment thread test/helpers/cilium.go
var EndpointWaitUntilReadyRetry int = 0 //List how many retries EndpointWaitUntilReady should have

//EndpointWaitUntilReady This function wait until all the endpoints are in the ready status
func (c *Cilium) WaitEndpointGeneration() bool {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported method Cilium.WaitEndpointGeneration should have comment or be unexported

Comment thread test/helpers/cilium.go

const (
MaxRetries = 30
MaxRetries = 120
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported const MaxRetries should have comment (or a comment on this block) or be unexported

Comment thread test/helpers/cons.go
)

const (
BasePath = "/home/vagrant/go/src/github.com/cilium/cilium/test"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

exported const BasePath should have comment (or a comment on this block) or be unexported

@ianvernon
Copy link
Copy Markdown
Member Author

Closing in favor of smaller, more managable PRs.

@ianvernon ianvernon closed this Nov 20, 2017
@ianvernon ianvernon deleted the ginkgo-migration-branch branch April 10, 2018 17:13
michi-covalent added a commit that referenced this pull request Jul 16, 2024
Renovate added this replace directive in #1733, and now #2041 doesn't
compile because it needs a newer version of github.com/docker/docker.
Let's remove this replace directive and hope everything works out.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
michi-covalent added a commit that referenced this pull request Aug 5, 2024
[ cherry-picked from cilium/cilium-cli repository ]

Renovate added this replace directive in #1733, and now #2041 doesn't
compile because it needs a newer version of github.com/docker/docker.
Let's remove this replace directive and hope everything works out.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
github-merge-queue Bot pushed a commit that referenced this pull request Aug 16, 2024
[ cherry-picked from cilium/cilium-cli repository ]

Renovate added this replace directive in #1733, and now #2041 doesn't
compile because it needs a newer version of github.com/docker/docker.
Let's remove this replace directive and hope everything works out.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.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.

2 participants