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

Helm chart Unit Tests #28

Open
arm4b opened this issue Oct 9, 2018 · 3 comments
Open

Helm chart Unit Tests #28

arm4b opened this issue Oct 9, 2018 · 3 comments
Labels
feature good first issue Good for newcomers Helm help wanted Extra attention is needed
Milestone

Comments

@arm4b
Copy link
Member

arm4b commented Oct 9, 2018

Apart of Helm Chart Integration Testing in #27 which could be ran only against real K8s cluster and deployed release, consider adding Unit Tests for smaller item checks which is available as a Helm plugin: https://github.com/lrills/helm-unittest https://github.com/quintush/helm-unittest

@cognifloyd
Copy link
Member

Though not a unittest, I just experimented with using https://github.com/bats-core/bats-detik to have the inegration tests query k8s to ensure things are setup correctly. Seems to work ok.

@cognifloyd

This comment was marked as outdated.

@cognifloyd
Copy link
Member

cognifloyd commented Feb 23, 2022

I've added a bunch of tests in #288.

Other tests that I think would be good (I'm listing values) in no particular order:

  • env and envFromSecrets
    • st2*.env and jobs.env
    • st2actionrunner.envFromSecrets,
    • st2sensorcontainer.envFromSecrets,
    • st2client.envFromSecrets,
    • and jobs.envFromSecrets
  • st2*.extra_volumes (all except st2chatops have it)
  • st2.packs.volumes
  • st2chatops
    • st2chatops.enabled
    • st2chatops.env (some special handling of api key var)
    • st2chatops.hubotScriptsVolume
  • config
    • st2.config
    • st2client.st2clientConfig
    • jobs.st2clientConfig
  • HTTPS in st2web (st2web.env.ST2WEB_HTTPS and st2web.extra_volumes)
  • image
    • image.repository
    • image.tag
    • st2*.image.tag and jobs.image.tag
  • st2*.replicas (some things can only ever have 1, others can have multiple...)
  • st2 security
    • st2.username and st2.password
    • st2.system_user.user and st2.system_user.ssh_key_file
  • st2.datastore_crypto_key
  • st2.rbac
  • st2.packs.configs
  • st2.packs.images
  • st2.packs.sensors
  • jobs.preRegisterContentCommand
  • jobs.skip
  • anything to do with external charts

Help wanted!

@arm4b arm4b modified the milestones: prod/GA, post-GA Apr 21, 2022
@rush-skills rush-skills added the help wanted Extra attention is needed label Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Good for newcomers Helm help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants