Caleb Woodbine
b4fb46409d
Update: test secret contains a default label, secrets are listed via default label, patch payload is marshaled instead of written in raw JSON, secret deleted check; Fix: comments, test namespace usage
2020-01-07 19:51:24 +00:00
Caleb Woodbine
ab12f460d9
Update: to use framework instead of gomega for testing values
2020-01-07 00:56:19 +00:00
Caleb Woodbine
c5e3ab1248
Fix: formatting, spelling
2020-01-06 21:47:08 +00:00
Caleb Woodbine
edd612d9f1
Add: test to patch a secret
2020-01-06 01:31:55 +00:00
Kenichi Omichi
253a85db16
Move WaitForFailure() to the test
...
WaitForFailure() is used at a single e2e test.
So this moves the function to the specific test file for the cleanup.
2019-12-30 23:16:24 +00:00
danielqsj
6596a14d39
add missing alias of api errors under test
2019-12-26 17:29:38 +08:00
danielqsj
fc738cbb1d
unify alias of api errors under test
2019-12-26 16:40:45 +08:00
Kubernetes Prow Robot
4e35750abc
Merge pull request #86156 from tanjunchen/use-framework-Equal-test-e2e_node
...
test/e2e_node/:use framework.Equal() instead of using gomega.Expect(b…
2019-12-19 02:39:56 -08:00
Kubernetes Prow Robot
40750a02fa
Merge pull request #84425 from yutedz/e2e-pods-const
...
Declare constants in pods test as const
2019-12-17 06:18:00 -08:00
Kubernetes Prow Robot
9b840a72c9
Merge pull request #86148 from tanjunchen/use-framework-Equal
...
test/e2e/: use framework.Equal() replace gomega.Expect(...).To(gomega…
2019-12-17 04:19:59 -08:00
Kubernetes Prow Robot
80f03eb2ac
Merge pull request #85453 from claudiubelu/tests/enable-for-windows
...
tests: Removes [LinuxOnly] tag from a few tests
2019-12-16 21:37:51 -08:00
tanjunchen
f786cb07b7
test/e2e/: use framework.Equal() replace gomega.Expect(...).To(gomega.BeTrue()|BeFalse())
2019-12-13 10:11:47 +08:00
tanjunchen
35b0f1f7dd
test/e2e_node/:use framework.Equal() instead of using gomega.Expect(bool).To(gomega.BeTrue(),explain)
2019-12-11 18:50:29 +08:00
Kubernetes Prow Robot
3c4d2a5215
Merge pull request #78731 from claudiubelu/tests-hostnetwork
...
Sets HostNetwork to False for tests which do not require it
2019-12-09 15:22:39 -08:00
Jordan Liggitt
c62d6add9b
Deflake pod readiness e2e
2019-12-03 09:15:04 -05:00
tanjunchen
52ac2783bc
use framework refactor code in test/e2e/common
2019-11-28 18:03:01 +08:00
Aaron Crickenberger
3cbc07bb64
Promote a TCP probe test to Conformance
2019-11-21 12:12:58 -08:00
Claudiu Belu
e465e1089d
Sets HostNetwork to False for tests which do not require it
...
Some tests are setting HostNetwork=true, even if it is not required
for them to pass.
This patch will set the HostNetwork to false for those tests, allowing
them to be run on Windows nodes as well.
2019-11-20 17:36:54 -08:00
Claudiu Belu
c80fe4d914
tests: Removes [LinuxOnly] tag from a few tests
...
We've added the WindowsRunAsUserName feature some time ago, and it was
promoted to Beta for v1.17. We can now remove the [LinuxOnly] tag for
a few tests.
Depends On: #83058
Depends On: #84882
2019-11-16 15:54:33 -08:00
SataQiu
50bc528a7e
e2e: move LogFailedContainers out of e2e test framework util.go
2019-11-15 10:21:26 +08:00
Kubernetes Prow Robot
0386d769cc
Merge pull request #83058 from bclau/tests/windows-tests-support
...
tests: Fixes tests for Windows (containerd, RunAsUserName)
2019-11-14 16:37:13 -08:00
Kubernetes Prow Robot
55cef8048c
Merge pull request #84439 from danielqsj/f-apparmor
...
refactor apparmor utils in e2e
2019-11-14 13:30:08 -08:00
Kubernetes Prow Robot
77e110fcef
Merge pull request #84046 from bclau/tests/agnhost-guestbook-replacement
...
Tests/agnhost guestbook replacement
2019-11-14 08:29:34 -08:00
danielqsj
920dbddb46
refactor apparmor utils in e2e
2019-11-14 12:32:31 +08:00
Kubernetes Prow Robot
c98d9b6fab
Merge pull request #85149 from oomichi/move-util-4
...
Move functions from e2e/framework/util.go Part-4
2019-11-13 20:01:58 -08:00
Kubernetes Prow Robot
43ccfced1d
Merge pull request #84998 from wojtek-t/fix_owner_refs
...
Ensure that Node lease has OwnerReference set
2019-11-13 09:26:59 -08:00
Kubernetes Prow Robot
c85bde10c7
Merge pull request #84975 from mkumatag/fix-initcontainers
...
Remove resource constraints
2019-11-13 09:26:47 -08:00
danielqsj
ce34d0a49d
refactor events utils in e2e
2019-11-13 16:03:17 +08:00
Manjunath A Kumatagi
de483097cb
Remove memory resource constraint
2019-11-13 13:22:44 +05:30
Kenichi Omichi
74f68dfbce
Move functions from e2e/framework/util.go Part-4
...
This is the last PR which moves functions from e2e/framework/util.go
- WaitForServiceWithSelector: Moved to e2e/cloud/gcp
- WaitForStatefulSetReplicasReady: Moved to e2e/storage
- WaitForRCToStabilize: Moved to e2e/kubectl
- CheckInvariants: Moved to e2e/common
- ContainerInitInvariant: Moved to e2e/common
- DumpEventsInNamespace: Renamed to local function
- WaitForDaemonSets: Moved to e2e/e2e.go
2019-11-12 19:25:23 +00:00
Claudiu Belu
e8d062bd4a
tests: Replaces guestbook with agnhost equivalent
...
The redis version has been bumped to version 5.0.5, but the maximum version supported on
Windows is 3.2. This can lead to failing tests, the output and behaviour can be different
(see #80516 ). In order to prevent such failures, the amount of times the Redis image is
used can be reduced.
This commit uses the previously added agnhost guestbook subcommand as a replacement for the
Guestbook application created by the test "should create and stop a working application".
Adds AgnhostPrivate to test/utils/image/manifest. Some tests are trying to pull
the agnhost image from the private registry, meaning that we would need to
always build and push the agnhost image to both e2e and private registry
whenever we bump its version. Decoupling them would mean that we only need
to push the image to the e2e registry.
2019-11-12 07:23:04 -08:00
Olev Kartau
4f75ed2a94
Removed 2nd arg "cs" from TestVolumeClient
...
as we assume it is always set to f.ClientSet and we can
use its value from passed framework argument.
2019-11-12 14:42:24 +02:00
Olev Kartau
2fac3f2c20
test/e2e: Reduce need to use local kubectl
...
Use POST method instead of running local kubectl.
Use ExecCommandInContainerWithFullOutput() instead of RunKubectl().
PodExec() takes additional framework arg, passed down in call chain.
VerifyExecInPodFail uses different error code cast as original
one causes test code Panic if used with new call method.
2019-11-12 14:42:24 +02:00
wojtekt
07200a0764
Ensure that Node lease has OwnerReference set
2019-11-12 09:11:59 +01:00
Kubernetes Prow Robot
66219e1638
Merge pull request #84510 from danielqsj/f-autoscaling
...
refactor autoscaling utils in e2e
2019-11-07 16:20:19 -08:00
Claudiu Belu
f0e6d8ed09
tests: Fixes tests for Windows (containerd, RunAsUserName)
...
Since we've added support for RunAsUserName, we can now run some new
tests. However, the [LinuxOnly] tag will have to remain until the
WindowsRunAsUserName feature becomes enabled by default.
Additionally, Containerd supports file mounting on Windows, and some
tests will be able to pass on Windows with Containerd instead of Docker.
2019-11-06 19:14:21 -08:00
danielqsj
b7b1055bf4
refactor autoscaling utils in e2e
2019-11-06 17:02:42 +08:00
Benjamin Elder
83c56a0373
remove hack/e2e.go
2019-11-03 19:36:59 -05:00
Kubernetes Prow Robot
dda78d59be
Merge pull request #84379 from oomichi/e2e-network
...
Separate e2enetwork from e2e core framework
2019-10-31 02:55:37 -07:00
Kubernetes Prow Robot
6196a5c7d1
Merge pull request #84495 from SataQiu/test-refactor-rcutil
...
test refactor: move test specific functions from rc_util.go
2019-10-30 21:56:03 -07:00
Kubernetes Prow Robot
e86878436f
Merge pull request #84410 from jfbai/move-funcs-of-expect-to-common
...
move funcs of expect.go to e2e/common
2019-10-29 19:54:52 -07:00
SataQiu
24f374a395
move test specific functions from rc_util.go
2019-10-29 13:04:59 +08:00
Ted Yu
e31c7cb193
Declare constants in pods test as const
2019-10-27 14:02:52 -07:00
Jianfei Bai
7401f2fe9b
move funcs of expect.go to e2e/common
2019-10-27 11:54:32 +08:00
Kubernetes Prow Robot
2896fb0be8
Merge pull request #83711 from tanjunchen/fix-staticcheck-test/e2e/network
...
fix staticcheck failures in test/e2e/common directory
2019-10-26 02:23:22 -07:00
Kenichi Omichi
5d6faaddf6
Separate e2enetwork from e2e core framework
...
networking_utils.go is only for network tests and it is nice to
separate it from the core framework for easy maintenance.
2019-10-25 17:58:20 +00:00
Jordan Liggitt
8d0e4a4492
Revert "move hostPID tests to common"
...
This reverts commit 20ac24929b .
2019-10-22 21:28:44 -04:00
Kubernetes Prow Robot
9039e6b754
Merge pull request #83398 from bclau/tests/fix-windows-image-pulling
...
tests: Simplifies image pulling tests
2019-10-21 19:55:21 -07:00
Kubernetes Prow Robot
c981bce007
Merge pull request #83368 from Jefftree/move-hostpid-tests
...
Move hostPID tests to common
2019-10-21 17:09:22 -07:00
Kubernetes Prow Robot
b5c74a3f26
Merge pull request #82817 from zouyee/scpq
...
fix Security Context should run with an image specified user ID
2019-10-18 12:37:22 -07:00