This tool allows to load init data to any uuApp.
npm install --registry "https://repo.plus4u.net/repository/npm/" -g usy_initdata_loaderg01
Use usy_initdata_loaderg01@beta
instead of usy_initdata_loaderg01
in previous command calls.
usy_initdata_loaderg01 --help
- add support for specify
alias
in identityMap to use instead of uid when obtaining credentials from vault
- extension for testrunnerg01:
loadScripts
function support dataset array
- hotfix: add support for global scripts (_before and _after) didnot use dirname of dataset
- bugfix:
actAs
incommand.authorization
does not requireuid
- bugfix: logging
actAs
- add support for global scripts (_before and _after)
- Bugfix: Removed custom cache for user sessions to rely on authentication service cache, which handles token expiration (gets new token before the current one expires).
- Add support for
browser
strategy in identityMap
- Bugfix: Support for dev OIDC. For each user initial
scope
can be defined.
- Bugfix: Support single non-array value of allowedErrorCode
- Feature: add suport to actAs different identity(enabled by authorization.actAs at each commmand)
- Bugfix: waitFor with anyValue = true and result of path expression = undefined has been incorrectly evaluated as true
- Bugfix: all error were allowed
- add suport for nested allowedErrorCodes
- bug fix: do not have undefined context in included dataset
- bug fix: ensure that result into context is set only when contextKey is set
- bug fix:
_before
scripts did not work on Windows
- add support for
_before
scripts
- add support for specification
retryPolicy
in configuration and at command level (https://uuapp.plus4u.net/uu-bookkit-maing01/2590bf997d264d959b9d6a88ee1d0ff5/book/page?code=uuAppClientReferenceDocumentation_00)
- use https in repository url in README
- support gateway override per subApp
- dataset coul contain more datasets as array (see
usy_initdata_loaderg01/test/jokes/0001-multipleDatasetsInOne/001-createJoke.js
)
- remove hardcoded scope for OIDC token. Rely on
uu_app_oidc_providers_<%name%>_default_call_token_scope_mode
property.
- add to metacommand posibility ro specify subAppUri in executCommandCallback ( see
usy_initdata_loaderg01/test/testSets/metacommands/metacommand_proxy.js
)
- hotfix in lazy authentication
- support for getting token (useful for schedulling jobs)
- support dataset as function (see usy_initdata_test-runnerg01/jokes-test/datasetAsFunction)
- support dtoOut transformation (see usy_initdata_test-runnerg01/jokes-test/tests/uu-jokes-maing01/getProductLogo/hds)
- fix token scope
- fix command execution, so it waits for the result and does assert correctly
- fix loading of optional parameters in
expect
- add support for
run: "always"
at command to cleanup after errors - add
fail-on-error
cli option to control error handling strategy
- expect
- put only filled parameters to expect
- allow recursive paths (path as array)
- add possibility to store dtoIn and dtoOut to context(using attribute
contextKey
) to be used in other datasets
- support for asserts using "expect" or "validationSchema"
- add support for dataset embedding using "dataSets" attribute
- added option to override product code in the inventory using
productCode
key under the subApp. By default, productCode = subApp name, i.e. no change needed to existing inventories.
- use
path.resolve
instead ofpath.join
to support absolute path
- Verbose flag set log_level for
InitData
logger toDEBUG
- Add
context
parameter for meta-commands
- Bugfix: fix "retry call for statuses 502, 404 and 503"
- Add parameter
--always-retry
to retry command call in case of any errors (even the accepted errors)
- Bugfix: fix "cannot read property verbose of undefined"
- add retry call for statuses 502, 404 and 503
- add verbose cli option
- add support for metaCommands
- add support waitFor condition in command call
- add new version notifier
- add options for excel file parser
- update to excel-as-json2
- support promise functions for *.js inventories and datasets
npm publish --registry https://registry.npmjs.com