Skip to content

Commit 9c8ed61

Browse files
committed
rename test image name for onboarding to cirros-kvm
1 parent 87a3a9a commit 9c8ed61

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/controller/onboarding_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const (
5555
defaultWaitTime = 1 * time.Minute
5656
testProjectName = "test"
5757
testDomainName = "cc3test"
58-
testImageName = "cirros-d240801-kvm"
58+
testImageName = "cirros-kvm"
5959
testPrefixName = "ohooc-"
6060
testVolumeType = "kvm-pilot"
6161
OnboardingControllerName = "onboarding"
@@ -236,7 +236,7 @@ func (r *OnboardingController) smokeTest(ctx context.Context, hv *kvmv1.Hypervis
236236
zone := hv.Labels[corev1.LabelTopologyZone]
237237
server, err := r.createOrGetTestServer(ctx, zone, host, hv.UID)
238238
if err != nil {
239-
return ctrl.Result{}, fmt.Errorf("failed to create or get test instance %w", err)
239+
return ctrl.Result{}, fmt.Errorf("failed to create or get test instance: %w", err)
240240
}
241241

242242
switch server.Status {
@@ -504,7 +504,7 @@ func (r *OnboardingController) createOrGetTestServer(ctx context.Context, zone,
504504

505505
imageRef, err := r.findTestImage(ctx)
506506
if err != nil {
507-
return nil, fmt.Errorf("could not list networks due to %w", err)
507+
return nil, fmt.Errorf("could not list networks: %w", err)
508508
}
509509

510510
networkRef, err := r.findTestNetwork(ctx)
@@ -580,7 +580,7 @@ func (r *OnboardingController) findTestImage(ctx context.Context) (string, error
580580
}
581581
}
582582

583-
return "", errors.New("couldn't find image")
583+
return "", fmt.Errorf("couldn't find image with name %v", testImageName)
584584
}
585585

586586
func (r *OnboardingController) findTestFlavor(ctx context.Context) (string, error) {

internal/controller/onboarding_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ var _ = Describe("Onboarding Controller", func() {
112112
"images": [
113113
{
114114
"status": "active",
115-
"name": "cirros-d240801-kvm",
115+
"name": "cirros-kvm",
116116
"tags": [],
117117
"container_format": "bare",
118118
"created_at": "2014-11-07T17:07:06Z",

0 commit comments

Comments
 (0)