From 1ad8f4ef22ae89031941d4849b52154f290e6a2c Mon Sep 17 00:00:00 2001 From: barmull Date: Wed, 17 Apr 2024 16:53:30 +0200 Subject: [PATCH] Change location of increase_decrease_capacity task - right location is in compatibility_spec.cr Signed-off-by: barmull --- spec/workload/compatibility_spec.cr | 12 ++++++++++++ spec/workload/configuration_spec.cr | 13 ------------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/spec/workload/compatibility_spec.cr b/spec/workload/compatibility_spec.cr index 97720d895..9fda346db 100644 --- a/spec/workload/compatibility_spec.cr +++ b/spec/workload/compatibility_spec.cr @@ -33,4 +33,16 @@ describe "Compatibility" do end end + it "'increase_decrease_capacity' should pass ", tags: ["increase_decrease_capacity"] do + begin + LOGGING.info `./cnf-testsuite cnf_setup cnf-config=./sample-cnfs/sample_coredns/cnf-testsuite.yml verbose wait_count=0` + $?.success?.should be_true + response_s = `./cnf-testsuite increase_decrease_capacity verbose` + LOGGING.info response_s + $?.success?.should be_true + (/PASSED: Replicas increased to/ =~ response_s).should_not be_nil + ensure + `./cnf-testsuite cnf_cleanup cnf-config=./sample-cnfs/sample_coredns/cnf-testsuite.yml` + end + end end diff --git a/spec/workload/configuration_spec.cr b/spec/workload/configuration_spec.cr index f105fbbad..e1db4b210 100644 --- a/spec/workload/configuration_spec.cr +++ b/spec/workload/configuration_spec.cr @@ -48,19 +48,6 @@ describe CnfTestSuite do # end # end - it "'increase_decrease_capacity' should pass ", tags: ["increase_decrease_capacity"] do - begin - LOGGING.info `./cnf-testsuite cnf_setup cnf-config=./sample-cnfs/sample_coredns/cnf-testsuite.yml verbose wait_count=0` - $?.success?.should be_true - response_s = `./cnf-testsuite increase_decrease_capacity verbose` - LOGGING.info response_s - $?.success?.should be_true - (/PASSED: Replicas increased to/ =~ response_s).should_not be_nil - ensure - `./cnf-testsuite cnf_cleanup cnf-config=./sample-cnfs/sample_coredns/cnf-testsuite.yml` - end - end - it "'liveness' should pass when livenessProbe is set", tags: ["liveness"] do begin LOGGING.info `./cnf-testsuite cnf_setup cnf-config=./sample-cnfs/k8s-multiple-deployments/cnf-testsuite.yml deploy_with_chart=false`