suite: test deployment
templates:
  - deployment.yaml
tests:
  - it: deployment should match snapshot
    set:
      image.tag: v0.8.0
    asserts:
      - matchSnapshot: {}
  - it: Should have Pod DNS Policy set to ClusterFirst
    set:
      podDnsPolicy: ClusterFirst
    asserts:
      - equal:
          path: spec.template.spec.dnsPolicy
          value: ClusterFirst
  - it: Should have Pod DNS Config set with ndots option
    set:
      podDnsConfig:
        options:
          - name: ndots
            value: "2"
    asserts:
      - equal:
          path: spec.template.spec.dnsConfig.options[0].name
          value: "ndots"
      - equal:
          path: spec.template.spec.dnsConfig.options[0].value
          value: "2"
