carlory
5bbedd39c0
use log funcs of core framework in the auth, kubectl and windows pkg
2019-09-15 21:39:54 +08:00
Kubernetes Prow Robot
e176e47719
Merge pull request #82109 from wk8/wk8/gmsa-e2e
...
Adding an e2e test on GMSA support
2019-08-30 08:00:57 -07:00
Jean Rouge
fd788f3476
Adding an e2e test on GMSA support
...
The previously existing e2e GMSA test really only tests a small part of the
whole GMSA set up process, namely that once the API has inlined the GMSA
contents in the pod's spec, and sent that to a worker's kubelet, then the
kubelet passes that down to the runtime.
This new test, in contrast, really tests the whole thing, i.e. deploying the
admission webhook, then deploying a GMSA custom resource, and using that
resource within a pod.
The downside of this test though, is that it does need to make a lot of
assumptions about the cluster it runs against, notably that it runs on a worker
node that's already been joined to a working Active Directory domain (there are
other assumptions, all documented at the beginning of the test file); for that
reason, it is only intended to ever be run against an AKS cluster with the
custom AKS extension from
https://github.com/kubernetes-sigs/windows-testing/pull/98 .
Note that this test doesn't aim at testing every edge-case, such as
a pod trying to use a GMSA it doesn't have access to; the webhook has
its own tests for these. This test's goal is to ensure the happy path
doesn't break.
Signed-off-by: Jean Rouge <rougej+github@gmail.com >
2019-08-29 14:51:23 +00:00
Kubernetes Prow Robot
37016c3364
Merge pull request #80182 from wongma7/windows-hostpath-test-master
...
Create C:\tmp if DNE
2019-08-28 22:11:55 -07:00
Kubernetes Prow Robot
6c45b3c230
Merge pull request #79539 from bclau/tests/run-as-username
...
tests: Adds Windows RunAsUserName tests
2019-08-28 05:11:11 -07:00
Patrick Lang
0fd18fc06f
Updating log after framework code refactor
2019-08-26 21:52:57 +00:00
Lee Cattarin
9e0a1d20c4
Remove ndots check as it doesn't apply to windows
2019-08-26 21:52:57 +00:00
Lee Cattarin
c0e079bb15
Run hack/update-bazel
2019-08-26 21:52:57 +00:00
Lee Cattarin
d63c90e25f
Change custom DNS test to use ipconfig instead of resolv.conf
2019-08-26 21:52:57 +00:00
Michelle Cone
8858425a89
Add e2e DNS tests to windows tests
2019-08-26 21:52:57 +00:00
Claudiu Belu
dd2f11d722
tests: Adds RunAsUserName tests
...
Currently, Kubernetes supports running as different user (RunAsUser),
but it only supports UIDs, which does not work on Windows.
Which is why the field SecurityContext.WindowsOptions.RunAsUserName
was introduced, to allow us to run the container entrypoints with
a different user than its default one.
This commit adds E2E tests which will validate this behaviour. The
tests are Windows only, and they will be skipped if --node-os-distro
is not "windows".
2019-08-23 09:31:35 -07:00
Tim Allclair
49f50484b8
Delete duplicate resource.Quantity.Copy()
2019-08-19 17:23:14 -07:00
Kubernetes Prow Robot
614aab80f5
Merge pull request #78740 from oomichi/extend-check
...
Make the check strict to use ExpectNoError()
2019-07-30 01:59:04 -07:00
Kubernetes Prow Robot
63a43402a3
Merge pull request #77532 from WanLinghao/perf_refactor
...
Refactor and clean up e2e framework utils, this patch handles test/e2e/framework/perf_util.go file
2019-07-25 13:02:45 -07:00
WanLinghao
4c394ddf3b
Refactor and clean up e2e framework utils, this patch handles test/e2e/framework/perf_util.go
2019-07-25 09:41:00 +08:00
draveness
c38ae01f8e
feat: move service_util to separated package
2019-07-19 08:32:39 +08:00
Jiatong Wang
e24a962821
Fix error log issue, remove OrDie suffix in methods naming
2019-07-17 23:18:21 -07:00
Jiatong Wang
0b37152f17
Refactor and Move node related methods to framework/node package
...
Signed-off-by: Jiatong Wang <wangjiatong@vmware.com >
2019-07-17 22:54:15 -07:00
Matthew Wong
d5e838f864
Create C:\tmp if DNE
2019-07-15 15:10:38 -07:00
Kubernetes Prow Robot
b8a10b4e12
Merge pull request #79753 from alejandrox1/framework-metrics
...
Refactored metrics-related functions from framework/metrics_util.go
2019-07-15 14:54:02 -07:00
draveness
d3158b2c71
feat: use framework.ExpectNotEqual in e2e test
2019-07-10 21:36:26 +08:00
alejandrox1
348fd0805e
Refactored metrics-related functions from framework/metrics_util.go
...
This a refactoring of framework/metrics_utils.go into framework/metrics.
Signed-off-by: alejandrox1 <alarcj137@gmail.com >
2019-07-08 19:35:10 -04:00
Kubernetes Prow Robot
80bfec44a0
Merge pull request #79756 from draveness/feature/use-framework-expect-equal-in-e2e-test
...
feat: use framework.ExpectEqual in upgrades and windows e2e test
2019-07-05 20:34:34 -07:00
draveness
ff09cc5405
feat: use framework.ExpectEqual in upgrades and windows e2e test
2019-07-04 09:38:38 +08:00
Kubernetes Prow Robot
3c38115a32
Merge pull request #79045 from odinuge/file-perms
...
Fix file permissions for non executable files
2019-07-03 09:12:45 -07:00
Kubernetes Prow Robot
dc8b928136
Merge pull request #79162 from SataQiu/fix-test-20190619
...
Refactor: replace framework.Failf with e2elog.Failf
2019-06-21 12:17:04 -07:00
Aaron Crickenberger
b8d0ce4019
add import-alias for k8s.io/api/core/v1
2019-06-20 11:40:15 -07:00
SataQiu
332be4b1e3
refactor: replace framework.Failf with e2elog.Failf
2019-06-19 17:52:35 +08:00
Kenichi Omichi
d5bc1ae8aa
Make the check strict to use ExpectNoError()
...
As https://github.com/kubernetes/kubernetes/pull/78478 we can use
ExpectNoError() instead of Expect(err).ToNot(HaveOccurred()) also.
This makes the test code check strict to cover the above case and
replaces the remaining in test/e2e/common/expansion.go
2019-06-18 16:55:16 +00:00
Odin Ugedal
35cb87f9cf
Fix file permissions for non executable files
...
Normal files should have permissions 644 by default,
and does not require the last bit to be
executable
Signed-off-by: Odin Ugedal <odin@ugedal.com >
2019-06-14 21:04:50 +02:00
Jorge Alarcon Ochoa
4969a05327
Refactored pod-related functions from framework/util.go
...
This a refactoring of framework/utils.go into framework/pod.
Signed-off-by: Jorge Alarcon Ochoa <alarcj137@gmail.com >
2019-05-30 09:30:26 -04:00
Jean Rouge
b39d8f4777
Kubelet & implementation changes for Windows GMSA support
...
This patch comprises the kubelet changes outlined in the Windows GMSA KEP
(https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20181221-windows-group-managed-service-accounts-for-container-identity.md )
to add GMSA support to Windows workloads.
Updated tests.
Signed-off-by: Jean Rouge <rougej+github@gmail.com >
2019-05-16 22:07:03 -04:00
draveness
c045046e5b
feat: use framework.ExpectNoError instead in e2e test
2019-05-10 09:53:10 +08:00
John Schnake
2ede81c2a6
Move node, windows, and autoscaling tests to framework/log
...
This is part of the transition to using framework/log instead
of the Logf inside the framework package. This will help with
import size/cycles when importing the framework or subpackages.
2019-05-03 13:23:57 -05:00
draveness
04bb797ff6
refactor: use framework.ExpectNoError instead in e2e tests
2019-04-27 15:49:15 +08:00
Kenichi Omichi
78a93f8ced
Fix golint failures of e2e/framework/n*.go
2019-03-29 02:17:43 +00:00
Adelina Tuvenie
90b8c877ed
Update gmsa test
...
Wait for the container to be in Running state before running any command.
2019-03-07 17:04:25 +02:00
Kubernetes Prow Robot
dcbe588f76
Merge pull request #74938 from brusMX/win-e2e-nodeport
...
Creating NodePort test for Windows
2019-03-07 06:35:05 -08:00
Jean Rouge
b721f8e339
Adding an e2e test on Windows GMSA support
...
This patch is adding an e2e on the Windows GMSA support added in
https://github.com/kubernetes/kubernetes/pull/73726 and
https://github.com/kubernetes/kubernetes/pull/74737 .
Signed-off-by: Jean Rouge <rougej+github@gmail.com >
2019-03-06 17:58:18 -08:00
Jean Rouge
1d1a765e79
Updating Windows' e2e tests' README to the official repo list
...
Signed-off-by: Jean Rouge <rougej+github@gmail.com >
2019-03-06 17:58:18 -08:00
Bruno Medina
7cbbfcc9ef
Creating NodePort test for Windows
...
Co-authored-by: Muzz Imam <muzzz.imam@gmail.com >
2019-03-06 12:29:38 -08:00
Kubernetes Prow Robot
8060c94503
Merge pull request #74743 from lee0c/lecattar/win-mem-limits
...
Windows nodeAllocatable test
2019-03-06 00:44:17 -08:00
Lee Cattarin
0251a2493a
Remove dot imports
2019-03-05 11:58:28 -08:00
Lee Cattarin
b9c0d10ce7
Run hack/update-bazel
2019-03-01 09:33:28 -08:00
Lee Cattarin
e18a2ce2ea
Update copyright year
2019-02-28 15:13:44 -08:00
Lee Cattarin
b1e5d7c342
Replace agent role selector with windows OS selector
2019-02-28 12:26:21 -08:00
Lee Cattarin
fe6057456e
Test to check that allocatable memory limit is respected on windows & small edit to density test
...
Co-authored-by: Bruno Medina <bmedinab@gmail.com >
2019-02-28 11:32:34 -08:00
danielqsj
a60365e67b
Fix golint in test/e2e/windows/hybrid_network.go
2019-02-28 15:55:14 +08:00
danielqsj
1187936c18
Fix golint in test/e2e/windows/volumes.go
2019-02-28 15:48:48 +08:00
danielqsj
cee02e62b7
Fix golint failures for e2e/windows
2019-02-28 15:48:48 +08:00