Releases: pawelWritesCode/gdutils
Releases · pawelWritesCode/gdutils
v1.2.0
- Added support for
HTMLandplain-textformats. - Fixed
XMLformat 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:
AssertResponseCookieValueMatchesRegExpAssertResponseCookieValueNotMatchesRegExpAssertNodeContainsSubStringAssertNodeNotContainsSubStringAssertNodeIsTypeAndHasOneOfValues
- Added support for
XMLformat to following methods:
AssertNodeIsTypeAssertNodeIsNotType
- User may now assert against JSON/YAML/XML data-types like: "number", "array", "scalar", "mapping" in following methods:
AssertNodeIsTypeAssertNodeIsNotTypeAssertNodeIsTypeAndValueAssertNodeIsTypeAndHasOneOfValues
-
QJSON - JSON path engine is now depreciated and replaced by GJSON.
DynamicJSONPathFinderused inNewDefaultAPIContextusesGJSONengine 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.