1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/resources/metadata/containerExecuteStructureTests.yaml
Oliver Nocon f455a8a4a0
fix(dockerOptions) properly pass empty values (#3024)
it is possible to overwrite the entrypoint for docker execution:
https://docs.docker.com/engine/reference/run/#entrypoint-default-command-to-execute-at-runtime

This is ideally done by passing `entrypoint=''` and not pass two options to the call.
This also helps with escaping issues of the empty value on other systems.

Co-authored-by: Sven Merk <33895725+nevskrem@users.noreply.github.com>
2021-08-02 10:21:14 +02:00

61 lines
1.9 KiB
YAML

metadata:
name: containerExecuteStructureTests
description: In this step [Container Structure Tests](https://github.com/GoogleContainerTools/container-structure-test) are executed.
longDescription: |
This testing framework allows you to execute different test types against a Docker container, for example:
- Command tests (only if a Docker Deamon is available)
- File existence tests
- File content tests
- Metadata test
spec:
inputs:
params:
- name: pullImage
type: bool
description: Force a pull of the tested image before running tests. Only relevant for testDriver 'docker'.
scope:
- STEPS
- STAGES
- PARAMETERS
- name: testConfiguration
type: string
description: Container structure test configuration in yml or json format. You can pass a pattern in order to execute multiple tests.
scope:
- STEPS
- STAGES
- PARAMETERS
mandatory: true
- name: testDriver
type: string
description: Container structure test driver to be used for testing, please see https://github.com/GoogleContainerTools/container-structure-test for details.
scope:
- STEPS
- STAGES
- PARAMETERS
- name: testImage
type: string
description: Image to be tested
scope:
- STEPS
- STAGES
- PARAMETERS
mandatory: true
- name: testReportFilePath
type: string
description: Path and name of the test report which will be generated
scope:
- STEPS
- STAGES
- PARAMETERS
default: cst-report.json
containers:
- image: ppiper/container-structure-test
command:
- /busybox/tail -f /dev/null
shell: /busybox/sh
options:
- name: -u
value: "0"
- name: --entrypoint
value: ''