# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json
suite: secrets
release:
  name: woodpecker-unittests
  namespace: testing
templates:
  - templates/secret.yaml
tests:
  - it: creates a default `woodpecker-default-agent-secret` secret with default values
    asserts:
      - hasDocuments:
          count: 1
      - isKind:
          of: Secret
      - equal:
          path: metadata.name
          value: woodpecker-default-agent-secret
  - it: populates custom secret values properly
    set:
      createAgentSecret: false
      secrets:
        - name: woodpecker-secret
          data:
            FOO: bar
            BAZ: foo
    asserts:
      - hasDocuments:
          count: 1
      - isKind:
          of: Secret
      - equal:
          path: metadata.name
          value: woodpecker-secret
