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
Enable classic cts (#3728)
* add useClassicCTS * debug output and unit test * unsaved fix * error logging * Update abapEnvironmentAssemblePackages.go * Update abapEnvironmentAssemblePackages.go * add general scope and remove logging * Update bfw.go * Update abapEnvironmentAssemblePackages.go * Update abapEnvironmentAssemblePackages.go * Update package.go * Update abapEnvironmentAssemblePackages.go * change scope and add certificates Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
This commit is contained in:
@@ -37,6 +37,7 @@ type AddonDescriptor struct {
|
||||
// Repository contains fields for the repository/component version
|
||||
type Repository struct {
|
||||
Name string `json:"name"`
|
||||
UseClassicCTS bool `json:"useClassicCTS"`
|
||||
Tag string `json:"tag"`
|
||||
Branch string `json:"branch"`
|
||||
CommitID string `json:"commitID"`
|
||||
|
||||
@@ -26,6 +26,7 @@ func TestAddonDescriptorNew(t *testing.T) {
|
||||
assert.Equal(t, "JEK8S273S", addonDescriptor.Repositories[1].CommitID)
|
||||
assert.Equal(t, "FR", addonDescriptor.Repositories[1].Languages[2])
|
||||
assert.Equal(t, `ISO-DEENFR`, addonDescriptor.Repositories[1].GetAakAasLanguageVector())
|
||||
assert.Equal(t, true, addonDescriptor.Repositories[1].UseClassicCTS)
|
||||
})
|
||||
|
||||
t.Run("getRepositoriesInBuildScope", func(t *testing.T) {
|
||||
@@ -59,7 +60,8 @@ repositories:
|
||||
languages:
|
||||
- DE
|
||||
- EN
|
||||
- FR`
|
||||
- FR
|
||||
useClassicCTS: true`
|
||||
|
||||
func TestReadAddonDescriptor(t *testing.T) {
|
||||
t.Run("Test: success case", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user