@@ -21,13 +21,13 @@ def fetch_nginx_chart_tgz(dest_dir : String, version = "15.10.0") : String
2121end
2222
2323describe " Installation" do
24- it " 'setup' should install all cnf-testsuite dependencies before installing cnfs" , tags: [" cnf_installation " ] do
24+ it " 'setup' should install all cnf-testsuite dependencies before installing cnfs" , tags: [" cnf_installation1 " ] do
2525 result = ShellCmd .run_testsuite(" setup" )
2626 result[:status ].success?.should be_true
2727 (/Dependency installation complete/ =~ result[:output ]).should_not be_nil
2828 end
2929
30- it " 'uninstall_all' should uninstall CNF and testsuite dependencies" , tags: [" cnf_installation " ] do
30+ it " 'uninstall_all' should uninstall CNF and testsuite dependencies" , tags: [" cnf_installation1 " ] do
3131 begin
3232 result = ShellCmd .cnf_install(" cnf-config=./sample-cnfs/sample-minimal-cnf/" )
3333 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
@@ -38,23 +38,23 @@ describe "Installation" do
3838 end
3939 end
4040
41- it " 'cnf_install' should pass with a minimal cnf-testsuite.yml" , tags: [" cnf_installation " ] do
41+ it " 'cnf_install' should pass with a minimal cnf-testsuite.yml" , tags: [" cnf_installation1 " ] do
4242 result = ShellCmd .cnf_install(" cnf-path=./sample-cnfs/sample-minimal-cnf/" )
4343 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
4444 ensure
4545 result = ShellCmd .cnf_uninstall()
4646 (/All CNF deployments were uninstalled/ =~ result[:output ]).should_not be_nil
4747 end
4848
49- it " 'cnf_install/cnf_uninstall' should install/uninstall with cnf-config arg as an alias for cnf-path" , tags: [" cnf_installation " ] do
49+ it " 'cnf_install/cnf_uninstall' should install/uninstall with cnf-config arg as an alias for cnf-path" , tags: [" cnf_installation1 " ] do
5050 result = ShellCmd .cnf_install(" cnf-config=./sample-cnfs/sample-minimal-cnf/" )
5151 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
5252 ensure
5353 result = ShellCmd .cnf_uninstall()
5454 (/All CNF deployments were uninstalled/ =~ result[:output ]).should_not be_nil
5555 end
5656
57- it " 'cnf_install/cnf_uninstall' should install/uninstall with cnf-path arg as an alias for cnf-config (.yml)" , tags: [" cnf_installation " ] do
57+ it " 'cnf_install/cnf_uninstall' should install/uninstall with cnf-path arg as an alias for cnf-config (.yml)" , tags: [" cnf_installation1 " ] do
5858 begin
5959 result = ShellCmd .cnf_install(" cnf-path=example-cnfs/coredns/cnf-testsuite.yml" )
6060 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
@@ -64,7 +64,7 @@ describe "Installation" do
6464 end
6565 end
6666
67- it " 'cnf_install/cnf_uninstall' should install/uninstall with cnf-path arg as an alias for cnf-config (.yaml)" , tags: [" cnf_installation " ] do
67+ it " 'cnf_install/cnf_uninstall' should install/uninstall with cnf-path arg as an alias for cnf-config (.yaml)" , tags: [" cnf_installation1 " ] do
6868 begin
6969 result = ShellCmd .cnf_install(" cnf-path=spec/fixtures/cnf-testsuite.yaml" )
7070 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
@@ -74,7 +74,7 @@ describe "Installation" do
7474 end
7575 end
7676
77- it " 'cnf_install/cnf_uninstall' should fail on incorrect config" , tags: [" cnf_installation " ] do
77+ it " 'cnf_install/cnf_uninstall' should fail on incorrect config" , tags: [" cnf_installation1 " ] do
7878 begin
7979 result = ShellCmd .cnf_install(" cnf-path=spec/fixtures/sample-bad-config.yml" , expect_failure: true )
8080 (/Error during parsing CNF config/ =~ result[:output ]).should_not be_nil
@@ -83,7 +83,7 @@ describe "Installation" do
8383 end
8484 end
8585
86- it " 'cnf_install/cnf_uninstall' should fail on invalid config path" , tags: [" cnf_installation " ] do
86+ it " 'cnf_install/cnf_uninstall' should fail on invalid config path" , tags: [" cnf_installation1 " ] do
8787 begin
8888 result = ShellCmd .cnf_install(" cnf-path=spec/fixtures/bad-config-path" , expect_failure: true )
8989 (/Invalid CNF configuration file: spec\/ fixtures\/ bad-config-path\. / =~ result[:output ]).should_not be_nil
@@ -92,7 +92,7 @@ describe "Installation" do
9292 end
9393 end
9494
95- it " 'cnf_install/cnf_uninstall' should install/uninstall a cnf with a cnf-testsuite.yml" , tags: [" cnf_installation " ] do
95+ it " 'cnf_install/cnf_uninstall' should install/uninstall a cnf with a cnf-testsuite.yml" , tags: [" cnf_installation1 " ] do
9696 begin
9797 result = ShellCmd .cnf_install(" cnf-config=example-cnfs/coredns/cnf-testsuite.yml" )
9898 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
@@ -102,7 +102,7 @@ describe "Installation" do
102102 end
103103 end
104104
105- it " 'cnf_install/cnf_uninstall' should work with cnf-testsuite.yml that has no directory associated with it" , tags: [" cnf_installation " ] do
105+ it " 'cnf_install/cnf_uninstall' should work with cnf-testsuite.yml that has no directory associated with it" , tags: [" cnf_installation1 " ] do
106106 begin
107107 # TODO force cnfs/<name> to be deployment name and not the directory name
108108 result = ShellCmd .cnf_install(" cnf-config=spec/fixtures/cnf-testsuite.yml" )
@@ -113,7 +113,7 @@ describe "Installation" do
113113 end
114114 end
115115
116- it " 'cnf_install/cnf_uninstall' should install/uninstall with helm_directory that descends multiple directories" , tags: [" cnf_installation " ] do
116+ it " 'cnf_install/cnf_uninstall' should install/uninstall with helm_directory that descends multiple directories" , tags: [" cnf_installation1 " ] do
117117 begin
118118 result = ShellCmd .cnf_install(" cnf-path=sample-cnfs/multi_helm_directories/cnf-testsuite.yml" )
119119 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
@@ -123,7 +123,7 @@ describe "Installation" do
123123 end
124124 end
125125
126- it " 'cnf_install/cnf_uninstall' should properly install/uninstall old versions of cnf configs" , tags: [" cnf_installation " ] do
126+ it " 'cnf_install/cnf_uninstall' should properly install/uninstall old versions of cnf configs" , tags: [" cnf_installation1 " ] do
127127 begin
128128 result = ShellCmd .cnf_install(" cnf-path=spec/fixtures/cnf-testsuite-v1-example.yml" )
129129 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
@@ -133,7 +133,7 @@ describe "Installation" do
133133 end
134134 end
135135
136- it " 'cnf_install' should fail if another CNF is already installed" , tags: [" cnf_installation " ] do
136+ it " 'cnf_install' should fail if another CNF is already installed" , tags: [" cnf_installation1 " ] do
137137 begin
138138 result = ShellCmd .cnf_install(" cnf-path=sample-cnfs/sample_coredns/cnf-testsuite.yml" )
139139 (/CNF installation complete/ =~ result[:output ]).should_not be_nil
@@ -145,7 +145,7 @@ describe "Installation" do
145145 end
146146 end
147147
148- it " 'cnf_install/cnf_uninstall' should install/uninstall a cnf with multiple deployments" , tags: [" cnf_installation " ] do
148+ it " 'cnf_install/cnf_uninstall' should install/uninstall a cnf with multiple deployments" , tags: [" cnf_installation1 " ] do
149149 begin
150150 result = ShellCmd .cnf_install(" cnf-path=sample-cnfs/sample_multiple_deployments/cnf-testsuite.yml" )
151151 (/All "coredns" deployment resources are up/ =~ result[:output ]).should_not be_nil
@@ -161,7 +161,7 @@ describe "Installation" do
161161 end
162162 end
163163
164- it " 'cnf_install/cnf_uninstall' should install/uninstall deployment with mixed installation methods" , tags: [" cnf_installation " ] do
164+ it " 'cnf_install/cnf_uninstall' should install/uninstall deployment with mixed installation methods" , tags: [" cnf_installation1 " ] do
165165 begin
166166 result = ShellCmd .cnf_install(" cnf-path=sample-cnfs/sample-nginx-redis/cnf-testsuite.yml" )
167167 (/All "nginx" deployment resources are up/ =~ result[:output ]).should_not be_nil
@@ -175,7 +175,7 @@ describe "Installation" do
175175 end
176176 end
177177
178- it " 'cnf_install/cnf_uninstall' should handle partial deployment failures gracefully" , tags: [" cnf_installation " ] do
178+ it " 'cnf_install/cnf_uninstall' should handle partial deployment failures gracefully" , tags: [" cnf_installation1 " ] do
179179 begin
180180 result = ShellCmd .cnf_install(" cnf-path=sample-cnfs/sample-partial-deployment-failure/cnf-testsuite.yml" , expect_failure: true )
181181 (/All "nginx" deployment resources are up/ =~ result[:output ]).should_not be_nil
@@ -187,7 +187,7 @@ describe "Installation" do
187187 end
188188 end
189189
190- it " 'cnf_install' should detect and report conflicts between deployments" , tags: [" cnf_installation " ] do
190+ it " 'cnf_install' should detect and report conflicts between deployments" , tags: [" cnf_installation1 " ] do
191191 begin
192192 result = ShellCmd .cnf_install(" cnf-path=spec/fixtures/sample-conflicting-deployments.yml" , expect_failure: true )
193193 (/Deployment names should be unique/ =~ result[:output ]).should_not be_nil
@@ -196,7 +196,7 @@ describe "Installation" do
196196 end
197197 end
198198
199- it " 'cnf_install' should correctly handle deployment priority" , tags: [" cnf_installation " ] do
199+ it " 'cnf_install' should correctly handle deployment priority" , tags: [" cnf_installation_priority " ] do
200200 # (kosstennbl) ELK stack requires to be installed with specific order, otherwise it would give errors
201201 begin
202202 result = ShellCmd .cnf_install(" cnf-path=sample-cnfs/sample-elk-stack/cnf-testsuite.yml" , timeout: 600 )
@@ -249,14 +249,14 @@ describe "Installation" do
249249 end
250250 end
251251
252- it " 'cnf_uninstall' should warn user if no CNF is found" , tags: [" cnf_installation " ] do
252+ it " 'cnf_uninstall' should warn user if no CNF is found" , tags: [" cnf_installation2 " ] do
253253 begin
254254 result = ShellCmd .cnf_uninstall()
255255 (/CNF uninstallation skipped/ =~ result[:output ]).should_not be_nil
256256 end
257257 end
258258
259- it " 'cnf_uninstall' should fail for a stuck manifest deployment" , tags: [" cnf_installation " ] do
259+ it " 'cnf_uninstall' should fail for a stuck manifest deployment" , tags: [" cnf_installation2 " ] do
260260 result = ShellCmd .cnf_install(" cnf-path=sample-cnfs/sample_stuck_finalizer/cnf-testsuite.yml" )
261261 result[:status ].success?.should be_true
262262
@@ -276,7 +276,7 @@ describe "Installation" do
276276 (/CNF uninstallation skipped/ =~ result[:output ]).should_not be_nil
277277 end
278278
279- it " 'cnf_uninstall' should fail for a stuck helm deployment" , tags: [" cnf_installation " ] do
279+ it " 'cnf_uninstall' should fail for a stuck helm deployment" , tags: [" cnf_installation2 " ] do
280280 result = ShellCmd .cnf_install(" cnf-path=sample-cnfs/sample_stuck_helm_deployment/" )
281281 result[:status ].success?.should be_true
282282
@@ -308,7 +308,7 @@ describe "Installation" do
308308 (/CNF uninstallation skipped/ =~ result[:output ]).should_not be_nil
309309 end
310310
311- it " 'cnf_install' should pass for oci repository" , tags: [" cnf_installation " ] do
311+ it " 'cnf_install' should pass for oci repository" , tags: [" cnf_installation2 " ] do
312312 local_registry_port = 53123
313313 tgz = fetch_nginx_chart_tgz(" sample-cnfs/sample_oci_repo" )
314314
@@ -355,7 +355,7 @@ describe "Installation" do
355355 end
356356 end
357357
358- it " 'cnf_install' should pass for private helm repository" , tags: [" cnf_installation " ] do
358+ it " 'cnf_install' should pass for private helm repository" , tags: [" cnf_installation2 " ] do
359359 chart_museum_port = 53124
360360 tgz = fetch_nginx_chart_tgz(" sample-cnfs/sample_private_repo" )
361361
@@ -400,7 +400,7 @@ describe "Installation" do
400400 end
401401 end
402402
403- it " 'cnf_install' should require client cert for OCI registry (mTLS)" , tags: [" cnf_installation " ] do
403+ it " 'cnf_install' should require client cert for OCI registry (mTLS)" , tags: [" cnf_installation2 " ] do
404404 registry_port = 54125
405405 reg_host = " 127.0.0.1.nip.io"
406406 reg_host_port = " #{ reg_host } :#{ registry_port } "
0 commit comments