Skip to content

Functional Tests

Functional Tests #24

name: Functional Tests
on:
workflow_dispatch:
inputs:
docker_compose:
description: "Docker Compose File"
default: "docker-compose.yml"
type: string
required: False
umbrella_branch:
description: "Umbrella Branch (Functional Tests)"
default: "main"
type: string
required: False
worker_version:
description: "Worker Version"
default: "latest"
type: string
required: False
cli_version:
description: "CLI Version"
default: "latest"
type: string
required: False
workflow_call:
inputs:
docker_compose:
description: "Docker Compose File"
default: "docker-compose.yml"
type: string
required: False
umbrella_branch:
description: "Umbrella Branch (Functional Tests)"
default: "main"
type: string
required: False
worker_version:
description: "Worker Version"
default: "latest"
type: string
required: False
cli_version:
description: "CLI Version"
default: "latest"
type: string
required: False
jobs:
functional-das:
name: "DAS"
runs-on: ubuntu-latest
strategy:
matrix:
pytest-group: [ "1", "2", "3"]
steps:
- name: Checkout RSTUF API source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Checkout RSTUF Umbrella (FT)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: repository-service-tuf/repository-service-tuf
path: rstuf-umbrella
ref: ${{ inputs.umbrella_branch }}
- name: Deploy RSTUF with API container from source code
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf
with:
compose-file: ${{ inputs.docker_compose }}
env:
WORKER_VERSION: ${{ inputs.worker_version }}
- name: Bootstrap/Setup RSTUF DAS and run Functional Tests
run: |
make ft-das CLI_VERSION=${{ inputs.cli_version }} PYTEST_GROUP=${{ matrix.pytest-group }}
functional-das-slow:
name: "DAS Slow"
runs-on: ubuntu-latest
steps:
- name: Checkout RSTUF API source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Checkout RSTUF Umbrella (FT)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: repository-service-tuf/repository-service-tuf
path: rstuf-umbrella
ref: ${{ inputs.umbrella_branch }}
- name: Deploy RSTUF with API container from source code
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf
with:
compose-file: ${{ inputs.docker_compose }}
env:
WORKER_VERSION: ${{ inputs.worker_version }}
- name: Very slow tests
run: |
make ft-das CLI_VERSION=${{ inputs.cli_version }} PYTEST_GROUP=none SLOW="yes"
functional-signed:
name: "Signed"
runs-on: ubuntu-latest
strategy:
matrix:
pytest-group: [ "1", "2", "3"]
steps:
- name: Checkout RSTUF API source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Checkout RSTUF Umbrella (FT)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: repository-service-tuf/repository-service-tuf
path: rstuf-umbrella
ref: ${{ inputs.umbrella_branch }}
- name: Deploy RSTUF with API container from source code
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf
with:
compose-file: ${{ inputs.docker_compose }}
env:
WORKER_VERSION: ${{ inputs.worker_version }}
- name: Bootstrap/Setup RSTUF full Signed and run Functional Tests
run: |
make ft-signed CLI_VERSION=${{ inputs.cli_version }} PYTEST_GROUP=${{ matrix.pytest-group }}
functional-signed-slow:
name: "Signed Slow"
runs-on: ubuntu-latest
steps:
- name: Checkout RSTUF API source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Checkout RSTUF Umbrella (FT)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: repository-service-tuf/repository-service-tuf
path: rstuf-umbrella
ref: ${{ inputs.umbrella_branch }}
- name: Deploy RSTUF with API container from source code
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf
with:
compose-file: ${{ inputs.docker_compose }}
env:
WORKER_VERSION: ${{ inputs.worker_version }}
- name: Very slow tests
run: |
make ft-signed CLI_VERSION=${{ inputs.cli_version }} PYTEST_GROUP=none SLOW="yes"