This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
111 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ out/ | |
.vscode/ | ||
bin | ||
vars/pipeline.gdsl | ||
/libs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
test/com/sap/cloud/sdk/s4hana/pipeline/util/TestUtils.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.sap.cloud.sdk.s4hana.pipeline.util | ||
|
||
import com.lesfurets.jenkins.unit.BasePipelineTest | ||
|
||
class TestUtils { | ||
static registerStep(BasePipelineTest test, String stepName){ | ||
Script step = test.helper.loadScript("${stepName}.groovy") | ||
test.helper.registerAllowedMethod(stepName, [Map.class], { Map parameters -> | ||
step.call(parameters) | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import com.sap.piper.ConfigurationLoader | ||
import com.sap.piper.ConfigurationMerger | ||
|
||
def call(Map parameters) { | ||
def script = parameters.script | ||
def stageName = parameters.stageName | ||
def stageConfigurationKeys = parameters.stageConfigurationKeys | ||
|
||
Map stageConfiguration = ConfigurationLoader.stageConfiguration(script, stageName) | ||
Map defaultStageConfiguration = ConfigurationLoader.defaultStageConfiguration(script, stageName) | ||
Map configWithDefault = ConfigurationMerger.merge(stageConfiguration, stageConfigurationKeys, defaultStageConfiguration) | ||
|
||
return configWithDefault | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import com.sap.piper.ConfigurationLoader | ||
import com.sap.piper.ConfigurationMerger | ||
|
||
def call(Map parameters) { | ||
def script = parameters.script | ||
def stepName = parameters.stepName | ||
def stepConfigKeys = parameters.stepConfigKeys | ||
|
||
Map stepConfiguration = ConfigurationLoader.stepConfiguration(script, stepName) | ||
Map defaultStepConfiguration = ConfigurationLoader.defaultStepConfiguration(script, stepName) | ||
Map configWithDefault = ConfigurationMerger.merge(stepConfiguration, stepConfigKeys, defaultStepConfiguration) | ||
|
||
return configWithDefault | ||
} |
Oops, something went wrong.