@@ -174,8 +174,8 @@ Copyright 2019 Example Owners.
174
174
})
175
175
Context ("with defaults " , func () {
176
176
It ("should match the golden file" , func () {
177
- instance := & Makefile {Image : "controller:latest" , ControllerToolsPath : ".." }
178
- instance .Repo = "sigs.k8s.io/controller-tools /test"
177
+ instance := & Makefile {Image : "controller:latest" }
178
+ instance .Repo = "sigs.k8s.io/kubebuilder /test/project "
179
179
Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
180
180
181
181
// Verify the contents matches the golden file.
@@ -191,8 +191,8 @@ Copyright 2019 Example Owners.
191
191
})
192
192
Context ("with defaults " , func () {
193
193
It ("should match the golden file" , func () {
194
- instance := & Kustomize {Prefix : "test " }
195
- instance .Repo = "sigs.k8s.io/controller-tools /test"
194
+ instance := & Kustomize {Prefix : "project " }
195
+ instance .Repo = "sigs.k8s.io/kubebuilder /test/project "
196
196
Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
197
197
198
198
// Verify the contents matches the golden file.
@@ -209,7 +209,7 @@ Copyright 2019 Example Owners.
209
209
Context ("with defaults " , func () {
210
210
It ("should match the golden file" , func () {
211
211
instance := & KustomizeImagePatch {}
212
- instance .Repo = "sigs.k8s.io/controller-tools /test"
212
+ instance .Repo = "sigs.k8s.io/kubebuilder /test/project "
213
213
Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
214
214
215
215
// Verify the contents matches the golden file.
@@ -242,9 +242,9 @@ Copyright 2019 Example Owners.
242
242
Context ("with defaults" , func () {
243
243
It ("should match the golden file" , func () {
244
244
instance := & Project {}
245
- instance .Version = "2 "
245
+ instance .Version = "1 "
246
246
instance .Domain = "testproject.org"
247
- instance .Repo = "sigs.k8s.io/controller-tools /test"
247
+ instance .Repo = "sigs.k8s.io/kubebuilder /test/project "
248
248
Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
249
249
250
250
// Verify the contents matches the golden file.
@@ -256,10 +256,10 @@ Copyright 2019 Example Owners.
256
256
It ("should return the directory if it is under the gopath" , func () {
257
257
instance := & Project {}
258
258
repo , err := instance .repoFromGopathAndWd ("/home/fake/go" , func () (string , error ) {
259
- return "/home/fake/go/src/kubernetes-sigs/controller-tools " , nil
259
+ return "/home/fake/go/src/kubernetes-sigs/kubebuilder " , nil
260
260
})
261
261
Expect (err ).NotTo (HaveOccurred ())
262
- Expect (repo ).To (Equal ("kubernetes-sigs/controller-tools " ))
262
+ Expect (repo ).To (Equal ("kubernetes-sigs/kubebuilder " ))
263
263
})
264
264
265
265
It ("should return an error if the wd is not under GOPATH" , func () {
0 commit comments