Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] assertions for multi line values #254

Open
ensctom opened this issue Dec 19, 2023 · 1 comment
Open

[feature request] assertions for multi line values #254

ensctom opened this issue Dec 19, 2023 · 1 comment
Labels

Comments

@ensctom
Copy link

ensctom commented Dec 19, 2023

I have a rendered helm chart like the following for a spring application


templateKeys:
    - key : config.yaml
      template: |
         server.port=8888
         spring.application.name=my-app

or

templateKeys:
    - key : config.yaml
      template: |
          spring:
            application:
              name: my-appp

currently I have to assert my template using

-it : test
  asserts:
    - matchRegex:
      - path: spec.templateKeys[0].template
        pattern: spring.application.name=my-app

or

-it : test
  asserts:
    - matchRegex:
     - path: spec.templateKeys[0].template
       pattern: name=my-app

would by nice if I could assert using

-it : test
  asserts:
    - equal:
     - path: spec.templateKeys[0].template.spring.application.name
       value: my-app
``

@quintush
Copy link
Contributor

Hello @ensctom,

Thank you for the feedback.
Will look into this option.

Greetings,
@quintush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants