mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-20 05:19:40 +02:00
Move files controlling integration tests
Before: files contained inside s4sdk folder Now: file resides one level higher Reason: open integration test framework for other use cases, not related to s4sdk. Idea: teams providing use cases provides a corrsponding folder which hosts the test cases.
This commit is contained in:
parent
d60bb9f58c
commit
8543873a12
12
consumer-test/integrationTestController.sh
Executable file
12
consumer-test/integrationTestController.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
WORKSPACE=workspace
|
||||
[ -e "${WORKSPACE}" ] && rm -rf ${WORKSPACE}
|
||||
|
||||
for f in `find . -type f -depth 2 -name '*.yml'`
|
||||
do
|
||||
testCase=`basename ${f%.*}`
|
||||
area=`dirname ${f#*/}`
|
||||
echo "${area}/${testCase}"
|
||||
source runTest.sh ${testCase}
|
||||
done
|
@ -7,7 +7,7 @@ REPOSITORY_UNDER_TEST=${TRAVIS_REPO_SLUG:-SAP/jenkins-library}
|
||||
|
||||
rm -rf workspace
|
||||
git clone -b "${EXAMPLE_PROJECT_BRANCH}" https://github.com/sap/cloud-s4-sdk-book workspace
|
||||
cp -f ../jenkins.yml workspace
|
||||
cp -f jenkins.yml workspace
|
||||
cd workspace || exit 1
|
||||
|
||||
# Configure path to library-repository under test in Jenkins config
|
||||
@ -21,3 +21,5 @@ git commit --all --author="piper-testing-bot <piper-testing-bot@example.com>" --
|
||||
|
||||
docker run -v /var/run/docker.sock:/var/run/docker.sock -v "${PWD}":/workspace -v /tmp -e CASC_JENKINS_CONFIG=/workspace/jenkins.yml \
|
||||
-e CX_INFRA_IT_CF_USERNAME -e CX_INFRA_IT_CF_PASSWORD -e BRANCH_NAME="${EXAMPLE_PROJECT_BRANCH}" ppiper/jenkinsfile-runner
|
||||
|
||||
cd -
|
@ -1,3 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
source ../prepareTests.sh consumer-test
|
@ -1,3 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
source ../prepareTests.sh consumer-test-neo
|
2
consumer-test/s4sdk/consumer-test-neo.yml
Normal file
2
consumer-test/s4sdk/consumer-test-neo.yml
Normal file
@ -0,0 +1,2 @@
|
||||
# Empty for the moment.
|
||||
# Might contain test configuration in the future.
|
2
consumer-test/s4sdk/consumer-test.yml
Normal file
2
consumer-test/s4sdk/consumer-test.yml
Normal file
@ -0,0 +1,2 @@
|
||||
# Empty for the moment.
|
||||
# Might contain test configuration in the future.
|
Loading…
x
Reference in New Issue
Block a user