-
Notifications
You must be signed in to change notification settings - Fork 128
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
New e2e test suite in golang #390
Conversation
d7e4160
to
ae27d2d
Compare
Reviewed 15 of 15 files at r1. tests/e2e/framework/common.go, line 53 at r1 (raw file):
If Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions. tests/e2e/basic_test.go, line 76 at r1 (raw file):
maybe tests should be renamed a bit to make the output more meaningful? It("...") means "verify that it ..." (does something). So if we're testing that foobar must be able to read a file, we should write tests/e2e/framework/common.go, line 65 at r1 (raw file):
tests/e2e/framework/common.go, line 93 at r1 (raw file):
Comments from Reviewable |
A lot of changes from previous WiP-level PR. All shell e2e tests were migrated |
Review status: 4 of 22 files reviewed at latest revision, 9 unresolved discussions. tests/e2e/basic_test.go, line 59 at r2 (raw file):
sorry for nitpicking, but perhaps the casing should be consistent (there's "Should" in some places and "should" in others -- with the latter perhaps being more suited for Ginkgo output) tests/e2e/basic_test.go, line 137 at r2 (raw file):
Wouldn't it be a bit cleaner to just grab the content of the log file and use tests/e2e/basic_test.go, line 168 at r2 (raw file):
I think we should just install this tests/e2e/ceph_test.go, line 227 at r2 (raw file):
please add tests/e2e/common.go, line 91 at r2 (raw file):
It would be nice to add a comment here describing what this func does. tests/e2e/framework/controller.go, line 31 at r2 (raw file):
s/k28/k8s/ tests/e2e/ginkgo-ext/matchers.go, line 24 at r2 (raw file):
empty structs usually are written as Comments from Reviewable |
Review status: 4 of 22 files reviewed at latest revision, 9 unresolved discussions. tests/e2e/basic_test.go, line 168 at r2 (raw file): Previously, ivan4th (Ivan Shvedunov) wrote…
here and above: probably you meant Dockerfile because Dockerfile.build because vncsnapshot need to be present in virtlet pod and not in the build container Comments from Reviewable |
Review status: 4 of 22 files reviewed at latest revision, 9 unresolved discussions. tests/e2e/ceph_test.go, line 227 at r2 (raw file): Previously, ivan4th (Ivan Shvedunov) wrote…
Comments from Reviewable |
PTAL |
CI is going to fail until we merge #396 because now e2e relies on vncsnapshot to be present in virtlet pod, but CI uses virtlet image from docker hub rather than build it from this commit. Thus changes to Dockerfile must be merged first |
That shouldn't be the case, if it is then it's probably broken because: #386 |
d819f0d
to
e49b576
Compare
* Pure golang * Framework that allows remote execution of commands and other operations on DinD k8s node (i.e. what `docker exec` does), k8s pods (like `kubectl exec`) and created VMs (like vmssh.sh) without executing external apps * ginkgo test framework drop-in replacement that extends the framework with ability to have BeforeAll/AfterAll methods that do setup/teardown for current context as a workaround for onsi/ginkgo#70 * e2e suite is compiled into a standalone binary that has no system dependencies and can be run from outside of the cluster with virtlet deployed * tests are performed in a temporary namespace that is deleted afterwards Also, noticeably decrease project build time for subsequent builds by adding `-i` flag to `go build`
Reviewed 3 of 15 files at r1, 7 of 19 files at r2, 13 of 13 files at r3. tests/e2e/basic_test.go, line 168 at r2 (raw file): Previously, istalker2 (Stan Lagun) wrote…
you're right, thanks. tests/e2e/ceph_test.go, line 227 at r2 (raw file): Previously, istalker2 (Stan Lagun) wrote…
ok then, sorry for misunderstanding, let's keep it as-is for now Comments from Reviewable |
Reviewed 7 of 19 files at r2, 13 of 13 files at r3. tests/e2e/ceph_test.go, line 226 at r3 (raw file):
Usage of echo there to add something to file looks strange there. I know that this is simply the same what was in shell script, but later in time we can replace that with call to https://golang.org/pkg/io/ioutil/#WriteFile - for now i'm ok with current version. Comments from Reviewable |
Review status: all files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. tests/e2e/ceph_test.go, line 226 at r3 (raw file): Previously, jellonek (Piotr Skamruk) wrote…
Comments from Reviewable |
Review status: all files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. tests/e2e/ceph_test.go, line 226 at r3 (raw file): Previously, istalker2 (Stan Lagun) wrote…
Point taken. Comments from Reviewable |
New e2e test suite in golang
operations on DinD k8s node (i.e. what
docker exec
does),k8s pods (like
kubectl exec
) and created VMs (like vmssh.sh) withoutexecuting external apps
with ability to have BeforeAll/AfterAll methods that do setup/teardown
for current context as a workaround for
BeforeAll/AfterAll? onsi/ginkgo#70
dependencies and can be run from outside of the cluster with
virtlet deployed
afterwards
Also, noticeably decrease project build time for subsequent builds
by adding
-i
flag togo build
This change is