@@ -12,30 +12,30 @@ import (
1212 . "github.com/onsi/ginkgo/v2"
1313 . "github.com/onsi/gomega"
1414
15- operatorutil "github.com/operator-framework/operator-controller/internal/util "
15+ "github.com/operator-framework/operator-controller/internal/conditionsets "
1616)
1717
1818var _ = Describe ("OperatorTypes" , func () {
1919 Describe ("Condition Type and Reason constants" , func () {
20- It ("should register types in operatorutil .ConditionTypes" , func () {
20+ It ("should register types in conditionsets .ConditionTypes" , func () {
2121 types , err := parseConstants ("Type" )
2222 Expect (err ).NotTo (HaveOccurred ())
2323
2424 for _ , t := range types {
25- Expect (t ).To (BeElementOf (operatorutil .ConditionTypes ), "Append Type%s to operatorutil .ConditionTypes in this package's init function." , t )
25+ Expect (t ).To (BeElementOf (conditionsets .ConditionTypes ), "Append Type%s to conditionsets .ConditionTypes in this package's init function." , t )
2626 }
27- for _ , t := range operatorutil .ConditionTypes {
27+ for _ , t := range conditionsets .ConditionTypes {
2828 Expect (t ).To (BeElementOf (types ), "There must be a Type%[1]s string literal constant for type %[1]q (i.e. 'const Type%[1]s = %[1]q')" , t )
2929 }
3030 })
31- It ("should register reasons in operatorutil .ConditionReasons" , func () {
31+ It ("should register reasons in conditionsets .ConditionReasons" , func () {
3232 reasons , err := parseConstants ("Reason" )
3333 Expect (err ).NotTo (HaveOccurred ())
3434
3535 for _ , r := range reasons {
36- Expect (r ).To (BeElementOf (operatorutil .ConditionReasons ), "Append Reason%s to operatorutil .ConditionReasons in this package's init function." , r )
36+ Expect (r ).To (BeElementOf (conditionsets .ConditionReasons ), "Append Reason%s to conditionsets .ConditionReasons in this package's init function." , r )
3737 }
38- for _ , r := range operatorutil .ConditionReasons {
38+ for _ , r := range conditionsets .ConditionReasons {
3939 Expect (r ).To (BeElementOf (reasons ), "There must be a Reason%[1]s string literal constant for reason %[1]q (i.e. 'const Reason%[1]s = %[1]q')" , r )
4040 }
4141 })
0 commit comments