Skip to content

Commit

Permalink
conformance spec and utils spec now pass
Browse files Browse the repository at this point in the history
  • Loading branch information
thewolfpack committed May 5, 2020
1 parent 73692a6 commit c1ce11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/cnf_conformance_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe CnfConformance do
it "'all' should run the whole test suite" do
# puts `pwd`
# puts `echo $KUBECONFIG`
# Test the binary
build_s = `crystal build src/cnf-conformance.cr`
$?.success?.should be_true
puts build_s
Expand All @@ -37,7 +38,7 @@ describe CnfConformance do
(/PASSED: Replicas decreased to 1/ =~ response_s).should_not be_nil
(/PASSED: Published Helm Chart Repo added/ =~ response_s).should_not be_nil
(/Final score:/ =~ response_s).should_not be_nil
(all_result_test_names(final_cnf_results_yml)).should eq(["privileged", "increase_capacity", "decrease_capacity", "ip_addresses", "liveness", "readiness", "install_script_helm", "helm_chart_valid", "helm_chart_published", "image_size_large"])
(all_result_test_names(final_cnf_results_yml)).should eq(["privileged", "increase_capacity", "decrease_capacity", "ip_addresses", "liveness", "readiness", "install_script_helm", "helm_chart_valid", "helm_chart_published", "image_size_large", "reasonable_startup_time"])
end

it "'scalability' should run all of the scalability tests" do
Expand Down
2 changes: 1 addition & 1 deletion spec/utils/utils_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe "Utils" do

it "'all_task_test_names' should return all tasks names"do
create_results_yml
(all_task_test_names()).should eq(["image_size_large","cni_spec", "api_snoop_alpha", "api_snoop_beta", "api_snoop_general_apis", "reset_cnf", "check_reaped", "privileged", "shells", "protected_access", "increase_capacity", "decrease_capacity", "small_autoscaling", "large_autoscaling", "network_chaos", "external_retry", "versioned_helm_chart", "ip_addresses", "liveness", "readiness", "no_volume_with_configuration", "rolling_update", "fluentd_traffic", "jaeger_traffic", "prometheus_traffic", "opentelemetry_compatible", "openmetric_compatible", "install_script_helm", "helm_chart_valid", "helm_chart_published", "hardware_affinity", "static_accessing_hardware", "dynamic_accessing_hardware", "direct_hugepages", "performance", "k8s_conformance"])
(all_task_test_names()).should eq(["image_size_large", "reasonable_startup_time","cni_spec", "api_snoop_alpha", "api_snoop_beta", "api_snoop_general_apis", "reset_cnf", "check_reaped", "privileged", "shells", "protected_access", "increase_capacity", "decrease_capacity", "small_autoscaling", "large_autoscaling", "network_chaos", "external_retry", "versioned_helm_chart", "ip_addresses", "liveness", "readiness", "no_volume_with_configuration", "rolling_update", "fluentd_traffic", "jaeger_traffic", "prometheus_traffic", "opentelemetry_compatible", "openmetric_compatible", "helm_deploy", "install_script_helm", "helm_chart_valid", "helm_chart_published", "hardware_affinity", "static_accessing_hardware", "dynamic_accessing_hardware", "direct_hugepages", "performance", "k8s_conformance"])
end

it "'all_result_test_names' should return the tasks assigned to a tag"do
Expand Down

0 comments on commit c1ce11c

Please sign in to comment.