github.com/jaylevin/jenkins-library@v1.230.4/resources/metadata/uiVeri5ExecuteTests.yaml (about)

     1  metadata:
     2    name: uiVeri5ExecuteTests
     3    description: Executes UI5 e2e tests using uiVeri5
     4    longDescription: |
     5      In this step the ([UIVeri5 tests](https://github.com/SAP/ui5-uiveri5)) are executed.
     6  
     7  #    The step is using `dockerExecute` step to spin up two containers in a Docker network:
     8  #    * a Selenium/Chrome container (`selenium/standalone-chrome`)
     9  #    * a NodeJS container (`node:lts-stretch`)
    10  #    In the Docker network, the containers can be referenced by the values provided in `dockerName` and `sidecarName`, the default values are `uiVeri5` and `selenium`.
    11  #   !!! note
    12  #        In a Kubernetes environment, the containers both need to be referenced with `localhost`.
    13  spec:
    14    inputs:
    15      resources:
    16        - name: buildDescriptor
    17          type: stash
    18        - name: tests
    19          type: stash
    20      params:
    21        - name: installCommand
    22          type: string
    23          description: The command that is executed to install the uiveri5 test tool.
    24          default: npm install @ui5/uiveri5 --global --quiet
    25          scope:
    26            - GENERAL
    27            - PARAMETERS
    28            - STAGES
    29            - STEPS
    30          mandatory: true
    31        - name: runCommand
    32          type: string
    33          description: "The command that is executed to start the tests."
    34          default: /home/node/.npm-global/bin/uiveri5
    35          scope:
    36            - GENERAL
    37            - PARAMETERS
    38            - STAGES
    39            - STEPS
    40          mandatory: true
    41        - name: runOptions
    42          type: "[]string"
    43          description: "Options to append to the runCommand, last parameter has to be path to conf.js (default if missing: ./conf.js)."
    44          default: ["--seleniumAddress=http://localhost:4444/wd/hub"]
    45          scope:
    46            - PARAMETERS
    47            - STAGES
    48            - STEPS
    49          mandatory: true
    50        - name: testOptions
    51          type: string
    52          description: "Deprecated and will result in an error if set. Please use runOptions instead. Split the testOptions string at the whitespaces when migrating it into a list of runOptions."
    53          scope:
    54            - PARAMETERS
    55            - STAGES
    56            - STEPS
    57        - name: testServerUrl
    58          type: string
    59          description: "URL pointing to the deployment."
    60          scope:
    61            - PARAMETERS
    62            - STAGES
    63            - STEPS
    64    outputs:
    65      resources:
    66        - name: reports
    67          type: reports
    68          params:
    69            - filePattern: "**/TEST-*.xml"
    70              type: acceptance-test
    71            - filePattern: "**/requirement.mapping"
    72              type: requirement-mapping
    73            - filePattern: "**/delivery.mapping"
    74              type: delivery-mapping
    75    containers:
    76      - name: uiVeri5
    77        image: node:lts-stretch
    78        env:
    79          - name: no_proxy
    80            value: localhost,selenium,$no_proxy
    81          - name: NO_PROXY
    82            value: localhost,selenium,$NO_PROXY
    83        workingDir: /home/node
    84    sidecars:
    85      - image: selenium/standalone-chrome
    86        name: selenium
    87        securityContext:
    88          privileged: true
    89        volumeMounts:
    90          - mountPath: /dev/shm
    91            name: dev-shm
    92        env:
    93          - name: "NO_PROXY"
    94            value: "localhost,selenium,$NO_PROXY"
    95          - name: "no_proxy"
    96            value: "localhost,selenium,$no_proxy"