lndrschlz
dea96a3ba0
feat(newmanExecute): golang implmementation for newmanExecute ( #2513 )
...
* Automates first parts of newmanExecute.groovy
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Adds newman installation
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Removes warning
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* makes tests robust for later shell calls
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Adds version logging
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Adds tests for version logging
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Adds newman shell execution
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Prepare cloud foundry apps with secrets handling
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Adds further process to CF Utils
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Fixes unit test
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Adds error category
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Add fix to execute step locally
Currently only tested on windows machine locally in powershell.
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* Adapt unit test to fix of runCommand
Signed-off-by: Fabian Reh <fabian.reh@sap.com>
* refactored golang step to newmanExecute
* wip
* added test config
* refactored newmanExecute groovy wrapper step
* exclude newmanExecute from common step test
* cleaups
* add credential support
* fix groovy credential providing
* add import
* add stageName
* define script
* remove unused vars
* add import
* fix iterator ref
* golang secret handling and cleanups
* wip
* wip
* wip
* update go step
* implement cf credential proposal
* testRepository functionality implemented
* register secrets to logger
* add missing dependecies
* test xsuaa credential handling
* wip
* wip
* cleanups
* add import
* remove mandatory params
* add container definition
* test runCommand
* test runCommand
* fix npm path
* fix npm path
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* added newmanEnvironment to templating
* wip
* use env and globals params in runCommand when no templating
* fix condition
* wip
* reverted config edit
* updated documentation
* install with shell
* wip
* wip
* fix tests
* refactor tests
* wip
* remove old test
* wip
* escape go tmpl
* escape go tmpl
* fix defaults
* add doc comment
* remove test case
* refactored newman commands
* add cli reporter
* refactor options
* mock os getenv and fix all tests
* refactoring and doc update
* go generate
* small refactor
* spelling
* fix newman doc
* remove MaskPasswords wrapper; fix stash bug;
* docu fix
Co-authored-by: Fabian Reh <fabian.reh@sap.com>
2021-03-17 08:08:33 +01:00
Stephan Aßmus
8169d56ef7
Groovy: Load step defaults also from stages section in defaults ( #1943 )
...
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-08-26 15:32:58 +02:00
sudeepsukumar
702664645c
feat(newman): fetch xsuaa credentials in newman execution ( #1325 )
...
* fetch xsuaa credentials in newman execution
* refactor CfUtils and moving to integration package
* removing CfUtils from old package com.sap.piper
* avoid config.verbose as "null"
* variable renamed for consistent naming
* handling NPE and other comments incorp
* added test cases
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-06-12 10:04:03 +02:00
Oliver Nocon
067eb0ba6a
Improve error messages for test failures ( #1417 )
2020-04-17 11:59:51 +02:00
Oliver Nocon
4061881b53
UIVeri5 & Newman: provide better error messages ( #1410 )
2020-04-16 09:14:39 +02:00
Maximilian Lenkeit
6271784e21
log node.js and npm version in related steps ( #1182 )
2020-02-17 13:24:56 +01:00
Stengel
fdf2d97f9a
Merge remote-tracking branch 'upstream/master' into harmonize-docker-arguments
2019-10-24 07:37:13 +02:00
Sven Merk
46fb4ad5e8
Exchange NonSerializable template engine with GStringTemplateEngine
2019-10-23 13:38:31 +02:00
Roland Stengel
01ce797245
harmonize docker configuration properties
...
support the configuration of the docker arguments
dockerEnvVars
dockerOptions
dockerWorkspace
for all steps.
2019-07-25 11:57:21 +02:00
Christopher Fenner
0e7ef41fab
newmanExecute: generate documentation ( #591 )
...
* generate docs for newmanExecute step
* fix typo
2019-03-26 13:26:21 +01:00
Christopher Fenner
10267ce7d1
Analytics: add step parameter keys ( #442 )
...
* add stepParamKey values
* camelCase
2019-01-21 08:47:34 +01:00
Christopher Fenner
f6647d9ce5
newmanExecuteTests: use user-specific .npm-global directory ( #447 )
...
* use user-specific .npm-global directory
* Update newmanExecute.groovy
* fix typo
* Update NewmanExecuteTest.groovy
* Update NewmanExecuteTest.groovy
2019-01-18 13:14:39 +01:00
Christopher Fenner
d303e49ebe
add newman doc ( #399 )
2018-12-10 11:53:48 +01:00
Marcus Holl
b7468a7ae4
Step name is not a string literal anymore
...
Having the step name always the same like the file name, which is in turn the class name is
redundant.
2018-11-29 09:54:05 +01:00
Oliver Nocon
2881877322
newmanExecute - adapt to changes ( #400 )
...
* script now mandatory, thus passing it to dockerExecute
* html reporter needs to be installed separately
2018-11-28 09:25:34 +01:00
Marcus Holl
3cb958b740
Merge remote-tracking branch 'github/master' into HEAD
2018-11-05 13:30:43 +01:00
Marcus Holl
5d444aa4ba
Fix codeclimate remarks
2018-11-05 12:33:41 +01:00
Marcus Holl
2e8a9db02c
script = this as fallback instead of map with cpe of current step
...
o The map does not provide access to e.g. sh, echo.
o this has the same cpe as property as it is constructed with the
current map approach.
2018-10-31 12:52:45 +01:00
Marcus Holl
ea23d65594
Merge remote-tracking branch 'github/master' into HEAD
2018-10-30 17:01:19 +01:00
Marcus Holl
11d34c2157
Step called without script: webanalytics
2018-10-30 16:24:48 +01:00
Marcus Holl
c03a75da9f
Ensure script is mandatory parameter
...
... only in case a step uses the script at all.
2018-10-30 16:24:47 +01:00
Marcus Holl
17e84b5deb
Adjust naming for config keys for step newmanExecute
2018-10-26 10:15:22 +02:00
Marcus Holl
6653b68c0f
Merge remote-tracking branch 'github/master' into HEAD
2018-10-18 12:54:32 +02:00
Marcus Holl
d4f9171247
erge remote-tracking branch 'github/master' into HEAD
2018-10-18 11:02:09 +02:00
Marcus Holl
f47d540aa3
Introduce dedicated factory method for configuration helper
2018-10-17 11:15:37 +02:00
Christopher Fenner
01365295cb
remove step return types
2018-10-11 09:10:26 +02:00
Christopher Fenner
34b675a030
handle test repositories ( #324 )
...
* handle test repositories
* use GitUtils
* add test case
* fix test cases
* return stash name
* handle seleniumExecuteTests step
* Revert "handle seleniumExecuteTests step"
This reverts commit 2b33d274fe
.
* handle seleniumExecuteTests step
* add import of GitUtils
2018-10-08 11:30:42 +02:00
Marcus Holl
8db2aaf5f0
don't use load step defaults as implicit factory method.
2018-09-07 10:08:16 +02:00
Christopher Fenner
c538e896f3
Merge branch 'master' into CCFenner/newman
2018-08-09 14:25:22 +02:00
Oliver Nocon
71f7f05427
add telemetry reporting to steps ( #243 )
...
add telemetry to all steps using ConfigurationHelper.
Other steps need to be switched to ConfigurationHelper first.
update docs
2018-08-09 11:35:33 +02:00
Christopher Fenner
d083ef6e39
Update newmanExecute.groovy
2018-08-08 14:23:29 +02:00
Christopher Fenner
240df88882
add stashing & private test repositories
2018-08-08 11:22:08 +02:00
Christopher Fenner
153536f5d3
create collectionDisplayName inside of the step
2018-07-12 23:31:15 +02:00
Christopher Fenner
d2e023f512
Update newmanExecute.groovy
2018-07-04 15:01:12 +02:00
Christopher Fenner
af753d3c54
build new config on the fly
2018-07-04 11:12:32 +02:00
Christopher Fenner
637eb84396
add new step for Postman test execution
2018-07-03 14:16:17 +02:00