-
Notifications
You must be signed in to change notification settings - Fork 932
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate cfnetworking lib into cli and drop recursive non-compatible…
… dependencies
- Loading branch information
Showing
64 changed files
with
3,840 additions
and
49 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
actor/cfnetworkingaction/cfnetworkingactionfakes/fake_networking_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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,55 @@ | ||
package cfnetv1_test | ||
|
||
import ( | ||
"bytes" | ||
"log" | ||
"testing" | ||
|
||
. "code.cloudfoundry.org/cli/v8/api/cfnetworking/cfnetv1" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
. "github.com/onsi/gomega/ghttp" | ||
) | ||
|
||
func TestCFNetV1(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "CF Networking V1 Client Suite") | ||
} | ||
|
||
var server *Server | ||
|
||
var _ = SynchronizedBeforeSuite(func() []byte { | ||
return []byte{} | ||
}, func(data []byte) { | ||
server = NewTLSServer() | ||
|
||
// Suppresses ginkgo server logs | ||
server.HTTPTestServer.Config.ErrorLog = log.New(&bytes.Buffer{}, "", 0) | ||
}) | ||
|
||
var _ = SynchronizedAfterSuite(func() { | ||
server.Close() | ||
}, func() {}) | ||
|
||
var _ = BeforeEach(func() { | ||
server.Reset() | ||
}) | ||
|
||
func NewTestClient(passed ...Config) *Client { | ||
var config Config | ||
if len(passed) > 0 { | ||
config = passed[0] | ||
} else { | ||
config = Config{} | ||
} | ||
config.AppName = "CF Networking V1 Test" | ||
config.AppVersion = "Unknown" | ||
config.SkipSSLValidation = true | ||
|
||
if config.URL == "" { | ||
config.URL = server.URL() | ||
} | ||
|
||
return NewClient(config) | ||
} |
162 changes: 162 additions & 0 deletions
162
api/cfnetworking/cfnetv1/cfnetv1fakes/fake_connection_wrapper.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.