mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
Consistent config for AUnit (#3395)
* Unify singular/plural in config files * singular -> plural * adapt * Change
This commit is contained in:
parent
81fa0ee2d8
commit
b5da011200
@ -575,16 +575,16 @@ type ObjectSet struct {
|
||||
type MultiPropertySet struct {
|
||||
Type string `json:"type,omitempty"`
|
||||
PackageNames []AUnitPackage `json:"packages,omitempty"`
|
||||
ObjectTypeGroups []ObjectTypeGroup `json:"objecttypegroup,omitempty"`
|
||||
ObjectTypeGroups []ObjectTypeGroup `json:"objecttypegroups,omitempty"`
|
||||
ObjectTypes []ObjectType `json:"objecttypes,omitempty"`
|
||||
Owners []Owner `json:"owner,omitempty"`
|
||||
ReleaseStates []ReleaseState `json:"releasestate,omitempty"`
|
||||
Versions []Version `json:"version,omitempty"`
|
||||
ApplicationComponents []ApplicationComponent `json:"applicationcomponent,omitempty"`
|
||||
Owners []Owner `json:"owners,omitempty"`
|
||||
ReleaseStates []ReleaseState `json:"releasestates,omitempty"`
|
||||
Versions []Version `json:"versions,omitempty"`
|
||||
ApplicationComponents []ApplicationComponent `json:"applicationcomponents,omitempty"`
|
||||
SoftwareComponents []SoftwareComponents `json:"softwarecomponents,omitempty"`
|
||||
TransportLayers []TransportLayer `json:"transportlayer,omitempty"`
|
||||
Languages []Language `json:"language,omitempty"`
|
||||
SourceSystems []SourceSystem `json:"sourcesystem,omitempty"`
|
||||
TransportLayers []TransportLayer `json:"transportlayers,omitempty"`
|
||||
Languages []Language `json:"languages,omitempty"`
|
||||
SourceSystems []SourceSystem `json:"sourcesystems,omitempty"`
|
||||
}
|
||||
|
||||
//Set
|
||||
|
@ -28,6 +28,7 @@ func newAbapEnvironmentRunAUnitTestTestsUtils() abapEnvironmentRunAUnitTestMockU
|
||||
}
|
||||
|
||||
func TestBuildAUnitTestBody(t *testing.T) {
|
||||
|
||||
t.Parallel()
|
||||
|
||||
t.Run("Test AUnit test run body with no data", func(t *testing.T) {
|
||||
@ -436,9 +437,9 @@ options:
|
||||
medium: true
|
||||
long: true
|
||||
objectset:
|
||||
packages:
|
||||
packages:
|
||||
- name: Z_TEST
|
||||
softwarecomponents:
|
||||
softwarecomponents:
|
||||
- name: Z_TEST
|
||||
`
|
||||
|
||||
|
@ -97,7 +97,7 @@ See below example for an `aUnitConfig.yml` file containing a minimal configurati
|
||||
title: My AUnit run
|
||||
context: My unit tests
|
||||
objectset:
|
||||
softwareComponents:
|
||||
softwarecomponents:
|
||||
- name: /DMO/SWC
|
||||
```
|
||||
|
||||
@ -106,25 +106,12 @@ See below example for an `aUnitConfig.yml` file with the configured options cont
|
||||
```yaml
|
||||
title: My AUnit run
|
||||
context: My unit tests
|
||||
options:
|
||||
measurements: none
|
||||
scope:
|
||||
ownTests: true
|
||||
foreignTests: true
|
||||
riskLevel:
|
||||
harmless: true
|
||||
dangerous: true
|
||||
critical: true
|
||||
duration:
|
||||
short: true
|
||||
medium: true
|
||||
long: true
|
||||
objectset:
|
||||
packages:
|
||||
- name: Z_TEST_PACKAGE
|
||||
```
|
||||
|
||||
The following example of an `aUnitConfig.yml` file containing the software component `Z_TESTSC` to be checked:
|
||||
The following example of an `aUnitConfig.yml` file containing the software component `Z_TESTSC` and shows the available options:
|
||||
|
||||
```yaml
|
||||
title: My AUnit run
|
||||
@ -168,30 +155,28 @@ options:
|
||||
objectset:
|
||||
type: multiPropertySet
|
||||
multipropertyset:
|
||||
owner:
|
||||
owners:
|
||||
- name: demoOwner
|
||||
softwarecomponents:
|
||||
- component:
|
||||
name: demoSoftwareComponent
|
||||
version:
|
||||
- name: demoSoftwareComponent
|
||||
versions:
|
||||
- value: ACTIVE
|
||||
packages:
|
||||
- package:
|
||||
name: demoPackage
|
||||
objectnamepattern:
|
||||
- name: demoPackage
|
||||
objectnamepatterns:
|
||||
- value: 'ZCL_*'
|
||||
language:
|
||||
languages:
|
||||
- value: EN
|
||||
sourcesystem:
|
||||
sourcesystems:
|
||||
- name: H01
|
||||
objecttype:
|
||||
objecttypes:
|
||||
- name: CLAS
|
||||
objecttypegroup:
|
||||
objecttypegroups:
|
||||
- name: CLAS
|
||||
releasestate:
|
||||
releasestates:
|
||||
- value: RELEASED
|
||||
applicationcomponent:
|
||||
applicationcomponents:
|
||||
- name: demoApplicationComponent
|
||||
transportlayer:
|
||||
transportlayers:
|
||||
- name: H01
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user