Commit Graph

161 Commits

Author SHA1 Message Date
Eric Ernst
e5760015d2 e2e-framework-node: add runtimeclass to dedup code
Similar functionality is required across e2e tests for RuntimeClass.
Let's create runtimeclass as part of the framework/node package.

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2020-02-20 15:58:52 -08:00
Kir Kolyshkin
70a2857998 test/e2e/node: fix selinux test failure
Commit 69a473be3 broke the test case (that was checking
that a file from a volume can't be read) by adding a
(wrong) assumption that error should be nil.

Fix the assumption (we do expect the error here).
Note that we were checking file contents before; now when
we check the error from read, checking the contents is
redundant.

The other issue with the test is SELinux should be in enforcing
mode for this to work, so let's check that first to avoid
false positives.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-02-17 09:46:59 -08:00
Mike Danese
25651408ae generated: run refactor 2020-02-08 12:30:21 -05:00
Mike Danese
3aa59f7f30 generated: run refactor 2020-02-07 18:16:47 -08:00
Sakura
b9a586e382
Fix non-ascii characters in test/e2e/node/pods.go
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2020-02-05 15:14:21 +08:00
Mike Danese
968adfa993 cleanup req.Context() and ResponseWrapper 2020-01-29 08:50:45 -08:00
Mike Danese
d55d6175f8 refactor 2020-01-29 08:50:45 -08:00
toyoda
0c12ae5240 Modify alias of e2e/framework/job to e2ejob 2020-01-17 10:56:05 +09:00
tanjunchen
8c481022c1 e2e/node/:Use e2eskipper package 2020-01-10 16:21:12 +08:00
Aaron Crickenberger
4d731d92bf Demote Delete Grace Period test to [Flaky]
This is currently the top flake against PRs, so I'm tagging it
as [Flaky]. Flaky tests can't be conformance tests, so I'm
removing it from [Conformance] as well until this is resolved.
2020-01-08 10:12:47 -08:00
Kubernetes Prow Robot
de3be348a6
Merge pull request #86640 from tanjunchen/move-code-test/e2e/framework/job
move funcs from test/e2e/framework/job to test/e2e/apps
2019-12-27 19:47:51 -08:00
tanjunchen
794a8668fa move funcs from test/e2e/framework/job to test/e2e/apps 2019-12-27 09:35:30 +08:00
danielqsj
fc738cbb1d unify alias of api errors under test 2019-12-26 16:40:45 +08:00
Kubernetes Prow Robot
6eb4e7c443
Merge pull request #86315 from liggitt/delete-grace-period-debug
Add debugging for delete grace period e2e flake
2019-12-19 00:38:10 -08:00
Jordan Liggitt
176c95ff3e Add debugging for delete grace period e2e flake 2019-12-16 14:15:19 -05:00
tanjunchen
f786cb07b7 test/e2e/: use framework.Equal() replace gomega.Expect(...).To(gomega.BeTrue()|BeFalse()) 2019-12-13 10:11:47 +08:00
MorrisLaw
e981d1ea44 remove framework dependency from framework sub-package kubectl 2019-12-04 21:00:34 +00:00
MorrisLaw
b85adbf1fd moved WriteFileViaContainer and ReadFileViaContainer to kubectl_utils 2019-12-04 20:31:57 +00:00
MorrisLaw
cd8da67b03 move KubectlCmd out of utils into its own package 2019-12-04 20:30:43 +00:00
Kubernetes Prow Robot
9ae79ef8e3
Merge pull request #85849 from liggitt/deflake-delete-grace-period
Deflake delete grace period e2e
2019-12-03 13:18:34 -08:00
Kubernetes Prow Robot
35dfb9b215
Merge pull request #84788 from adelina-t/replace_nginx_agnhost
Replace nginx image with agnhost in sig-node pods tests
2019-12-03 13:16:59 -08:00
Jordan Liggitt
28327efe6b Deflake delete grace period e2e 2019-12-03 09:46:45 -05:00
SataQiu
50bc528a7e e2e: move LogFailedContainers out of e2e test framework util.go 2019-11-15 10:21:26 +08:00
danielqsj
920dbddb46 refactor apparmor utils in e2e 2019-11-14 12:32:31 +08:00
Kenichi Omichi
94211f1839 Move functions from e2e framework util.go
The following functions are called at some specific places only,
so this moves these functions to the places and makes them local.

- WaitForPersistentVolumeClaimDeleted: Moved to e2e storage
- PrintSummaries: Moved to e2e framework.go
- GetHostExternalAddress: Moved to e2e node
- WaitForMasters: Moved to e2e cloud gcp
- WaitForApiserverUp: Moved to e2e network
- WaitForKubeletUp: Moved to e2e storage vsphere
2019-11-08 19:25:16 +00:00
Kenichi Omichi
173c92d8f0 Fix the import aliase nodev1beta1
When running ./hack/verify-import-aliases.sh locally, the following
error happened:

  $ ./hack/verify-import-aliases.sh
  checking-imports:
  ERROR wrong alias for import "k8s.io/api/node/v1beta1" should be
  nodev1beta1 in file test/e2e/node/runtimeclass.go
   test/e2e_node/system/specs
  exit status 1

This fixes it.
2019-11-07 19:36:52 +00:00
Adelina Tuvenie
9a1f631c5c Replace nginx image with agnhost in sig-node pods tests 2019-11-05 13:18:15 +02:00
Kubernetes Prow Robot
a847874655
Merge pull request #83792 from liggitt/flake-pre-stop
Mark 'wait until preStop hook completes the process' flaky
2019-10-11 13:42:38 -07:00
Kubernetes Prow Robot
2125c26a40
Merge pull request #83647 from BenTheElder/tainting-nodes-is-disruptive
tag test that taints a node as disruptive
2019-10-11 13:42:18 -07:00
Jordan Liggitt
73dce3adec Mark 'wait until preStop hook completes the process' flaky 2019-10-11 13:09:32 -04:00
Kubernetes Prow Robot
f985367ba4
Merge pull request #83755 from roycaihw/e2e-kubelet-resource-monitor
kubelet e2e: run resource monitor only if the actual number of nodes is small
2019-10-10 22:49:49 -07:00
Haowei Cai
f5d6951c96 kubelet e2e: run resource monitor only if the actual number of nodes is
small
2019-10-10 17:02:51 -07:00
Timothy St. Clair
97055841b1 Audit of test/* OWNERS files 2019-10-10 15:52:51 -05:00
mattjmcnaughton
69a473be38
Address staticcheck failures for test/e2e/node/...
Fix the `staticcheck` failures for `test/e2e/node`. All of the
staticcheck errors were for variables which were never used. When these
values were `err`, we added processing for the errors. When they were
values that were just never used, we stopped giving them a name.
2019-10-09 10:26:11 -04:00
Benjamin Elder
f3d962ad64 tag test that taints a node as disruptive 2019-10-08 18:22:17 -07:00
Kubernetes Prow Robot
8e39c60919
Merge pull request #83376 from liyanhui1228/fix_test
Fix sig-node test by adding back the numNodes
2019-10-02 18:54:08 -07:00
Angela Li
c06413b6f1 Fix sig-node test by adding back the numNodes 2019-10-01 13:59:38 -07:00
Jan Safranek
0c3293a3aa Use pod + nsenter instead of SSH in mount propagation tests
Not all Kubernetes clusters allow ssh to nodes during test.
2019-10-01 10:19:25 +02:00
Kubernetes Prow Robot
df271a1799
Merge pull request #82291 from danwinship/getnodes
migrate from framework.GetReadySchedulableNodesOrDie to e2enode.GetReadySchedulableNodes
2019-09-25 11:04:43 -07:00
Kubernetes Prow Robot
ba19458dae
Merge pull request #82910 from hwdef/del-unused-var2
fix(test): delete unused unused var or const
2019-09-24 11:45:29 -07:00
Dan Winship
ec4c1a1c05 Add e2enode.GetRandomReadySchedulableNode, replace some uses of framework.GetReadySchedulableNodesOrDie
For tests that want a single ready, schedulable node
2019-09-24 13:03:40 -04:00
Dan Winship
3c445b2ad0 Add e2enode.GetBoundedReadySchedulableNodes, replace some uses of framework.GetReadySchedulableNodesOrDie
For tests that want at-most-N nodes
2019-09-24 13:03:40 -04:00
Dan Winship
71b02dd422 Fix up e2enode.GetReadySchedulableNodes, replace many uses of framework.GetReadySchedulableNodesOrDie
Remove the "OrDie" from the name (since it doesn't "or die") and add
an extra check that there is at least 1 node available, since many
callers already did that themselves, and many others should have.
2019-09-24 13:03:39 -04:00
Kenichi Omichi
7c23ba1b34 Copy PrettyPrintJSON to core framework
PrettyPrintJSON is most used e2emetrics function and that doesn't seem
specific for metrics. The implementation itself is generic, so it is
nice to move it to core framework for avoiding circular dependency.
2019-09-23 18:10:50 +00:00
hwdef
321b690f62 fix(test): delete unused unused var or const 2019-09-20 14:41:53 +08:00
carlory
d1290ffdef clean up test code 2019-09-05 23:44:19 +08:00
draveness
702646df24 test(runtimeclass): add e2e tests for runtimeclass scheduling 2019-09-01 16:41:48 +08:00
Zhen Wang
d874dbfcb1 Bump NPD version to v0.7 for GCI 2019-08-27 22:26:30 -07:00
alejandrox1
7c161d6a5f Refactoring pod related functions from pv_util to pod pkg
Moving pod related functions from e2e/framework/pv_util.go to
e2e/framework/pod in order to allow refactoring of pv_util.go into its
own package.

Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2019-08-27 12:27:45 -04:00
Kenichi Omichi
c8e0c94a8a Move PrintPerfData to the test
PrintPerfData is called at e2e node tests and it depends on e2elog
and e2emetrics. This moves the function to the place which calls
the function for removing unnecessary dependencies from e2e node
subpackage.
2019-08-23 19:33:24 +00:00