@@ -14,14 +14,12 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- package annotation_test
17
+ package annotation
18
18
19
19
import (
20
20
. "github.com/onsi/ginkgo"
21
21
. "github.com/onsi/gomega"
22
22
"helm.sh/helm/v3/pkg/action"
23
-
24
- "github.com/joelanford/helm-operator/pkg/annotation"
25
23
)
26
24
27
25
var _ = Describe ("Annotation" , func () {
@@ -33,14 +31,14 @@ var _ = Describe("Annotation", func() {
33
31
})
34
32
35
33
Describe ("DisableHooks" , func () {
36
- var a annotation. InstallDisableHooks
34
+ var a InstallDisableHooks
37
35
38
36
BeforeEach (func () {
39
- a = annotation. InstallDisableHooks {}
37
+ a = InstallDisableHooks {}
40
38
})
41
39
42
40
It ("should return a default name" , func () {
43
- Expect (a .Name ()).To (Equal (annotation . DefaultInstallDisableHooksName ))
41
+ Expect (a .Name ()).To (Equal (defaultInstallDisableHooksName ))
44
42
})
45
43
46
44
It ("should return a custom name" , func () {
@@ -68,14 +66,14 @@ var _ = Describe("Annotation", func() {
68
66
})
69
67
70
68
Describe ("Description" , func () {
71
- var a annotation. InstallDescription
69
+ var a InstallDescription
72
70
73
71
BeforeEach (func () {
74
- a = annotation. InstallDescription {}
72
+ a = InstallDescription {}
75
73
})
76
74
77
75
It ("should return a default name" , func () {
78
- Expect (a .Name ()).To (Equal (annotation . DefaultInstallDescriptionName ))
76
+ Expect (a .Name ()).To (Equal (defaultInstallDescriptionName ))
79
77
})
80
78
81
79
It ("should return a custom name" , func () {
@@ -99,14 +97,14 @@ var _ = Describe("Annotation", func() {
99
97
})
100
98
101
99
Describe ("DisableHooks" , func () {
102
- var a annotation. UpgradeDisableHooks
100
+ var a UpgradeDisableHooks
103
101
104
102
BeforeEach (func () {
105
- a = annotation. UpgradeDisableHooks {}
103
+ a = UpgradeDisableHooks {}
106
104
})
107
105
108
106
It ("should return a default name" , func () {
109
- Expect (a .Name ()).To (Equal (annotation . DefaultUpgradeDisableHooksName ))
107
+ Expect (a .Name ()).To (Equal (defaultUpgradeDisableHooksName ))
110
108
})
111
109
112
110
It ("should return a custom name" , func () {
@@ -134,14 +132,14 @@ var _ = Describe("Annotation", func() {
134
132
})
135
133
136
134
Describe ("Force" , func () {
137
- var a annotation. UpgradeForce
135
+ var a UpgradeForce
138
136
139
137
BeforeEach (func () {
140
- a = annotation. UpgradeForce {}
138
+ a = UpgradeForce {}
141
139
})
142
140
143
141
It ("should return a default name" , func () {
144
- Expect (a .Name ()).To (Equal (annotation . DefaultUpgradeForceName ))
142
+ Expect (a .Name ()).To (Equal (defaultUpgradeForceName ))
145
143
})
146
144
147
145
It ("should return a custom name" , func () {
@@ -169,14 +167,14 @@ var _ = Describe("Annotation", func() {
169
167
})
170
168
171
169
Describe ("Description" , func () {
172
- var a annotation. UpgradeDescription
170
+ var a UpgradeDescription
173
171
174
172
BeforeEach (func () {
175
- a = annotation. UpgradeDescription {}
173
+ a = UpgradeDescription {}
176
174
})
177
175
178
176
It ("should return a default name" , func () {
179
- Expect (a .Name ()).To (Equal (annotation . DefaultUpgradeDescriptionName ))
177
+ Expect (a .Name ()).To (Equal (defaultUpgradeDescriptionName ))
180
178
})
181
179
182
180
It ("should return a custom name" , func () {
@@ -200,14 +198,14 @@ var _ = Describe("Annotation", func() {
200
198
})
201
199
202
200
Describe ("DisableHooks" , func () {
203
- var a annotation. UninstallDisableHooks
201
+ var a UninstallDisableHooks
204
202
205
203
BeforeEach (func () {
206
- a = annotation. UninstallDisableHooks {}
204
+ a = UninstallDisableHooks {}
207
205
})
208
206
209
207
It ("should return a default name" , func () {
210
- Expect (a .Name ()).To (Equal (annotation . DefaultUninstallDisableHooksName ))
208
+ Expect (a .Name ()).To (Equal (defaultUninstallDisableHooksName ))
211
209
})
212
210
213
211
It ("should return a custom name" , func () {
@@ -235,14 +233,14 @@ var _ = Describe("Annotation", func() {
235
233
})
236
234
237
235
Describe ("Description" , func () {
238
- var a annotation. UninstallDescription
236
+ var a UninstallDescription
239
237
240
238
BeforeEach (func () {
241
- a = annotation. UninstallDescription {}
239
+ a = UninstallDescription {}
242
240
})
243
241
244
242
It ("should return a default name" , func () {
245
- Expect (a .Name ()).To (Equal (annotation . DefaultUninstallDescriptionName ))
243
+ Expect (a .Name ()).To (Equal (defaultUninstallDescriptionName ))
246
244
})
247
245
248
246
It ("should return a custom name" , func () {
0 commit comments