Documentation ¶
Overview ¶
Package postmanimport implements the import of a Postman collection to Keploy tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemsContainer ¶
type ItemsContainer struct { PostmanItems []PostmanItem TestDataItems []TestData }
func (ItemsContainer) MarshalJSON ¶
func (ic ItemsContainer) MarshalJSON() ([]byte, error)
func (*ItemsContainer) UnmarshalJSON ¶
func (ic *ItemsContainer) UnmarshalJSON(data []byte) error
type PostmanCollection ¶
type PostmanCollectionStruct ¶
type PostmanCollectionStruct struct { Info struct { PostmanID string `json:"_postman_id"` Name string `json:"name"` Schema string `json:"schema"` } `json:"info"` Items ItemsContainer `json:"item"` Variables []map[string]interface{} `json:"variable"` }
type PostmanImporter ¶
type PostmanImporter struct {
// contains filtered or unexported fields
}
func NewPostmanImporter ¶
func NewPostmanImporter(ctx context.Context, logger *zap.Logger) *PostmanImporter
func (*PostmanImporter) Import ¶
func (pi *PostmanImporter) Import(collectionPath string) error
type PostmanItem ¶
type PostmanRequest ¶
type PostmanRequest struct { Method string `json:"method"` Header []map[string]interface{} `json:"header"` Body PostmanRequestBody `json:"body"` URL interface{} `json:"url"` }
type PostmanRequestBody ¶
type PostmanResponse ¶
type TestData ¶
type TestData struct { Name string `json:"name"` Request PostmanRequest `json:"request"` Response []PostmanResponse `json:"response"` Variables []map[string]interface{} `json:"variable"` }
Click to show internal directories.
Click to hide internal directories.