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
Change default ATC CheckVariant (#3384)
* change return after files are persisted & Change logging * Change ATC CheckVariant Default * change default checkvariant tests * add docu hint
This commit is contained in:
@@ -150,7 +150,7 @@ func buildATCCheckBody(ATCConfig ATCconfig) (checkVariantString string, packageS
|
||||
checkVariantString += ` configuration="` + ATCConfig.Configuration + `"`
|
||||
}
|
||||
} else {
|
||||
const defaultCheckVariant = "SAP_CLOUD_PLATFORM_ATC_DEFAULT"
|
||||
const defaultCheckVariant = "ABAP_CLOUD_DEVELOPMENT_DEFAULT"
|
||||
checkVariantString += ` checkVariant="` + defaultCheckVariant + `"`
|
||||
log.Entry().Infof("ATC Check Variant: %s", checkVariantString)
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ func TestBuildATCCheckBody(t *testing.T) {
|
||||
assert.EqualError(t, err, "Error while parsing ATC run config. Please provide the packages and/or the software components to be checked! No Package or Software Component specified. Please provide either one or both of them")
|
||||
})
|
||||
t.Run("success case: Test build body with example yaml config", func(t *testing.T) {
|
||||
expectedcheckvariantstring := " checkVariant=\"SAP_CLOUD_PLATFORM_ATC_DEFAULT\""
|
||||
expectedcheckvariantstring := " checkVariant=\"ABAP_CLOUD_DEVELOPMENT_DEFAULT\""
|
||||
expectedpackagestring := "<obj:packages><obj:package value=\"testPackage\" includeSubpackages=\"true\"/><obj:package value=\"testPackage2\" includeSubpackages=\"false\"/></obj:packages>"
|
||||
expectedsoftwarecomponentstring := "<obj:softwarecomponents><obj:softwarecomponent value=\"testSoftwareComponent\"/><obj:softwarecomponent value=\"testSoftwareComponent2\"/></obj:softwarecomponents>"
|
||||
|
||||
@@ -346,7 +346,7 @@ func TestBuildATCCheckBody(t *testing.T) {
|
||||
assert.Equal(t, nil, err)
|
||||
})
|
||||
t.Run("failure case: Test build body with example yaml config with only packages and no software components", func(t *testing.T) {
|
||||
expectedcheckvariantstring := " checkVariant=\"SAP_CLOUD_PLATFORM_ATC_DEFAULT\""
|
||||
expectedcheckvariantstring := " checkVariant=\"ABAP_CLOUD_DEVELOPMENT_DEFAULT\""
|
||||
expectedpackagestring := `<obj:packages><obj:package value="testPackage" includeSubpackages="true"/><obj:package value="testPackage2" includeSubpackages="false"/></obj:packages>`
|
||||
expectedsoftwarecomponentstring := ""
|
||||
|
||||
@@ -375,7 +375,7 @@ func TestBuildATCCheckBody(t *testing.T) {
|
||||
|
||||
})
|
||||
t.Run("success case: Test build body with example yaml config with no packages and only software components", func(t *testing.T) {
|
||||
expectedcheckvariantstring := " checkVariant=\"SAP_CLOUD_PLATFORM_ATC_DEFAULT\""
|
||||
expectedcheckvariantstring := " checkVariant=\"ABAP_CLOUD_DEVELOPMENT_DEFAULT\""
|
||||
expectedpackagestring := ""
|
||||
expectedsoftwarecomponentstring := `<obj:softwarecomponents><obj:softwarecomponent value="testSoftwareComponent"/><obj:softwarecomponent value="testSoftwareComponent2"/></obj:softwarecomponents>`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user