github.com/replicatedhq/ship@v0.55.0/integration/base/helm-fetch/expected/installer/charts/rendered/tests/test.yaml (about)

     1  ---
     2  # Source: mysql/templates/tests/test.yaml
     3  apiVersion: v1
     4  kind: Pod
     5  metadata:
     6    name: ship-mysql-test
     7    labels:
     8      app: ship-mysql
     9      chart: "mysql-0.8.3"
    10      heritage: "Tiller"
    11      release: "ship"
    12    annotations:
    13      "helm.sh/hook": test-success
    14  spec:
    15    initContainers:
    16      - name: test-framework
    17        image: dduportal/bats:0.4.0
    18        command:
    19        - "bash"
    20        - "-c"
    21        - |
    22          set -ex
    23          # copy bats to tools dir
    24          cp -R /usr/local/libexec/ /tools/bats/
    25        volumeMounts:
    26        - mountPath: /tools
    27          name: tools
    28    containers:
    29      - name: ship-test
    30        image: "mysql:5.7.14"
    31        command: ["/tools/bats/bats", "-t", "/tests/run.sh"]
    32        volumeMounts:
    33        - mountPath: /tests
    34          name: tests
    35          readOnly: true
    36        - mountPath: /tools
    37          name: tools
    38    volumes:
    39    - name: tests
    40      configMap:
    41        name: ship-mysql-test
    42    - name: tools
    43      emptyDir: {}
    44    restartPolicy: Never