This repository has been archived by the owner on Jul 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#126911079] we now add the bosh uuid to the deployment manifest auto…
…matically
- Loading branch information
1 parent
b581d81
commit 4674a1b
Showing
4 changed files
with
96 additions
and
3 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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
package utils | ||
|
||
import "net/http" | ||
import ( | ||
"net/http" | ||
|
||
"github.com/enaml-ops/enaml/enamlbosh" | ||
) | ||
|
||
//HttpClientDoer - interface for a http.Client.Doer | ||
type HttpClientDoer interface { | ||
Do(req *http.Request) (resp *http.Response, err error) | ||
} | ||
|
||
type BoshClientCaller interface { | ||
GetInfo() (*enamlbosh.BoshInfo, error) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// This file was generated by counterfeiter | ||
package utilsfakes | ||
|
||
import ( | ||
"sync" | ||
|
||
"github.com/enaml-ops/enaml/enamlbosh" | ||
"github.com/enaml-ops/omg-cli/utils" | ||
) | ||
|
||
type FakeBoshClientCaller struct { | ||
GetInfoStub func() (*enamlbosh.BoshInfo, error) | ||
getInfoMutex sync.RWMutex | ||
getInfoArgsForCall []struct{} | ||
getInfoReturns struct { | ||
result1 *enamlbosh.BoshInfo | ||
result2 error | ||
} | ||
} | ||
|
||
func (fake *FakeBoshClientCaller) GetInfo() (*enamlbosh.BoshInfo, error) { | ||
fake.getInfoMutex.Lock() | ||
fake.getInfoArgsForCall = append(fake.getInfoArgsForCall, struct{}{}) | ||
fake.getInfoMutex.Unlock() | ||
if fake.GetInfoStub != nil { | ||
return fake.GetInfoStub() | ||
} else { | ||
return fake.getInfoReturns.result1, fake.getInfoReturns.result2 | ||
} | ||
} | ||
|
||
func (fake *FakeBoshClientCaller) GetInfoCallCount() int { | ||
fake.getInfoMutex.RLock() | ||
defer fake.getInfoMutex.RUnlock() | ||
return len(fake.getInfoArgsForCall) | ||
} | ||
|
||
func (fake *FakeBoshClientCaller) GetInfoReturns(result1 *enamlbosh.BoshInfo, result2 error) { | ||
fake.GetInfoStub = nil | ||
fake.getInfoReturns = struct { | ||
result1 *enamlbosh.BoshInfo | ||
result2 error | ||
}{result1, result2} | ||
} | ||
|
||
var _ utils.BoshClientCaller = new(FakeBoshClientCaller) |