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: Move from mocks to stubs (#1324)
- Loading branch information
1 parent
7afedd0
commit 795ba92
Showing
14 changed files
with
295 additions
and
545 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
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
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
21 changes: 21 additions & 0 deletions
21
internal/reconciler/commonstatus/stubs/daemon_set_prober.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,21 @@ | ||
package stubs | ||
|
||
import ( | ||
"context" | ||
|
||
"k8s.io/apimachinery/pkg/types" | ||
) | ||
|
||
type DaemonSetProber struct { | ||
err error | ||
} | ||
|
||
func NewDaemonSetProber(err error) *DaemonSetProber { | ||
return &DaemonSetProber{ | ||
err: err, | ||
} | ||
} | ||
|
||
func (d *DaemonSetProber) IsReady(ctx context.Context, name types.NamespacedName) error { | ||
return d.err | ||
} |
21 changes: 21 additions & 0 deletions
21
internal/reconciler/commonstatus/stubs/deployment_set_prober.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,21 @@ | ||
package stubs | ||
|
||
import ( | ||
"context" | ||
|
||
"k8s.io/apimachinery/pkg/types" | ||
) | ||
|
||
type DeploymentSetProber struct { | ||
err error | ||
} | ||
|
||
func NewDeploymentSetProber(err error) *DeploymentSetProber { | ||
return &DeploymentSetProber{ | ||
err: err, | ||
} | ||
} | ||
|
||
func (d *DeploymentSetProber) IsReady(ctx context.Context, name types.NamespacedName) error { | ||
return d.err | ||
} |
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
48 changes: 0 additions & 48 deletions
48
internal/reconciler/logpipeline/mocks/daemon_set_prober.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.