Commit Graph

16 Commits

Author SHA1 Message Date
Pavel Beschetnov
e25badc5de Reduce possible number of scale steps to improve test stability 2023-02-24 13:19:05 +00:00
Pavel Beschetnov
456de495ef Calculate more precise usage for replicas 2023-02-07 12:41:36 +00:00
Transmitt0r
50ed17a66e Changed remaining code to improve output for files under test/e2e/autoscaling 2022-12-29 17:42:02 +01:00
Patrick Ohly
2f6c4f5eab e2e: use Ginkgo context
All code must use the context from Ginkgo when doing API calls or polling for a
change, otherwise the code would not return immediately when the test gets
aborted.
2022-12-16 20:14:04 +01:00
Patrick Ohly
d4729008ef e2e: simplify test cleanup
ginkgo.DeferCleanup has multiple advantages:
- The cleanup operation can get registered if and only if needed.
- No need to return a cleanup function that the caller must invoke.
- Automatically determines whether a context is needed, which will
  simplify the introduction of context parameters.
- Ginkgo's timeline shows when it executes the cleanup operation.
2022-12-13 08:09:01 +01:00
Patrick Ohly
df5d84ae81 e2e: accept context from Ginkgo
Every ginkgo callback should return immediately when a timeout occurs or the
test run manually gets aborted with CTRL-C. To do that, they must take a ctx
parameter and pass it through to all code which might block.

This is a first automated step towards that: the additional parameter got added
with

    sed -i 's/\(framework.ConformanceIt\|ginkgo.It\)\(.*\)func() {$/\1\2func(ctx context.Context) {/' \
        $(git grep -l -e framework.ConformanceIt -e ginkgo.It )
    $GOPATH/bin/goimports -w $(git status | grep modified: | sed -e 's/.* //')

log_test.go was left unchanged.
2022-12-10 19:50:18 +01:00
Piotr Nosek
ed1a3e6f70 Fix flaky and failing HPA E2E Behavior tests 2022-09-09 12:57:48 +00:00
Piotr Nosek
a4bc164989 HPA E2E Behavior Test: Scale up/down controls 2022-08-19 16:57:17 +00:00
Piotr Nosek
aa9ed5209b Add e2e HPA Behavior tests: scale up&down limited by number of Pods per minute, scale up&down limited by percentage of Pods per minute 2022-08-04 09:33:52 +00:00
Piotr Nosek
1c455c10de Add e2e HPA Behavior tests: scale down stabilisation, scale up disabled, scale down disabled. 2022-07-20 09:03:31 +00:00
Dave Chen
857458cfa5 update ginkgo from v1 to v2 and gomega to 1.19.0
- update all the import statements
- run hack/pin-dependency.sh to change pinned dependency versions
- run hack/update-vendor.sh to update go.mod files and the vendor directory
- update the method signatures for custom reporters

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:46 +08:00
Joachim Bartosik
a936e21538 Revert "Add e2e test for HPA behavior: scale up delay"
The test is failing since its first run: #110662

This reverts commit a724818ad0.
2022-06-20 14:50:46 +02:00
Piotr Nosek
a724818ad0 Add e2e test for HPA behavior: scale up delay 2022-06-05 06:52:44 +00:00
Sergiusz Urbaniak
1495c9f2cd
test/e2e/*: default existing tests to privileged pod security policy
This is to ensure that all existing tests don't break when defaulting
the pod security policy to restricted in the e2e test framework.
2022-04-05 08:41:12 +02:00
Piotr Betkier
13c3f091a7 Small review fixes 2022-03-01 09:24:26 +01:00
Piotr Betkier
50200dc54f Add e2e test for HPA behavior: decreased downscale stabilization 2022-03-01 09:24:26 +01:00