Documentation ¶
Index ¶
- type Suite
- func (suite *Suite) Delete(url string, headers ...map[string]string) (*http.Response, error)
- func (suite *Suite) DoReq(method string, url string, body io.Reader, headers ...map[string]string) (*http.Response, error)
- func (suite *Suite) Get(url string, headers ...map[string]string) (*http.Response, error)
- func (suite *Suite) GetJSON(url string, js interface{}, headers ...map[string]string) (*http.Response, error)
- func (suite *Suite) Patch(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)
- func (suite *Suite) PatchJSON(url string, js interface{}) (*http.Response, error)
- func (suite *Suite) Post(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)
- func (suite *Suite) PostJSON(url string, js interface{}) (*http.Response, error)
- func (suite *Suite) Put(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)
- func (suite *Suite) PutJSON(url string, js interface{}) (*http.Response, error)
- func (suite *Suite) SetupSuite()
- func (suite *Suite) TearDownSuite()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Suite ¶
type Suite struct { suite.Suite Config *restapi.Config Security *securitytesting.Context // contains filtered or unexported fields }
Suite ...
func (*Suite) DoReq ¶
func (suite *Suite) DoReq(method string, url string, body io.Reader, headers ...map[string]string) (*http.Response, error)
DoReq ...
func (*Suite) GetJSON ¶
func (suite *Suite) GetJSON(url string, js interface{}, headers ...map[string]string) (*http.Response, error)
GetJSON ...
func (*Suite) Patch ¶
func (suite *Suite) Patch(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)
Patch ...
func (*Suite) Post ¶
func (suite *Suite) Post(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)
Post ...
func (*Suite) Put ¶
func (suite *Suite) Put(url string, body io.Reader, headers ...map[string]string) (*http.Response, error)
Put ...
Click to show internal directories.
Click to hide internal directories.