Christopher Fenner
a54e1a7611
use new rules
2018-02-28 13:12:03 +01:00
Alejandra Ferreiro Vidal
e7bf3b1b0f
mtaJarLocation as step configuration
2018-02-20 12:02:33 +01:00
Alejandra Ferreiro Vidal
724cf64832
create test files before class
2018-02-13 14:32:54 +01:00
Alejandra Ferreiro Vidal
9dafdd1cc0
mtaBuild with new config framework
2018-02-08 13:26:48 +01:00
Alejandra Ferreiro Vidal
42db55d5a5
remove public when not needed
...
See: https://github.com/SAP/jenkins-library/blob/master/CONTRIBUTING.md#do-not-use-a-visibility-modifier-for-public-classes-and-methods
2018-02-06 15:57:26 +01:00
Alejandra Ferreiro Vidal
334251ec82
remove curly braces when not needed
...
See: https://github.com/SAP/jenkins-library/blob/master/CONTRIBUTING.md#do-not-use-curly-braces--for-variables-or-variableproperty
2018-02-06 15:57:26 +01:00
Alejandra Ferreiro Vidal
615f8deb1d
add blanks to keep format
2018-02-06 15:57:26 +01:00
Alejandra Ferreiro Vidal
ae66a5cbca
add new lines to keep format
2018-02-06 15:57:26 +01:00
Alejandra Ferreiro Vidal
4360636609
add sed test
...
Removes straightForwardTest that has not a clear scope since it test all
that it is tested in the other tests.
Adds sed test.
Removes duplicated sed assertions.
2018-02-06 15:57:25 +01:00
Alejandra Ferreiro Vidal
69d0050e0c
remove blanks
2018-02-06 15:57:25 +01:00
Alejandra Ferreiro Vidal
cafa0a703b
format String as String not GString
...
See: https://github.com/SAP/jenkins-library/blob/master/CONTRIBUTING.md#use-single-quotes-for-strings-and-constants
2018-02-06 15:57:25 +01:00
Alejandra Ferreiro Vidal
8075157ea2
rename mtaHome with mtaJarLocation
2018-02-06 15:57:25 +01:00
Alejandra Ferreiro Vidal
868d13749c
add mtaJarLocation from environment test
...
Adds a test to check if the mtaJarLocation is read from the environment
and removes all duplicate assertions.
2018-02-06 15:57:25 +01:00
Alejandra Ferreiro Vidal
5d60bc8199
add environment PATH test
...
Adds an unit test to test that the environment PATH is set and removes
duplicate PATH assertions.
2018-02-06 15:57:25 +01:00
Alejandra Ferreiro Vidal
7f3f76a8ad
remove duplicated mtarFilePath assertions
...
mtarFile Path must be checked only when it is in the scope of the unit
test.
2018-02-06 15:57:24 +01:00
Alejandra Ferreiro Vidal
4aa4a1d2f5
remove unused cpe
2018-02-06 15:57:24 +01:00
Alejandra Ferreiro Vidal
9cb6f53678
remove unused code
2018-02-06 15:56:57 +01:00
Alejandra Ferreiro Vidal
4f624d5aea
add error rule as common rule
2018-02-01 10:11:37 +01:00
Alejandra Ferreiro Vidal
485eff7175
bugfix absolute path
2018-01-31 18:53:14 +01:00
Marcus Holl
ef0b1bd9dd
[refactoring] Rule handling
...
Starting point for that refactoring: it turned out that the tests
was not independent. The DefaultValueCache which is a singleton
keeps the status over various tests. Success of test execution depends
on the order test execution.
We have now
* a dedicated rule for resetting the default value cache
* JenkinsConfiguration rule (which already provided facilities for
dealing with the configuration) has been replaced by a readYaml rule.
From the PipelineUnit test framework we get already a handler for
libraryResource, which is also part of the setup of the default
values.
* An auxiliar class which combines the
* JenkinsSetupRule (registers the lib)
* JenkinsReadYamlRule (provides facilities for Yaml parsing)
* JenkinsResetDefaultValueCacheRule (cleans up the DefaultValueCache)
into a rule chain. By using this rule chain we ensure that our
setup OK (piper lib registered, and default config can be setup in
a clean way).
2018-01-29 09:42:23 +01:00
Marcus Holl
0d87348c21
Replace JenkinsConfigRule by more speaking readYaml rule
...
and reset default cache rule.
2018-01-29 09:42:23 +01:00
Marcus Holl
808170b88a
Call pipeline steps directly, without using a pipeline snippet
2018-01-24 11:43:25 +01:00
Thorsten Duda
e8363e9637
introduce JenkinsConfigRule
2018-01-23 15:02:25 +01:00
Marcus Holl
106a8b4693
Make use of JenkinsShellCallRule
2018-01-23 15:02:25 +01:00
Marcus Holl
492d4a1f68
Make use of Jenkins setup and logging rules
2018-01-23 14:51:18 +01:00
Alejandra Ferreiro Vidal
72b185e807
remove closure in withPipeline(p)
2017-11-21 16:27:01 +01:00
Alejandra Ferreiro Vidal
5ca3d39b02
adapt setUp method
2017-11-21 14:27:05 +01:00
Marcus Holl
9d59ba16d9
beautify inline script blocks
...
idents only
2017-11-16 14:09:48 +01:00
Marcus Holl
98a45bd961
Handling pipeline scripts in base class
2017-11-14 14:02:00 +01:00
Marcus Holl
2c53ade200
Handle shell calls in base class.
2017-11-14 14:02:00 +01:00
Marcus Holl
111a8e8222
Handle echo calls in base class.
2017-11-14 14:02:00 +01:00
Marcus Holl
b5cc4565fc
Introduce PiperTestBase class.
2017-11-14 14:02:00 +01:00
Marcus Holl
7f36ca0f74
Use regex for asserting sed command
...
instead of having two checks, one for the first part of the command and one for asserting
the trailing file name at the end of the command.
2017-11-13 11:22:57 +01:00
Marcus Holl
9d61638eb4
[fix] sed'ing timestamp during mta build fails with blanks in file path.
2017-11-13 11:22:55 +01:00
Oliver Nocon
47c195805f
Initial version of piper-lib.
2017-11-10 16:30:52 +01:00