diff --git a/spec/setup_spec.cr b/spec/setup_spec.cr index bb7c20617..60eb8ebaa 100644 --- a/spec/setup_spec.cr +++ b/spec/setup_spec.cr @@ -11,13 +11,13 @@ describe "Installation" do result = ShellCmd.environment_cleanup() end - it "'setup' should install all cnf-testsuite dependencies before installing cnfs", tags:["cnf_installation"] do + it "'setup' should install all cnf-testsuite dependencies before installing cnfs", tags: ["cnf_installation"] do result = ShellCmd.run_testsuite("setup") result[:status].success?.should be_true (/Dependency installation complete/ =~ result[:output]).should_not be_nil end - it "'cnf_install' should pass with a minimal cnf-testsuite.yml", tags:["cnf_installation"] do + it "'cnf_install' should pass with a minimal cnf-testsuite.yml", tags: ["cnf_installation"] do result = ShellCmd.cnf_install("cnf-path=./sample-cnfs/sample-minimal-cnf/") (/CNF installation complete/ =~ result[:output]).should_not be_nil ensure @@ -25,7 +25,7 @@ describe "Installation" do (/All CNF deployments were uninstalled/ =~ result[:output]).should_not be_nil end - it "'cnf_install/cnf_uninstall' should install/uninstall with cnf-config arg as an alias for cnf-path", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should install/uninstall with cnf-config arg as an alias for cnf-path", tags: ["cnf_installation"] do result = ShellCmd.cnf_install("cnf-config=./sample-cnfs/sample-minimal-cnf/") (/CNF installation complete/ =~ result[:output]).should_not be_nil ensure @@ -33,7 +33,7 @@ describe "Installation" do (/All CNF deployments were uninstalled/ =~ result[:output]).should_not be_nil end - it "'cnf_install/cnf_uninstall' should install/uninstall with cnf-path arg as an alias for cnf-config", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should install/uninstall with cnf-path arg as an alias for cnf-config", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=example-cnfs/coredns/cnf-testsuite.yml") (/CNF installation complete/ =~ result[:output]).should_not be_nil @@ -43,7 +43,7 @@ describe "Installation" do end end - it "'cnf_install/cnf_uninstall' should fail on incorrect config", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should fail on incorrect config", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=spec/fixtures/sample-bad-config.yml", expect_failure: true) (/Error during parsing CNF config/ =~ result[:output]).should_not be_nil @@ -52,7 +52,7 @@ describe "Installation" do end end - it "'cnf_install/cnf_uninstall' should install/uninstall a cnf with a cnf-testsuite.yml", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should install/uninstall a cnf with a cnf-testsuite.yml", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-config=example-cnfs/coredns/cnf-testsuite.yml") (/CNF installation complete/ =~ result[:output]).should_not be_nil @@ -62,7 +62,7 @@ describe "Installation" do end end - it "'cnf_install/cnf_uninstall' should work with cnf-testsuite.yml that has no directory associated with it", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should work with cnf-testsuite.yml that has no directory associated with it", tags: ["cnf_installation"] do begin #TODO force cnfs/ to be deployment name and not the directory name result = ShellCmd.cnf_install("cnf-config=spec/fixtures/cnf-testsuite.yml verbose") @@ -73,7 +73,7 @@ describe "Installation" do end end - it "'cnf_install/cnf_uninstall' should install/uninstall with helm_directory that descends multiple directories", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should install/uninstall with helm_directory that descends multiple directories", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=sample-cnfs/multi_helm_directories/cnf-testsuite.yml") (/CNF installation complete/ =~ result[:output]).should_not be_nil @@ -83,7 +83,7 @@ describe "Installation" do end end - it "'cnf_install/cnf_uninstall' should properly install/uninstall old versions of cnf configs", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should properly install/uninstall old versions of cnf configs", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=spec/fixtures/cnf-testsuite-v1-example.yml") (/CNF installation complete/ =~ result[:output]).should_not be_nil @@ -93,7 +93,7 @@ describe "Installation" do end end - it "'cnf_install' should fail if another CNF is already installed", tags:["cnf_installation"] do + it "'cnf_install' should fail if another CNF is already installed", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=sample-cnfs/sample_coredns/cnf-testsuite.yml") (/CNF installation complete/ =~ result[:output]).should_not be_nil @@ -105,7 +105,7 @@ describe "Installation" do end end - it "'cnf_install/cnf_uninstall' should install/uninstall a cnf with multiple deployments", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should install/uninstall a cnf with multiple deployments", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=sample-cnfs/sample_multiple_deployments/cnf-testsuite.yml") (/All "coredns" deployment resources are up/ =~ result[:output]).should_not be_nil @@ -121,7 +121,7 @@ describe "Installation" do end end - it "'cnf_install/cnf_uninstall' should install/uninstall deployment with mixed installation methods", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should install/uninstall deployment with mixed installation methods", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=sample-cnfs/sample-nginx-redis/cnf-testsuite.yml") (/All "nginx" deployment resources are up/ =~ result[:output]).should_not be_nil @@ -135,7 +135,7 @@ describe "Installation" do end end - it "'cnf_install/cnf_uninstall' should handle partial deployment failures gracefully", tags:["cnf_installation"] do + it "'cnf_install/cnf_uninstall' should handle partial deployment failures gracefully", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=sample-cnfs/sample-partial-deployment-failure/cnf-testsuite.yml", expect_failure: true) (/All "nginx" deployment resources are up/ =~ result[:output]).should_not be_nil @@ -146,7 +146,7 @@ describe "Installation" do end end - it "'cnf_install' should detect and report conflicts between deployments", tags:["cnf_installation"] do + it "'cnf_install' should detect and report conflicts between deployments", tags: ["cnf_installation"] do begin result = ShellCmd.cnf_install("cnf-path=spec/fixtures/sample-conflicting-deployments.yml", expect_failure: true) (/Deployment names should be unique/ =~ result[:output]).should_not be_nil @@ -155,7 +155,7 @@ describe "Installation" do end end - it "'cnf_install' should correctly handle deployment priority", tags:["cnf_installation"] do + it "'cnf_install' should correctly handle deployment priority", tags: ["cnf_installation"] do # (kosstennbl) ELK stack requires to be installed with specific order, otherwise it would give errors begin result = ShellCmd.cnf_install("cnf-path=sample-cnfs/sample-elk-stack/cnf-testsuite.yml timeout=600")