1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/pkg/config
Siarhei Pazdniakou 46bafc40a3
Improve validation of configuration (#3125)
* Implemented validation for the option possibleValues

* Has been added the option mandatoryIf to config with validation

* Fixed issues found during code review

* improved golang template

* Fixed tests. Added validation for mandatoryIf option

* Fix typo

* Fixed tests

* Validation was refactored. Added options

* Added default value for parameters with possibleValues option

* Validation was moved after the configuration resolution

* Canceled some default values

Co-authored-by: Sven Merk <33895725+nevskrem@users.noreply.github.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-10-01 12:49:05 +02:00
..
interpolation (Vault) Improvements (#2439) 2021-02-15 09:48:51 +01:00
mocks add token revocation (#2686) 2021-03-10 08:36:50 +01:00
validation Add helper for finding uninitialized config (#2534) 2021-01-25 12:58:43 +01:00
config_test.go feat(getConfig) allow reading stage configuration (#3026) 2021-08-04 10:09:02 +02:00
config.go Feature/vault refactoring (#3113) 2021-09-21 13:06:32 +02:00
defaults_test.go Provide first parts for golang implementation (#905) 2019-10-22 15:41:27 +02:00
defaults.go Reading defaults in go: Make sure all io.ReadClosers are closed (#1529) 2020-05-12 15:46:47 +02:00
errors_test.go Provide first parts for golang implementation (#905) 2019-10-22 15:41:27 +02:00
errors.go Provide first parts for golang implementation (#905) 2019-10-22 15:41:27 +02:00
evaluation_test.go fix(checkIfStepActive): respect explicit (de-)activation (#3055) 2021-08-17 11:20:04 +02:00
evaluation.go fix(checkIfStepActive): respect explicit (de-)activation (#3055) 2021-08-17 11:20:04 +02:00
flags_test.go Provide first parts for golang implementation (#905) 2019-10-22 15:41:27 +02:00
flags.go Checkmarx as golang (#1075) 2020-01-27 23:40:53 +01:00
resources.go Persisted pipeline environment for golang library (#1091) 2020-01-15 12:16:25 +01:00
run_test.go Convert step/stage condition logic to golang (#2993) 2021-07-26 07:47:43 +02:00
run.go Convert step/stage condition logic to golang (#2993) 2021-07-26 07:47:43 +02:00
stepmeta_test.go fix(dockerOptions) allow proper usage of empty values (#3025) 2021-08-02 14:57:37 +02:00
stepmeta.go Improve validation of configuration (#3125) 2021-10-01 12:49:05 +02:00
vault_test.go Feature/vault refactoring (#3113) 2021-09-21 13:06:32 +02:00
vault.go Feature/vault refactoring (#3113) 2021-09-21 13:06:32 +02:00