Hemant Kumar
e011187114
Update code to use new generic allocatedResourceStatus field
2023-07-17 15:30:35 -04:00
Jan Safranek
052b06bdad
Remove test Pods sharing a single local PV
...
The test runs two pods accessing the same local volume, which is duplicate
with "Two pods mounting a local volume at the same time" test.
2023-07-13 18:33:18 +02:00
Kubernetes Prow Robot
77ad8a516d
Merge pull request #119025 from ii/remove-csidriver-test
...
Remove conformance test for StorageV1CSIDriver Endpoints
2023-07-05 17:53:02 -07:00
Patrick Ohly
c903c29c3b
e2e: support admissionapi.LevelRestricted in test/e2e/framwork/pod
...
CreatePod and MakePod only accepted an `isPrivileged` boolean, which made it
impossible to write tests using those helpers which work in a default
framework.Framework, because the default there is LevelRestricted.
The simple boolean gets replaced with admissionapi.Level. Passing
LevelRestricted does the same as calling e2epod.MixinRestrictedPodSecurity.
Instead of explicitly passing a constant to these modified helpers, most tests
get updated to pass f.NamespacePodSecurityLevel. This has the advantage
that if that level gets lowered in the future, tests only need to be updated in
one place.
In some cases, helpers taking client+namespace+timeouts parameters get replaced
with passing the Framework instance to get access to
f.NamespacePodSecurityEnforceLevel. These helpers don't need separate
parameters because in practice all they ever used where the values from the
Framework instance.
2023-07-03 16:26:28 +02:00
Stephen Heywood
96694514a7
Remove csiDriver Conformance test
...
This test is redundant as the csiDriver lifecycle test (118478)
includes the same functionality.
2023-07-03 08:50:16 +12:00
Kubernetes Prow Robot
ec9a8ffb23
Merge pull request #116977 from cvvz/fix-docs
...
docs: fix storage e2e test README
2023-06-29 11:09:59 -07:00
Stanislav Laznicka
7f532891c9
e2e tests: set all PSa labels instead of just enforcing
2023-06-21 15:05:13 +02:00
Kubernetes Prow Robot
232cdf9716
Merge pull request #118624 from jsafrane/iscsi-dbus
...
iscsi: use dbus from the host
2023-06-13 05:00:09 -07:00
Jan Safranek
75cf25c0e7
iscsi: use dbus from the host
...
When running iscsi test, use dbus socket from the host. targetcli uses the
socket for synchronization.
Recent Fedoras can run dbus only via systemd, which is cumbersome here.
2023-06-12 15:45:19 +02:00
Patrick Ohly
f7a5817bc6
e2e storage: terminate worker quietly on test completion
...
Once DeferCleanup for the worker goroutine is invoked, there's no need to
continue doing anything anymore in that goroutine and it can return
immediately, without reporting the "context canceled" error because there is no
other reason for that.
2023-06-12 15:41:43 +02:00
Kubernetes Prow Robot
a2b8297a89
Merge pull request #118478 from ii/promote-csidriver-test
...
Promote test for StorageV1CSIDriver Endpoints + 3 Endpoints
2023-06-07 17:52:12 -07:00
Onsi Fakhouri
88b69cdd0e
Fix flaky persistent volumes e2e test
...
Fixes issue 115945 by moving the cleanup code in AfterEach into DeferCleanup.
Cleanup stanzas are now paired with their setup stanzas within the body
of the BeforeEach and are now guarenteed to run in the correct order.
Prior to this there was no guarantee that the goroutine to recycle
unbound PVs had finished before the AfterEach began.
2023-06-07 07:51:52 -06:00
Kubernetes Prow Robot
901edb5a26
Merge pull request #118504 from jsafrane/fix-selinux-contexts
...
Fix SELinux contexts used in e2e tests
2023-06-06 11:18:50 -07:00
Jan Safranek
4d0e25151d
Fix SELinux contexts used in e2e tests
2023-06-06 11:30:27 +02:00
Stephen Heywood
5d4bf0b6f9
Promote CSIDriver e2e test to Conformance
2023-06-06 10:28:39 +12:00
jinxu
b994e639a6
Add mininumKubelet tag into ReadWriteOncePod test
...
ReadWriteOncePod feature needs min requirement of 1.27 kubelet, add the
tag to skip test if kubelet version is smaller than 1.27
Change-Id: I27959156db90f2477cead6dfc16f42dbc54663bc
2023-06-04 23:10:10 -07:00
Patrick Ohly
455169bd66
e2e storage: add missing error checking for WaitForVolumeAttachmentTerminated
...
The function returns an error that tests must check to detect when
there was a failure.
2023-05-26 17:43:13 +02:00
Kubernetes Prow Robot
ffc0346400
Merge pull request #118099 from ii/create-csidriver-test
...
Write e2e test for StorageV1CSIDriver Endpoints + 3 Endpoints
2023-05-25 08:45:03 -07:00
Kubernetes Prow Robot
ddf958ee06
Merge pull request #118097 from jsafrane/add-kind-e2e
...
Add test for starting kubelet with a CSI volume mounted
2023-05-24 06:24:50 -07:00
Stephen Heywood
05b3beb7f0
Create e2e test for CSIDriver endpoints
...
e2e test validates the following 3 endpoints
- deleteStorageV1CollectionCSIDriver
- patchStorageV1CSIDriver
- replaceStorageV1CSIDriver
2023-05-24 20:04:27 +12:00
Jan Šafránek
149f4878a7
Simplify DeferCleanup.
...
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com >
2023-05-23 14:46:05 +02:00
Patrick Ohly
dbb6d25f13
e2e: apply timeout for CSI Storage Capacity test only to node
...
Applying it to the entire spec included cleaning up, which makes predicting the
acceptable duration harder because it includes code not owned by the test
itself. It's better to specify a timeout only for the test code itself.
2023-05-23 08:29:10 +02:00
Jan Safranek
b30720fc9f
Add test for starting kubelet with a CSI volume mounted
...
To test https://github.com/kubernetes/kubernetes/issues/117745 ,
restart kubelet with a CSI volume mounted *and* the API server running as a
static pod.
The test heavily uses `kind` containers and the fact that it uses the API
server as a static pod.
2023-05-22 15:31:40 +02:00
Humble Chirammal
36f0caf7ec
remove GlusterFS references from test/e2e/* comments/descriptions
...
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
2023-05-17 17:40:28 +05:30
Ricky Sadowski
8580c116d5
fix: use dl.k8s.io, not kubernetes-release bucket
...
This PR updates changes related references to the legacy
release bucket, excluding CHANGELOG updates.
Signed-off-by: Ricky Sadowski <richard.j.sadowski@gmail.com >
2023-05-13 10:57:41 +00:00
Kubernetes Prow Robot
510b3366be
Merge pull request #111730 from olemarkus/strip-default-annotation
...
Remove default annotations from copied storage class
2023-05-07 19:47:18 -07:00
Kubernetes Prow Robot
3554bcde87
Merge pull request #117368 from sunnylovestiramisu/fix
...
Fix nil pointer in test AfterEach for volumeperf.go
2023-04-26 21:54:14 -07:00
Julianne DeMars
217196c59f
Add ROX storage tests ( #114628 )
...
* Add ROX tests
* Add capability and switch to secpod
* addmissing file
* remove extra param
* run-formatter
* add anticapability for resize w/ Restore + ROX
* remove size checking in ROX tests
* fix spacing
* fix spacing
2023-04-26 10:22:16 -07:00
Kubernetes Prow Robot
0b53923a7a
Merge pull request #117286 from humblec/e2e-improvements
...
remove `expansionFailed` const in volume expansion and avoid var name collision
2023-04-26 06:16:13 -07:00
Sunny Song
e340325024
Fix nil pointer in test AfterEach for volumeperf.go
2023-04-17 18:44:13 +00:00
Kubernetes Prow Robot
bd24043551
Merge pull request #117216 from gnufied/fix-azure-disk-e2e
...
Fix azure disk e2e after migration and while using external CCM
2023-04-12 08:34:32 -07:00
Kubernetes Prow Robot
242702cb86
Merge pull request #116940 from sarab97/sarab/feat/sets
...
Use the generic Set in scheduler
2023-04-11 19:17:14 -07:00
Kubernetes Prow Robot
d0fc9d16ce
Merge pull request #114800 from haoruan/feature-8976-spew-sprintf-refactor
...
Capture spew.Sprintf() with all our favorite config into a util func
2023-04-11 15:34:57 -07:00
Hemant Kumar
901dea7307
Fix azure disk e2e after migration
2023-04-11 15:02:25 -04:00
Humble Chirammal
9204e6b286
remove unused constant expansionFailed in expansion test.
...
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
2023-04-11 16:51:35 +05:30
Humble Chirammal
4491ba8917
rename variable delete to avoid collision to builtin variable
...
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
2023-04-11 16:51:35 +05:30
sarab
8d18ae6fc2
Use the generic Set in scheduler
2023-04-09 11:34:17 +05:30
weizhichen
7bfcfc4d5d
docs: fix storage e2e test README
2023-03-28 23:36:42 +00:00
Hao Ruan
f638e2849f
replaced spew.Sprintf with a util pretty print function
2023-03-27 09:24:22 +08:00
Kubernetes Prow Robot
20e8b20b75
Merge pull request #116569 from tukwila/validate_testVols
...
check if test volumes created
2023-03-15 12:20:31 -07:00
Kubernetes Prow Robot
f7bcff44cd
Merge pull request #116425 from jsafrane/flip-selinux
...
Flip SELinuxMountReadWriteOncePod to Beta
2023-03-14 16:34:41 -07:00
Jan Safranek
a84dc2d5c5
Flip SELinuxMountReadWriteOncePod to Beta
...
And enable all e2e tests by default. They're still behind
`[Feature:SELinux]` tag to ensure the underlying OS supports SELinux.
2023-03-14 14:32:38 +01:00
zhucan
80ff4b90a5
e2e: test for node expand volume with secrets failed
...
Signed-off-by: zhucan <zhucan.k8s@gmail.com >
2023-03-14 21:12:31 +08:00
Paco Xu
a5587de2e4
print all calls when compare CSI call failed
2023-03-14 18:03:08 +08:00
Paco Xu
40d543a59d
check node expand secret ref and fix CSI calls compare failure
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io >
2023-03-14 16:51:46 +08:00
Paco Xu
2f71a635af
get pvc again to get the pv name that bound to the PVC
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io >
2023-03-14 16:51:46 +08:00
guangli.bao
e0e835c63c
check if test volumes created
2023-03-14 14:09:54 +08:00
Kubernetes Prow Robot
6612af0af0
Merge pull request #110304 from RomanBednar/resize-e2e
...
add e2e test for correct resizing of a snaphot restore
2023-03-13 22:27:08 -07:00
Kubernetes Prow Robot
1f2d49972c
Merge pull request #116424 from jsafrane/add-selinux-metric-test
...
Add e2e tests for SELinux metrics
2023-03-10 12:41:06 -08:00
Jan Safranek
771c9be291
Add e2e test for SELinux metrics
...
This is the commit message for patch #2 (refresh-temp):
2023-03-10 15:03:56 +01:00