1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-25 06:17:50 +00:00
catalog/task/robot-framework/0.1
Yulia Gaponenko f4708d478e Add linux/amd64 platform annotation to the rest of the tasks
At this moment all tasks which can be executed on linux/s390x or
linux/ppc64le are tested and labelled accordingly.
The rest of the tasks can be labelled as `linux/amd64`, which
is default platform and where tasks are already tested via
default PR testing cycle.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-29 17:08:38 +01:00
..
tests Add Robot Framework Task 2021-10-26 11:12:37 +01:00
README.md Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00
robot-framework.yaml Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00

Robot Framework

This task runs Robot Framework tests that are provided in the source workspace. Additional configuration is possible with a variable file.

Install the Task

kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/robot-framework/0.1/robot-framework.yaml

Workspaces

  • source: A workspace containing Robot Framework tests. Results are written to /reports.

  • variables-file: An optional workspace to add a variable file. Useful if you have want to use a secret for credentials, url's, etc.

Parameters

  • IMAGE: Optional: Default uses a basic python image and installs test requirements during runtime. It's also possible to use your own image which has requirements pre-installed.
  • REQUIREMENTS_FILE: Optional: Requirements file to use for installing test requirements
  • ROBOT_OPTIONS: Optional: Arguments to use with the robot command
  • TEST_DIR: Directory that contains robot tests
  • VARIABLES_FILE: Optional: Name of the variable file provided in the workspace. A .py extension is necessary.

Platforms

The Task can be run on linux/amd64 platform.

Usage

Basic usage without installing extra requirements or using a variables file:

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: example-run
spec:
  taskRef:
    name: robot-framework
  params:          
    - name: TEST_DIR
      value: ./rf-tests
  workspaces:
  - name: source
    persistentVolumeClaim:
      claimName: my-source

Using a secret that contains a variable file (called variables.py):

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: example-run
spec:
  taskRef:
    name: robot-framework
  params:          
    - name: TEST_DIR
      value: ./rf-tests
    - name: VARIABLES_FILE
      value: variables.py
  workspaces:
  - name: source
    persistentVolumeClaim:
      claimName: my-source
  - name: variables-file
    secret:
      secretName: variables

Result files are written to /reports in the source workspace. If you want to store the files long-term make sure to upload them to S3 or something similar.