diff --git a/cmd/abapEnvironmentRunATCCheck.go b/cmd/abapEnvironmentRunATCCheck.go
index 71c7243a5..3385bb020 100644
--- a/cmd/abapEnvironmentRunATCCheck.go
+++ b/cmd/abapEnvironmentRunATCCheck.go
@@ -146,6 +146,10 @@ func buildATCCheckBody(ATCConfig ATCconfig) (checkVariantString string, packageS
if len(ATCConfig.Configuration) != 0 {
checkVariantString += ` configuration="` + ATCConfig.Configuration + `"`
}
+ } else {
+ const defaultCheckVariant = "SAP_CLOUD_PLATFORM_ATC_DEFAULT"
+ checkVariantString += ` checkVariant="` + defaultCheckVariant + `"`
+ log.Entry().Infof("ATC Check Variant: %s", checkVariantString)
}
//Build Package XML body
diff --git a/cmd/abapEnvironmentRunATCCheck_test.go b/cmd/abapEnvironmentRunATCCheck_test.go
index 33c6ef5d8..78105341e 100644
--- a/cmd/abapEnvironmentRunATCCheck_test.go
+++ b/cmd/abapEnvironmentRunATCCheck_test.go
@@ -313,7 +313,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 := ""
+ expectedcheckvariantstring := " checkVariant=\"SAP_CLOUD_PLATFORM_ATC_DEFAULT\""
expectedpackagestring := ""
expectedsoftwarecomponentstring := ""
@@ -345,7 +345,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 := ""
+ expectedcheckvariantstring := " checkVariant=\"SAP_CLOUD_PLATFORM_ATC_DEFAULT\""
expectedpackagestring := ``
expectedsoftwarecomponentstring := ""
@@ -374,7 +374,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 := ""
+ expectedcheckvariantstring := " checkVariant=\"SAP_CLOUD_PLATFORM_ATC_DEFAULT\""
expectedpackagestring := ""
expectedsoftwarecomponentstring := ``