forked from cnti-testcatalog/testsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spec: remove backticks and use new logging
REF: cnti-testcatalog#1495 Replace all backtick command execution with ShellCmd module. Use Log instead of LOGGING module. Fix edgecase issues caused by logging refactor. Remove commented-out code. Signed-off-by: Konstantin Yarovoy <[email protected]>
- Loading branch information
Konstantin Yarovoy
committed
Apr 22, 2024
1 parent
8114e5d
commit af7b839
Showing
46 changed files
with
1,261 additions
and
1,814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 5 additions & 27 deletions
32
spec/cnf_testsuite_all/cnf_testsuite_config_lifecycle_spec.cr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,7 @@ | ||
#TODO Update Test | ||
# require "../spec_helper" | ||
# require "../../src/tasks/utils/utils.cr" | ||
# require "colorize" | ||
require "../spec_helper" | ||
require "../../src/tasks/utils/utils.cr" | ||
require "colorize" | ||
|
||
# describe CnfTestSuite do | ||
# before_all do | ||
# `./cnf-testsuite setup` | ||
# $?.success?.should be_true | ||
# end | ||
|
||
# after_all do | ||
# `./cnf-testsuite samples_cleanup` | ||
# $?.success?.should be_true | ||
# end | ||
|
||
# it "'testsuite all' should run the configuration lifecycle tests", tags: ["testsuite-config-lifecycle"] do | ||
# `./cnf-testsuite samples_cleanup` | ||
# response_s = `./cnf-testsuite all ~reasonable_startup_time ~reasonable_image_size ~disk_fill ~pod_delete ~pod_io_stress ~pod_network_latency ~pod_network_corruption ~pod_network_duplication ~pod_memory_hog ~chaos_network_loss ~node_drain ~pod_dns_error ~chaos_cpu_hog ~chaos_container_kill ~platform ~volume_hostpath_not_found ~privileged ~increase_capacity ~decrease_capacity ~helm_chart_valid ~helm_chart_published "cnf-config=./sample-cnfs/sample-coredns-cnf/cnf-testsuite.yml" verbose` | ||
# LOGGING.info response_s | ||
# (/PASSED: Helm readiness probe found/ =~ response_s).should_not be_nil | ||
# (/PASSED: Helm liveness probe/ =~ response_s).should_not be_nil | ||
# (/Final workload score:/ =~ response_s).should_not be_nil | ||
# (/Final score:/ =~ response_s).should_not be_nil | ||
# (CNFManager::Points.all_result_test_names(CNFManager::Points.final_cnf_results_yml).sort).should eq(["ip_addresses", "liveness", "readiness", "rolling_update", "rolling_downgrade", "rolling_version_change", "nodeport_not_used", "hostport_not_used", "hardcoded_ip_addresses_in_k8s_runtime_configuration", "rollback", "secrets_used", "immutable_configmap"].sort) | ||
# (/^.*\.cr:[0-9].*/ =~ response_s).should be_nil | ||
# $?.success?.should be_true | ||
# end | ||
# end | ||
describe CnfTestSuite do | ||
end |
Oops, something went wrong.