suite: Test NOTES.txt deprecations
templates:
  - templates/NOTES.txt
release:
  name: notes
  namespace: apps-notes
tests:
  - it: should output a deprecation message when legacy provider configuration is in use
    set:
      provider: legacy
    asserts:
      - matchRegexRaw:
          pattern: "🚧 DEPRECATIONS 🚧"
      - matchRegexRaw:
          pattern: |
            ❗❗❗ DEPRECATED ❗❗❗\sThe legacy 'provider: <name>' configuration is in use. Support will be removed in future releases.

  - it: should not output a deprecation message when supported provider configuration is in use
    set:
      provider:
        name: non-legacy-config
    asserts:
      - notMatchRegexRaw:
          pattern: "🚧 DEPRECATIONS 🚧"
      - notMatchRegexRaw:
          pattern: ❗❗❗ DEPRECATED ❗❗❗
