github.com/kubeshop/testkube@v1.17.23/test/k6/executor-tests/crd/other.yaml (about)

     1  # k6 with git-dir - use-case: test with other dependencies
     2  apiVersion: tests.testkube.io/v3
     3  kind: Test
     4  metadata:
     5    name: k6-executor-smoke-directory
     6    labels:
     7      core-tests: executors
     8  spec:
     9    type: k6/script
    10    content:
    11      type: git
    12      repository:
    13        type: git
    14        uri: https://github.com/kubeshop/testkube.git
    15        branch: main
    16        path: test/k6/executor-tests
    17    executionRequest:
    18      variables:
    19        K6_SYSTEM_ENV:
    20          name: K6_SYSTEM_ENV
    21          value: K6_SYSTEM_ENV_value
    22          type: basic
    23      args:
    24        - -e
    25        - K6_ENV_FROM_PARAM=K6_ENV_FROM_PARAM_value
    26        - k6-smoke-test.js
    27      jobTemplate: "apiVersion: batch/v1\nkind: Job\nspec:\n  template:\n    spec:\n      containers:\n        - name: \"{{ .Name }}\"\n          image: {{ .Image }}\n          resources:\n            requests:\n              memory: 128Mi\n              cpu: 128m\n"
    28      activeDeadlineSeconds: 180