Documentation ¶
Index ¶
- func AssertMethod(t *testing.T, expectedMethod string, req *http.Request)
- func AssertReqJSON(t *testing.T, expected map[string]interface{}, req *http.Request)
- func CreateAtlasProject(projectName string, groupID string, namespace string, organizationID string) *knappekv1alpha1.MongoDBAtlasProject
- func Server() (*http.Client, *http.ServeMux, *httptest.Server)
- type RewriteTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertMethod ¶
AssertMethod test that the Request has the expected http method
func AssertReqJSON ¶
AssertReqJSON tests that the Request has the expected key values pairs json encoded in its Body
func CreateAtlasProject ¶ added in v0.0.7
func CreateAtlasProject(projectName string, groupID string, namespace string, organizationID string) *knappekv1alpha1.MongoDBAtlasProject
CreateAtlasProject returns a standard atlas project
Types ¶
type RewriteTransport ¶
type RewriteTransport struct {
Transport http.RoundTripper
}
RewriteTransport rewrites https requests to http to avoid TLS cert issues during testing.
Click to show internal directories.
Click to hide internal directories.