Skip to content

Commit

Permalink
br: add unittests to backup manifests
Browse files Browse the repository at this point in the history
Signed-off-by: WangLe1321 <wangle1321@163.com>
  • Loading branch information
WangLe1321 authored and ti-chi-bot committed Aug 1, 2023
1 parent e3ae676 commit 1faeef6
Show file tree
Hide file tree
Showing 2 changed files with 483 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/backup/backup/backup_manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type TiDBDashboardFetcher struct {
lister listers.TidbDashboardLister
}

func NewTiDBDashboardFetcher(lister listers.TidbDashboardLister) *TiDBDashboardFetcher {
func NewTiDBDashboardFetcher(lister listers.TidbDashboardLister) ManifestFetcher {
return &TiDBDashboardFetcher{
lister: lister,
}
Expand Down Expand Up @@ -64,7 +64,7 @@ type TiDBMonitorFetcher struct {
lister listers.TidbMonitorLister
}

func NewTiDBMonitorFetcher(lister listers.TidbMonitorLister) *TiDBMonitorFetcher {
func NewTiDBMonitorFetcher(lister listers.TidbMonitorLister) ManifestFetcher {
return &TiDBMonitorFetcher{
lister: lister,
}
Expand Down Expand Up @@ -99,7 +99,7 @@ type TiDBClusterAutoScalerFetcher struct {
lister listers.TidbClusterAutoScalerLister
}

func NewTiDBClusterAutoScalerFetcher(lister listers.TidbClusterAutoScalerLister) *TiDBClusterAutoScalerFetcher {
func NewTiDBClusterAutoScalerFetcher(lister listers.TidbClusterAutoScalerLister) ManifestFetcher {
return &TiDBClusterAutoScalerFetcher{
lister: lister,
}
Expand Down Expand Up @@ -131,7 +131,7 @@ type TiDBInitializerFetcher struct {
lister listers.TidbInitializerLister
}

func NewTiDBInitializerFetcher(lister listers.TidbInitializerLister) *TiDBInitializerFetcher {
func NewTiDBInitializerFetcher(lister listers.TidbInitializerLister) ManifestFetcher {
return &TiDBInitializerFetcher{
lister: lister,
}
Expand Down Expand Up @@ -163,7 +163,7 @@ type TiDBNgMonitoringFetcher struct {
lister listers.TidbNGMonitoringLister
}

func NewTiDBNgMonitoringFetcher(lister listers.TidbNGMonitoringLister) *TiDBNgMonitoringFetcher {
func NewTiDBNgMonitoringFetcher(lister listers.TidbNGMonitoringLister) ManifestFetcher {
return &TiDBNgMonitoringFetcher{
lister: lister,
}
Expand Down
Loading

0 comments on commit 1faeef6

Please sign in to comment.