Skip to content

Commit

Permalink
[CLC-434]: migration -> migration/estimation (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kutluhan Metin authored Nov 14, 2023
1 parent 404e09a commit 1af0ff2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion base/commands/migration/migration_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (s StatusCmd) Unwrappable() {}
func (s StatusCmd) Init(cc plug.InitContext) error {
cc.SetCommandUsage("status")
cc.SetCommandGroup("migration")
help := "Get status of the data migration in progress"
help := "Get status of the data migration/estimation in progress"
cc.AddStringFlag(flagOutputDir, "o", "", false, "output directory for the migration report, if not given current directory is used")
cc.SetCommandHelp(help, help)
return nil
Expand Down
6 changes: 3 additions & 3 deletions base/commands/migration/status_stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func (st *StatusStages) Build(ctx context.Context, ec plug.ExecContext) []stage.
Func: st.connectStage(ec),
},
{
ProgressMsg: "Finding migration in progress",
SuccessMsg: "Found migration in progress",
FailureMsg: "Could not find a migration in progress",
ProgressMsg: "Finding migration/estimation in progress",
SuccessMsg: "Found migration/estimation in progress",
FailureMsg: "Could not find a migration/estimation in progress",
Func: st.findMigrationInProgress(ec),
},
}
Expand Down
2 changes: 1 addition & 1 deletion base/commands/migration/status_stages_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func statusTest(t *testing.T) {
defer wg.Done()
Must(tcx.CLC().Execute(ctx, "status", "-o", outDir))
}()
tcx.AssertStdoutContains("Found migration in progress")
tcx.AssertStdoutContains("Found migration/estimation in progress")
setStatusCompleted(mID, tcx, ctx)
wg.Wait()
tcx.WithReset(func() {
Expand Down

0 comments on commit 1af0ff2

Please sign in to comment.