Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added spec test for increase_decrease_capacity test #1866

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions spec/workload/configuration_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ 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
Loading