@@ -342,34 +342,74 @@ tests:
342342 path : data.no_proxy
343343 value : " fake-no-proxy"
344344
345- - it : " has correct platform services value when onPremCompatibilityVersion is NOT provided"
345+ - it : " has correct platform services value when onPremCompatibilityVersion is NOT provided and region does NOT support platform services "
346346 set :
347347 global.sysdig.apiHost : " http://test.com"
348+ global.sysdig.region : " "
349+ asserts :
350+ - isNull :
351+ path : data.enable_platform_services
352+
353+ - it : " has correct platform services value when onPremCompatibilityVersion is NOT provided and region supports platform services"
354+ set :
355+ global.sysdig.apiHost : " http://test.com"
356+ global.sysdig.region : " us1"
348357 asserts :
349358 - equal :
350359 path : data.enable_platform_services
351360 value : " true"
352361
353- - it : " has correct platform services value when onPremCompatibilityVersion is < 6.6"
362+ - it : " has correct platform services value when onPremCompatibilityVersion is < 6.6 and region does NOT support platform services "
354363 set :
355364 global.sysdig.apiHost : " http://test.com"
356365 onPremCompatibilityVersion : " 6.5.99"
366+ global.sysdig.region : " "
357367 asserts :
358368 - isNull :
359369 path : data.enable_platform_services
360370
361- - it : " has correct platform services value when onPremCompatibilityVersion is = 6.5"
371+ - it : " has correct platform services value when onPremCompatibilityVersion is < 6.6 and region supports platform services"
372+ set :
373+ global.sysdig.apiHost : " http://test.com"
374+ onPremCompatibilityVersion : " 6.5.99"
375+ global.sysdig.region : " us1"
376+ asserts :
377+ - isNull :
378+ path : data.enable_platform_services
379+
380+ - it : " has correct platform services value when onPremCompatibilityVersion is = 6.5 and region does NOT support platform services"
362381 set :
363382 global.sysdig.apiHost : " http://test.com"
364383 onPremCompatibilityVersion : " 6.5"
384+ global.sysdig.region : " "
365385 asserts :
366386 - isNull :
367387 path : data.enable_platform_services
368388
369- - it : " has correct platform services value when onPremCompatibilityVersion is = 6.6.0"
389+ - it : " has correct platform services value when onPremCompatibilityVersion is = 6.5 and region supports platform services"
390+ set :
391+ global.sysdig.apiHost : " http://test.com"
392+ onPremCompatibilityVersion : " 6.5"
393+ global.sysdig.region : " us1"
394+ asserts :
395+ - isNull :
396+ path : data.enable_platform_services
397+
398+ - it : " has correct platform services value when onPremCompatibilityVersion is = 6.6.0 and region does NOT support platform services"
399+ set :
400+ global.sysdig.apiHost : " http://test.com"
401+ onPremCompatibilityVersion : " 6.6.0"
402+ global.sysdig.region : " "
403+ asserts :
404+ - equal :
405+ path : data.enable_platform_services
406+ value : " true"
407+
408+ - it : " has correct platform services value when onPremCompatibilityVersion is = 6.6.0 and region supports platform services"
370409 set :
371410 global.sysdig.apiHost : " http://test.com"
372411 onPremCompatibilityVersion : " 6.6.0"
412+ global.sysdig.region : " us1"
373413 asserts :
374414 - equal :
375415 path : data.enable_platform_services
@@ -393,7 +433,6 @@ tests:
393433 path : data.enable_platform_services
394434 value : " true"
395435
396-
397436 - it : " fails if onPremCompatibilityVersion is not a valid semver"
398437 set :
399438 global.sysdig.apiHost : " http://test.com"
0 commit comments