suite: secret name test
templates:
  - common.yaml
release:
  name: test-release-name
  namespace: test-release-namespace
tests:
  - it: should generate correct name
    set:
      secret:
        my-secret1:
          enabled: true
          data:
            foo: bar
        my-secret2:
          enabled: true
          data:
            foo: bar
    asserts:
      - documentIndex: &secretDoc 0
        isKind:
          of: Secret
      - documentIndex: *secretDoc
        isAPIVersion:
          of: v1
      - documentIndex: *secretDoc
        equal:
          path: metadata.name
          value: test-release-name-common-test-my-secret1
      - documentIndex: &otherSecretDoc 1
        isKind:
          of: Secret
      - documentIndex: *otherSecretDoc
        isAPIVersion:
          of: v1
      - documentIndex: *otherSecretDoc
        equal:
          path: metadata.name
          value: test-release-name-common-test-my-secret2
