package Ġde . jos hu agle it ze . gradle . kubernetes . dsl Ċ Ċ import Ġch . tut tel i . at rium . api . fluent . en _ GB . not ToBe Null Ċ import Ġch . tut tel i . at rium . api . ver bs . expect Ċ import Ġde . jos hu agle it ze . gradle . kubernetes . Kubernetes Plugin Ċ import Ġde . jos hu agle it ze . gradle . kubernetes . dsl . Kubernetes Extension . Companion . kubernetes Ċ import Ġde . jos hu agle it ze . test . find ByName Ċ import Ġde . jos hu agle it ze . test . tasks Ċ import Ġio . kot est . core . spec . Isolation Mode Ċ import Ġio . kot est . core . spec . style . Describe Spec Ċ import Ġorg . gradle . kotlin . dsl . apply Ċ import Ġorg . gradle . test fixtures . Project Builder Ċ Ċ class ĠCluster Configuration Behaviour Spec Ġ: ĠDescribe Spec ({ Ċ ĉ is olation Mode Ġ= ĠI sol ation Mode . Instance Per Leaf Ċ ĉ val Ġtest Project Ġ= ĠProject Builder . builder (). build (). also Ġ{ Ġit . plugins . apply ( Kubernetes Plugin :: class ) Ġ} ĊĊ ĉ before Each Ġ{ Ċĉ ĉ test Project . kubernetes . apply Ġ{ Ċĉĉ ĉ cluster (" dev ") Ġ{ Ċĉĉĉ ĉ it . kube config Context (" test - dev ") Ċĉĉ ĉ } Ċĉĉ ĉ cluster (" integration ") Ġ{ Ċĉĉĉ ĉ it . kube config Context (" test - integration ") Ċĉĉ ĉ } Ċĉĉ ĉ cluster (" production ") Ġ{ Ċĉĉĉ ĉ it . kube config Context (" test - production ") Ċĉĉ ĉ } Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ describe (" cluster Ġconfiguration ") Ġ{ Ċĉ ĉ describe (" be haviour ") Ġ{ Ċĉĉ ĉ it (" creates Ġa Ġdeploy Ġtask Ġfor Ġevery Ġcluster ") Ġ{ Ċĉĉĉ ĉ expect ( test Project ). tasks Ġ{ Ċĉĉĉĉ ĉ find ByName (" deploy Dev "). not ToBe Null () Ċĉĉĉĉ ĉ find ByName (" deploy Integration "). not ToBe Null () Ċĉĉĉĉ ĉ find ByName (" deploy Production "). not ToBe Null () Ċĉĉĉ ĉ } Ċĉĉ ĉ } ĊĊĉĉ ĉ it (" creates Ġa Ġteardown Ġtask Ġfor Ġevery Ġcluster ") Ġ{ Ċĉĉĉ ĉ expect ( test Project ). tasks Ġ{ Ċĉĉĉĉ ĉ find ByName (" teardown Dev "). not ToBe Null () Ċĉĉĉĉ ĉ find ByName (" teardown Integration "). not ToBe Null () Ċĉĉĉĉ ĉ find ByName (" teardown Production "). not ToBe Null () Ċĉĉĉ ĉ } Ċĉĉ ĉ } Ċĉ ĉ } Ċ ĉ } Ċ }) Ċ