generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Convert Istio status checker mocks into stubs (#1473)
- Loading branch information
1 parent
3abdc16
commit 01c6d4d
Showing
10 changed files
with
42 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
internal/reconciler/logpipeline/mocks/istio_status_checker.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
internal/reconciler/logpipeline/stubs/istio_status_checker.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package stubs | ||
|
||
import ( | ||
"context" | ||
) | ||
|
||
type IstioStatusChecker struct { | ||
IsActive bool | ||
} | ||
|
||
func (i *IstioStatusChecker) IsIstioActive(ctx context.Context) bool { | ||
return i.IsActive | ||
} |
46 changes: 0 additions & 46 deletions
46
internal/reconciler/metricpipeline/mocks/istio_status_checker.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
internal/reconciler/metricpipeline/stubs/istio_status_checker.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package stubs | ||
|
||
import ( | ||
"context" | ||
) | ||
|
||
type IstioStatusChecker struct { | ||
IsActive bool | ||
} | ||
|
||
func (i *IstioStatusChecker) IsIstioActive(ctx context.Context) bool { | ||
return i.IsActive | ||
} |
46 changes: 0 additions & 46 deletions
46
internal/reconciler/tracepipeline/mocks/istio_status_checker.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
internal/reconciler/tracepipeline/stubs/istio_status_checker.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package stubs | ||
|
||
import ( | ||
"context" | ||
) | ||
|
||
type IstioStatusChecker struct { | ||
IsActive bool | ||
} | ||
|
||
func (i *IstioStatusChecker) IsIstioActive(ctx context.Context) bool { | ||
return i.IsActive | ||
} |