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