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`