Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteFileFixture(fileFixtureUID string, organization string) (string, error)
- func (c *Client) DownloadFileFixture(organization string, fileFixtureUID string, version string) ([]byte, error)
- func (c *Client) GetFileFixture(organization string, fileUID string) ([]byte, error)
- func (c *Client) Har(file string) (string, error)
- func (c *Client) ListFileFixture(organization string) ([]byte, error)
- func (c *Client) ListOrganisations() ([]byte, error)
- func (c *Client) Login(email string, password string) (string, error)
- func (c *Client) MoveFileFixture(organization string, fileFixtureUID string, newName string) (string, error)
- func (c *Client) Ping() (bool, error)
- func (c *Client) PushFileFixture(file string, organization string, params *FileFixtureParams) (string, error)
- func (c *Client) TestRunCallLog(pathID string, preview bool) (io.ReadCloser, error)
- type FileFixtureParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents the API client
func (*Client) DeleteFileFixture ¶ added in v0.3.0
DeleteFileFixture deletes a file fixture
func (*Client) DownloadFileFixture ¶ added in v0.3.0
func (c *Client) DownloadFileFixture(organization string, fileFixtureUID string, version string) ([]byte, error)
DownloadFileFixture retrieves the originally uploaded file
func (*Client) GetFileFixture ¶ added in v0.3.0
GetFileFixture returns a list of the organizations fixtures
func (*Client) Har ¶
Har converts the given HAR archive file into a StormForger test case definition
func (*Client) ListFileFixture ¶ added in v0.3.0
ListFileFixture returns a list of the organizations fixtures
func (*Client) ListOrganisations ¶ added in v0.3.0
ListOrganisations returns a list of organisations
func (*Client) Login ¶ added in v0.0.2
Login acquires a JWT access token for the given email/password
func (*Client) MoveFileFixture ¶ added in v0.3.0
func (c *Client) MoveFileFixture(organization string, fileFixtureUID string, newName string) (string, error)
MoveFileFixture renames a filefixtures
func (*Client) Ping ¶
Ping performs an authenticated ping to check if the API is working and the user is properly authenticated.
FIXME would be nice to return a struct
where we see the status and in case of success also the email address of the authenticated user (useful) to check if we are authenticated as the correct user
func (*Client) PushFileFixture ¶ added in v0.3.0
func (c *Client) PushFileFixture(file string, organization string, params *FileFixtureParams) (string, error)
PushFileFixture uploads (insert or update) a file fixture
func (*Client) TestRunCallLog ¶ added in v0.2.0
TestRunCallLog will download the first 10k lines of the test run's call log