Comments (3)
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.
from stackstorm-k8s.
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
andjobs.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
andst2web.extra_volumes
) - image
image.repository
image.tag
st2*.image.tag
andjobs.image.tag
-
st2*.replicas
(some things can only ever have 1, others can have multiple...) - st2 security
st2.username
andst2.password
st2.system_user.user
andst2.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!
from stackstorm-k8s.
I looked into the helm-unittest plugin. There are a chain of repos where one person and then another is maintaining it. And I don't relish writing unit tests in YAML even though everything else is in YAML.
Looking farther, it looks like the airflow folks pioneered using pytest to unit test helm charts instead of using helm-unittest:
helm-unittest/helm-unittest#110
Luckily airflow (and in particular the helm chart + tests) is Apache 2.0 licensed. So, we could use this utility file and start writing pytest-style unit tests.
https://github.com/apache/airflow/blob/main/chart/tests/helm_template_generator.py
from stackstorm-k8s.
Related Issues (20)
- Pack defaults do not get overridden when a pack is reinstalled HOT 2
- sendmail configuration is impossible inside a container HOT 6
- There is an issue with the StackStorm Kafka pack in stackstorm 3.8.0 HOT 1
- rabbitmq 'failed to merge schema: bad cookie' HOT 1
- Not able to create new action in stackstorm (which is deployed on K8s in docker desktop) HOT 2
- proper graceful shutdown settings HOT 6
- Release a new version HOT 11
- Secret DataStore Crypto Key should not be created when existing provided
- Error while installing multiple packs via configs HOT 1
- job-ensure-packs-volumes-are-writable missing policy and syntax error HOT 5
- Deployments have labels that are redundant when existing secrets are provided. HOT 1
- ST2 migration from standalone install to K8s?
- More detailed "Releasing information" HOT 1
- /bin/bash: /etc/nginx/conf.d/st2.conf: Permission denied HOT 2
- Unable to run st2client , st2web, st2actionrunner as stanley user after adding securityContext HOT 5
- Use Secret for `st2.docker.conf` instead of ConfigMap HOT 1
- st2api pod need pack images? HOT 1
- Upgrade `helm-unittest` HOT 6
- I can't install any pack in stackstorm on microk8s
- MongoDB StatefulSet randomly fails to become ready
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stackstorm-k8s.