github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/caas/kubernetes/provider/init_test.go (about) 1 // Copyright 2020 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package provider_test 5 6 import ( 7 gc "gopkg.in/check.v1" 8 9 "github.com/juju/juju/caas/kubernetes/provider" 10 "github.com/juju/juju/testing" 11 ) 12 13 type initSuite struct { 14 testing.BaseSuite 15 } 16 17 var _ = gc.Suite(&initSuite{}) 18 19 func (s *initSuite) TestLabelSelectorGlobalResourcesLifecycle(c *gc.C) { 20 c.Assert( 21 provider.CompileLifecycleApplicationRemovalSelector().String(), gc.DeepEquals, 22 `juju-resource-lifecycle notin (model,persistent)`, 23 ) 24 c.Assert( 25 provider.CompileLifecycleModelTeardownSelector().String(), gc.DeepEquals, 26 `juju-resource-lifecycle notin (persistent)`, 27 ) 28 }