Clayton Coleman
b4aa9a189e
e2e: Wait only for the service account
...
Now that projected service account tokens do not require the secret
to be created, exclude the wait condition on the token and simply
wait for the service account.
2022-01-25 14:23:31 -05:00
Clayton Coleman
1608fc5e88
e2e: Wait for kube-root-ca.crt to be created
...
The change from service account secrets to projected tokens and
the new dependency on kube-root-ca.crt to start pods with those
projected tokens means that e2e tests can start before
kube-root-ca.crt is created in a namespace. Wait for the default
service account AND the kube-root-ca.crt configmap in normal
e2e tests.
2022-01-25 14:23:31 -05:00
Kubernetes Prow Robot
51b94de68f
Merge pull request #105451 from claudiubelu/tests/log-pod-logs
...
tests: Fetch the pod logs in failed cases
2021-11-18 13:33:36 -08:00
Claudiu Belu
afb8569620
tests: Fetch the pod logs in failed cases
...
For some test failures, checking the pod logs could potentially
yield some interesting information, which could be used to further
investigate certain failures / flakes (for example, if there are some
networking issues, we could at least see if requests reach the containers,
(agnhost logs the connections / requests), or if there were any
other issues during the container's startup).
2021-11-03 11:10:26 -07:00
Nikhil Sharma
2e1899244f
Changed code to improve output for files under test/e2e/framework
2021-11-03 17:29:05 +05:30
Antonio Ojea
0cd75e8fec
run hack/update-netparse-cve.sh
2021-08-20 10:42:09 +02:00
Clayton Coleman
286d989d8d
test/e2e: Allow test invokers to skip test waits before and after
...
A number of e2e tests are useful to run after the system has been
disrupted or is in the progress of being disrupted, but the current
suite and test logic blocks progress waiting for all nodes to be
healthy.
By passing -1 to --minStartupPods or --allowed-not-ready-nodes flags
the caller can bypass wait logic before and after test suites that
would prevent running e2e during disruption. This allows use of parts
of the e2e suite during cluster duress to verify that controllers or
components still function.
2021-02-04 20:14:05 -05:00
Justin SB
8797738c02
Fix spelling typos: scheduable -> schedulable
...
Bulk fix of a common typo.
2021-01-09 12:59:33 -05:00
Justin Santa Barbara
33055a8b6b
e2e: recognize multi-node control planes
...
We were treating multiple nodes as a failure; instead we can return all
the node (internal) IPs we find.
2021-01-09 09:18:29 -05:00
Fabio Bertinatto
ee082985c2
e2e: promote use of functions that support custom timeouts in storage tests.
...
WaitForPodSuccessInNamespace[Slow] are replaced by WaitForPodSuccessInNamespaceTimeout(),
so that custom timeouts are used instead of the hardcoded ones.
2020-12-02 16:14:13 -03:00
Fabio Bertinatto
3ec93da1b5
e2e: add custom timeouts to E2E framework
2020-12-02 15:57:58 -03:00
knight42
d321ac52a2
refactor: migrate node e2e tests off insecure port
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-10-20 00:12:58 +08:00
David Eads
64c099d670
remove secondary client retries in e2e tests
2020-10-15 08:30:42 -04:00
Kubernetes Prow Robot
05b3e8911a
Merge pull request #95166 from vishsangale/master-to-control-plane-test-e2e-GetMasterHost
...
Updated symbol 'framework.GetMasterHost' to not use word 'master'
2020-10-01 11:49:19 -07:00
Kubernetes Prow Robot
89fdf5e7d3
Merge pull request #95167 from vishsangale/master-to-control-plane-GetAllMasterAddresses
...
Updated symbol 'framework.GetAllMasterAddresses' to not use word 'mas…
2020-09-30 18:00:53 -07:00
Vishwanath Sangale
b8e733fb94
Updated symbol 'framework.GetAllMasterAddresses' to not use word 'master'
2020-09-29 21:43:10 -07:00
Vishwanath Sangale
395a6d89f6
Updated symbol 'framework.GetMasterHost' to not use word 'master'
2020-09-29 21:05:39 -07:00
Vinay Kulkarni
334cde51bf
Add LookForStringInPodExecToContainer that takes container name parameter, modify LookForStringInPodExec to call the new function.
2020-09-28 19:57:13 +00:00
Vinay Kulkarni
18f8c14359
Fix LookForStringInPodExec(...) to take container name as argument, and refactor function usage
...
Ref: PR 92127 review discussion https://github.com/kubernetes/kubernetes/pull/92127/files#r447853904
2020-09-25 02:15:21 +00:00
Maciej Szulik
eec4a04c2d
Use namespace flag passed to RunKubectl* methods
2020-09-11 14:51:03 +02:00
Kubernetes Prow Robot
a04f1b8d59
Merge pull request #93046 from oomichi/WatchUntilWithoutRetry
...
Move WatchUntilWithoutRetry() from e2e framework
2020-08-28 02:02:52 -07:00
Kubernetes Prow Robot
c143ea4bbf
Merge pull request #90522 from beautytiger/fix/nilranger
...
cleanup: no need nil check before range
2020-08-27 17:54:31 -07:00
Kenichi Omichi
c86caa608d
Move WatchUntilWithoutRetry() from e2e framework
...
WatchUntilWithoutRetry() is called from e2e/apps/rc.go only.
So this moves the function to reduce e2e/framework/util.go code.
2020-07-13 22:54:41 +00:00
Ciprian Hacman
33ac3c36cc
Add new flags for node arch
2020-07-13 20:25:14 +03:00
Kubernetes Prow Robot
f8705f22f8
Merge pull request #89705 from ggriffiths/add_snapshot_retainpolicy_e2e_test
...
Add VolumeSnapshot retain policy test and test for snapshot delete
2020-06-19 11:35:59 -07:00
Grant Griffiths
e1f0e4cd9f
Add retain policy test and refactor snapshottable tests
...
Signed-off-by: Grant Griffiths <grant@portworx.com>
2020-06-17 19:53:53 -07:00
Kubernetes Prow Robot
580eebb03b
Merge pull request #90944 from ii/ii-update-and-improve-configmap-resource-lifecycle-test
...
Update and improve ConfigMap resource lifecycle test
2020-06-16 19:22:05 -07:00
Caleb Woodbine
e8b70ce0da
Update docs
2020-06-11 11:08:24 +12:00
Kubernetes Prow Robot
089e8f48f2
Merge pull request #90720 from claudiubelu/tests/fqdn-svc-names
...
tests: Check FQDN for external services on Windows
2020-06-10 04:38:37 -07:00
Caleb Woodbine
5268ba5488
Ensure events occur regardless of the events in between
2020-06-10 10:51:39 +12:00
Claudiu Belu
2a07efe925
tests: Check FQDN for external services on Windows
...
Windows does not support partially qualified domain names, which is why the test can fail.
Additionally, because nslookup may return 0 on Windows, even if the given DNS name was not
found, this issue was not observed until recently. We're now checking stderr as well.
2020-06-09 02:36:20 -07:00
Caleb Woodbine
39fd803140
Move watch creating into the retry loop
2020-06-08 09:29:28 +12:00
Caleb Woodbine
63c694acdf
Fix verify
2020-06-04 08:57:28 +12:00
Caleb Woodbine
8945d98805
Update desc, naming, cleanup handling
2020-06-03 11:36:21 +12:00
Caleb Woodbine
cd314c193c
Fix linting
2020-05-28 08:36:34 +12:00
Caleb Woodbine
1db0ca74a9
Update correct resource version used, watch retry function to not close
2020-05-27 16:11:41 +12:00
Caleb Woodbine
250bb35041
Update documentation
2020-05-27 12:09:02 +12:00
Caleb Woodbine
9a77a00c7c
Fix formatting
2020-05-27 08:34:03 +12:00
Caleb Woodbine
b9c934102b
Update default retrywatcher resource version
2020-05-25 15:27:32 +12:00
Caleb Woodbine
1bdb854e7e
Add resource deleting if there wasn't a delete watch event found
2020-05-25 14:59:25 +12:00
Caleb Woodbine
9f0c24ddcf
Fix checks, amount checking
2020-05-25 13:33:48 +12:00
Caleb Woodbine
b63b147d12
Update name, watch event occurence checking
2020-05-25 11:49:57 +12:00
Caleb Woodbine
32e0da39fc
Update to use watcher
2020-05-21 15:58:55 +12:00
Caleb Woodbine
82d76e2d6d
Add dynamic client resource watch function
2020-05-21 10:00:17 +12:00
Caleb Woodbine
a3248a7ba8
Add documentation; Update base from invarients
2020-05-20 16:28:01 +12:00
Caleb Woodbine
fcb04acd70
Add WIP watch event tooling
2020-05-18 16:32:38 +12:00
Hemant Kumar
da941d8d3e
Create mock CSI driver resources in different namespace
2020-05-13 11:16:00 -04:00
Kubernetes Prow Robot
a0344973a3
Merge pull request #90591 from cofyc/fix-e2e-namespace-creation
...
e2e: regenerate namespace name if the name is already taken
2020-04-30 15:56:13 -07:00
tanjunchen
3b5ea194ea
test/e2e/framework : move AddOrUpdateTaintOnNode to subpackage node
2020-04-29 21:29:38 +08:00
Yecheng Fu
38c5da01ad
regenerate namespace name if the name is already taken
2020-04-29 17:27:52 +08:00