suite: test binding's subject namespace
templates:
  - role_binding.yaml
  - cluster_role_binding.yaml
tests:
  - it: should use \"default\" namespace by default
    release:
      # helm-unittest defaults this to "NAMESPACE" which is dumb - helm uses "default" by default
      namespace: default
    asserts:
      - equal:
          path: subjects[0].namespace
          value: default
  - it: should use overriden namespace
    release:
      namespace: logdna-agent
    asserts:
      - equal:
          path: subjects[0].namespace
          value: logdna-agent
