Skip to content

Commit

Permalink
Change location of increase_decrease_capacity task
Browse files Browse the repository at this point in the history
- right location is in compatibility_spec.cr

Signed-off-by: barmull <[email protected]>
  • Loading branch information
barmull committed Apr 17, 2024
1 parent 13fa681 commit 1ad8f4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
12 changes: 12 additions & 0 deletions spec/workload/compatibility_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 0 additions & 13 deletions spec/workload/configuration_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 1ad8f4e

Please sign in to comment.