-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3be629
commit ab5b2b1
Showing
5 changed files
with
55 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package fakes | ||
|
||
import ( | ||
"github.com/SAP/cf-mta-plugin/clients/cfrestclient" | ||
"github.com/SAP/cf-mta-plugin/clients/models" | ||
) | ||
|
||
// TODO: use counterfeiter if the client becomes more suffisticated | ||
|
||
type FakeCloudFoundryClient struct { | ||
domains []models.SharedDomain | ||
err error | ||
} | ||
|
||
func NewFakeCloudFoundryClient(domains []models.SharedDomain, err error) cfrestclient.CloudFoundryOperationsExtended { | ||
return FakeCloudFoundryClient{domains: domains, err: err} | ||
} | ||
|
||
func (f FakeCloudFoundryClient) GetSharedDomains() ([]models.SharedDomain, error) { | ||
return f.domains, f.err | ||
} |
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
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