Skip to content

Commit 87eddd3

Browse files
committed
fix tests
1 parent a267944 commit 87eddd3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

cmd/installer/cli/enable_ha.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ func runEnableHA(ctx context.Context, flags EnableHACmdFlags) error {
7474

7575
if config.HasCustomRoles() {
7676
controllerRoleName := config.GetControllerRoleName()
77-
logrus.Info("\nHigh availability can be enabled once you have three or more %s nodes.", controllerRoleName)
77+
logrus.Infof("\nHigh availability can be enabled once you have three or more %s nodes.", controllerRoleName)
7878
logrus.Info("Enabling it will replicate data across cluster nodes.")
79-
logrus.Info("After HA is enabled, you must maintain at least three %s nodes.\n", controllerRoleName)
79+
logrus.Infof("After HA is enabled, you must maintain at least three %s nodes.\n", controllerRoleName)
8080
} else {
8181
logrus.Info("\nHigh availability can be enabled once you have three or more nodes.")
8282
logrus.Info("Enabling it will replicate data across cluster nodes.")

cmd/installer/cli/install.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ func verifyChannelRelease(cmdName string, isAirgap bool, assumeYes bool) error {
529529
channelRelease := release.GetChannelRelease()
530530

531531
if channelRelease != nil && channelRelease.Airgap && !isAirgap && !assumeYes {
532-
logrus.Warnf("You downloaded an air gap bundle but didn't provide it with --airgap-bundle.")
533-
logrus.Warnf("If you continue, the %s will not use an air gap bundle and will connect to the internet.", cmdName)
532+
logrus.Warnf("\nYou downloaded an air gap bundle but didn't provide it with --airgap-bundle.")
533+
logrus.Warnf("If you continue, the %s will not use an air gap bundle and will connect to the internet.\n", cmdName)
534534
if !prompts.New().Confirm(fmt.Sprintf("Do you want to proceed with an online %s?", cmdName), false) {
535535
// TODO: send aborted metrics event
536536
return NewErrorNothingElseToAdd(errors.New("user aborted: air gap bundle downloaded but flag not provided"))

cmd/installer/cli/restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func runRestoreStepNew(ctx context.Context, name string, flags InstallCmdFlags,
345345
}
346346

347347
if !s3BackupStoreHasData(s3Store) {
348-
logrus.Infof("You'll be guided through the process of restoring %s from a backup.\n", name)
348+
logrus.Infof("\nYou'll be guided through the process of restoring %s from a backup.\n", name)
349349
logrus.Info("Enter information to configure access to your backup storage location.\n")
350350

351351
promptForS3BackupStore(s3Store)

tests/integration/kind/registry/ha_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func TestRegistry_EnableHAAirgap(t *testing.T) {
123123
loading := newTestingSpinner(t)
124124
func() {
125125
defer loading.Close()
126-
err = addons.EnableHA(ctx, kcli, kclient, hcli, true, "10.96.0.0/12", nil, cfgSpec, loading)
126+
err = addons.EnableHA(ctx, kcli, kclient, hcli, true, "10.96.0.0/12", nil, cfgSpec)
127127
require.NoError(t, err)
128128
}()
129129

@@ -185,7 +185,7 @@ func enableHAAndCancelContextOnMessage(
185185
defer loading.Close()
186186

187187
t.Log("enabling HA and cancelling context on message")
188-
err = addons.EnableHA(ctx, kcli, kclient, hcli, true, "10.96.0.0/12", nil, cfgSpec, loading)
188+
err = addons.EnableHA(ctx, kcli, kclient, hcli, true, "10.96.0.0/12", nil, cfgSpec)
189189
require.ErrorIs(t, err, context.Canceled, "expected context to be cancelled")
190190
t.Logf("cancelled context and got error: %v", err)
191191
}

0 commit comments

Comments
 (0)