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

     1  apiVersion: tests.testkube.io/v3
     2  kind: Test
     3  metadata:
     4    name: postman-executor-smoke
     5    labels:
     6      core-tests: executors
     7  spec:
     8    type: postman/collection
     9    content:
    10      type: git
    11      repository:
    12        type: git
    13        uri: https://github.com/kubeshop/testkube.git
    14        branch: main
    15        path: test/postman/executor-tests/postman-executor-smoke.postman_collection.json
    16    executionRequest:
    17      args:
    18        - --env-var
    19        - TESTKUBE_POSTMAN_PARAM=TESTKUBE_POSTMAN_PARAM_value
    20      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: 256m\n"
    21  ---
    22  apiVersion: tests.testkube.io/v3
    23  kind: Test
    24  metadata:
    25    name: postman-executor-smoke-git-file # backwards compatibility check
    26    labels:
    27      core-tests: executors
    28  spec:
    29    type: postman/collection
    30    content:
    31      type: git-file
    32      repository:
    33        type: git
    34        uri: https://github.com/kubeshop/testkube.git
    35        branch: main
    36        path: test/postman/executor-tests/postman-executor-smoke.postman_collection.json
    37    executionRequest:
    38      args:
    39        - --env-var
    40        - TESTKUBE_POSTMAN_PARAM=TESTKUBE_POSTMAN_PARAM_value
    41      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: 256m\n"
    42  ---
    43  apiVersion: tests.testkube.io/v3
    44  kind: Test
    45  metadata:
    46    name: postman-executor-smoke-pre-post-run-scripts
    47    labels:
    48      core-tests: executors
    49  spec:
    50    type: postman/collection
    51    content:
    52      type: git
    53      repository:
    54        type: git
    55        uri: https://github.com/kubeshop/testkube.git
    56        branch: main
    57        path: test/postman/executor-tests/postman-executor-smoke.postman_collection.json
    58    executionRequest:
    59      args:
    60        - --env-var
    61        - TESTKUBE_POSTMAN_PARAM=TESTKUBE_POSTMAN_PARAM_value
    62      preRunScript: "echo \"===== pre-run script\""
    63      postRunScript: "echo \"===== post-run script\""
    64      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: 256m\n"
    65  ---
    66  # postman-executor-smoke-testsource - TestSource
    67  apiVersion: tests.testkube.io/v1
    68  kind: TestSource
    69  metadata:
    70    name: testsource-postman-executor-smoke-testsource
    71  spec:
    72    type: git
    73    repository:
    74      type: git
    75      uri: https://github.com/kubeshop/testkube.git
    76      branch: main
    77      path: test/postman/executor-tests/postman-executor-smoke.postman_collection.json
    78  ---
    79  # postman-executor-smoke-testsource - Test
    80  apiVersion: tests.testkube.io/v3
    81  kind: Test
    82  metadata:
    83    name: postman-executor-smoke-testsource
    84  spec:
    85    type: postman/collection
    86    source: testsource-postman-executor-smoke-testsource
    87    executionRequest:
    88      args:
    89        - --env-var
    90        - TESTKUBE_POSTMAN_PARAM=TESTKUBE_POSTMAN_PARAM_value
    91      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: 256m\n"
    92  ---
    93  # postman-executor-smoke-testsource-git-file - TestSource
    94  apiVersion: tests.testkube.io/v1
    95  kind: TestSource
    96  metadata:
    97    name: testsource-postman-executor-smoke-testsource-git-file
    98  spec:
    99    type: git-file # backwards compatibility check
   100    repository:
   101      type: git
   102      uri: https://github.com/kubeshop/testkube.git
   103      branch: main
   104      path: test/postman/executor-tests/postman-executor-smoke.postman_collection.json
   105  ---
   106  # postman-executor-smoke-testsource-git-file - Test
   107  apiVersion: tests.testkube.io/v3
   108  kind: Test
   109  metadata:
   110    name: postman-executor-smoke-testsource-git-file
   111  spec:
   112    type: postman/collection
   113    source: testsource-postman-executor-smoke-testsource-git-file
   114    executionRequest:
   115      args:
   116        - --env-var
   117        - TESTKUBE_POSTMAN_PARAM=TESTKUBE_POSTMAN_PARAM_value
   118      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: 256m\n"
   119  ---
   120  # postman-executor-smoke-testsource-overwrite - TestSource
   121  apiVersion: tests.testkube.io/v1
   122  kind: TestSource
   123  metadata:
   124    name: testsource-postman-executor-smoke-testsource-overwrite
   125  spec:
   126    type: git
   127    repository:
   128      type: git
   129      uri: https://github.com/kubeshop/testkube.git
   130      branch: some-random-non-existing-branch
   131      path: some/incorrect/random/directory/non-existing-postman-collection.json
   132  ---
   133  # postman-executor-smoke-testsource-overwrite - Test
   134  apiVersion: tests.testkube.io/v3
   135  kind: Test
   136  metadata:
   137    name: postman-executor-smoke-testsource-overwrite
   138  spec:
   139    type: postman/collection
   140    source: testsource-postman-executor-smoke-testsource-overwrite
   141    content:
   142      repository:
   143        branch: main
   144        path: test/postman/executor-tests/postman-executor-smoke.postman_collection.json
   145    executionRequest:
   146      args:
   147        - --env-var
   148        - TESTKUBE_POSTMAN_PARAM=TESTKUBE_POSTMAN_PARAM_value
   149      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: 256m\n"
   150  ---
   151  apiVersion: tests.testkube.io/v3
   152  kind: Test
   153  metadata:
   154    name: postman-executor-smoke-negative
   155    labels:
   156      core-tests: executors-negative
   157  spec:
   158    type: postman/collection
   159    content:
   160      type: git
   161      repository:
   162        type: git
   163        uri: https://github.com/kubeshop/testkube.git
   164        branch: main
   165        path: test/postman/executor-tests/postman-executor-smoke-negative.postman_collection.json
   166    executionRequest:
   167      negativeTest: true
   168      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: 256m\n"