Releases: pawelWritesCode/gdutils
Releases · pawelWritesCode/gdutils
v1.2.0
- Added support for
HTML
andplain-text
formats. - Fixed
XML
format detection. - Default Debugger now print output up to fixed number of bytes, detects JSON format, indent it and color it for better readability.
- Default JSON path finder supports 3 different syntax to find nodes (new: antchfx/jsonquery)
- Added new JSON schema validator (draft 7)
v1.1.0
- New methods:
AssertResponseCookieValueMatchesRegExp
AssertResponseCookieValueNotMatchesRegExp
AssertNodeContainsSubString
AssertNodeNotContainsSubString
AssertNodeIsTypeAndHasOneOfValues
- Added support for
XML
format to following methods:
AssertNodeIsType
AssertNodeIsNotType
- User may now assert against JSON/YAML/XML data-types like: "number", "array", "scalar", "mapping" in following methods:
AssertNodeIsType
AssertNodeIsNotType
AssertNodeIsTypeAndValue
AssertNodeIsTypeAndHasOneOfValues
-
QJSON - JSON path engine is now depreciated and replaced by GJSON.
DynamicJSONPathFinder
used inNewDefaultAPIContext
usesGJSON
engine insteadQJSON
-
Added new tests, added testable examples for techinical doc, updated error messages.
First stable version
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
.