Skip to content

Releases: pawelWritesCode/gdutils

v1.2.0

06 Sep 07:34
Compare
Choose a tag to compare
  1. Added support for HTML and plain-text formats.
  2. Fixed XML format detection.
  3. Default Debugger now print output up to fixed number of bytes, detects JSON format, indent it and color it for better readability.
  4. Default JSON path finder supports 3 different syntax to find nodes (new: antchfx/jsonquery)
  5. Added new JSON schema validator (draft 7)

v1.1.0

16 Jun 06:43
Compare
Choose a tag to compare
  1. New methods:
  • AssertResponseCookieValueMatchesRegExp
  • AssertResponseCookieValueNotMatchesRegExp
  • AssertNodeContainsSubString
  • AssertNodeNotContainsSubString
  • AssertNodeIsTypeAndHasOneOfValues
  1. Added support for XML format to following methods:
  • AssertNodeIsType
  • AssertNodeIsNotType
  1. User may now assert against JSON/YAML/XML data-types like: "number", "array", "scalar", "mapping" in following methods:
  • AssertNodeIsType
  • AssertNodeIsNotType
  • AssertNodeIsTypeAndValue
  • AssertNodeIsTypeAndHasOneOfValues
  1. QJSON - JSON path engine is now depreciated and replaced by GJSON. DynamicJSONPathFinder used in NewDefaultAPIContext uses GJSON engine instead QJSON

  2. Added new tests, added testable examples for techinical doc, updated error messages.

First stable version

06 Apr 08:00
Compare
Choose a tag to compare

This is first stable version of library.

Differences between v0.14.1 and v1.0.0

Renamed current methods names to more general.
Added new methods:

  • func (apiCtx *APIContext) AssertStatusCodeIsNot(code int) error
  • func (apiCtx *APIContext) AssertResponseFormatIsNot(dataFormat format.DataFormat) error
  • func (apiCtx *APIContext) AssertNodeNotExists(dataFormat format.DataFormat, exprTemplate string) error
  • func (apiCtx *APIContext) AssertNodeSliceLengthIsNot(dataFormat format.DataFormat, exprTemplate string, length int) error
  • func (apiCtx *APIContext) AssertNodeNotMatchesRegExp(dataFormat format.DataFormat, exprTemplate, regExpTemplate string) error
  • func (apiCtx *APIContext) AssertResponseHeaderNotExists(name string) error
  • func (apiCtx *APIContext) AssertResponseCookieNotExists(name string) error
  • func (apiCtx *APIContext) SaveHeader(name, cacheKey string) error

Old method IGenerateARandomFloatInTheRangeToAndSaveItAs changed name to GenerateFloat64(from, to float64, cacheKey string) error and accepts now float interval.
Upgraded minimal go version to 1.18.