quintush / helm-unittest

BDD styled unit test framework for Kubernetes Helm charts as a Helm plugin.
MIT License
345 stars 69 forks source link

Feature: Add antonym and not to lengthEqual assertion #197

Closed jzbruno closed 1 year ago

jzbruno commented 1 year ago

Hello,

Thanks for adding the lengthEqual assertion in https://github.com/quintush/helm-unittest/issues/190. It looks like the antonym and not flags were not added like described in the documentation.

https://github.com/quintush/helm-unittest/blob/master/DOCUMENT.md#antonym-and-not

Please add them so we can do the following (using example from original feature request)

- it: length matches
  set:
    global.ingress.hosts:
      - prod.example.com
      - stage.example.com
  asserts:
    - notLengthEqual:
        path: spec.tls
        count: 1
    - lengthEqual:
        path: spec.tls
        count: 1
      not: true