Test suite expander for Stackable Kuttl tests.
Project description
beku
Version: 0.0.10
Fast Kuttl tests expander for Stackable integration tests.
beku -i tests/test-definition.yaml -t tests/templates/kuttl -k tests/kuttl-test.yaml.jinja2 -o tests/_work
beku
parses a test definition YAML file together with a directory of templated Kuttl test definitions.
From this it generates Kuttl test suites which can then be run with plain Kuttl.
This was built on top of Kuttl to support running tests with different version combinations of products, or slightly different features enabled,
without having to duplicate tests.
Installation
We recommend to use pipx:
pipx install beku-stackabletech
But you can also use pip
:
# from PyPI
pip install beku-stackabletech
# from GitHub
pip install git+https://github.com/stackabletech/beku.py.git@main
Or via NixOS and Nix Shell:
{ lib, pkgs, ... }:
with lib;
let
beku = pkgs.callPackage(pkgs.fetchFromGitHub {
owner = "stackabletech";
repo = "beku.py";
rev = "145e8210f5786b8128e3af43f60b61f065cc2c39";
hash = "sha256-hLaIY4BE+VIMeKmS3JLOZy87OC2VuQtbX/NCIbQr2p4="; # use lib.fakeHash to find new hashes when upgrading
} + "/beku.nix") {};
in
{
packages = with pkgs; [
beku
# ...
];
// ...
}
Usage
cd <stackable operator directory>
rm -rf tests/_work && beku
cd tests/_work && kubectl kuttl test
Also see the examples
folder.
Release a new version
Update the version in:
src/beku/version.py
README.md
: version and pip install command.
Update the CHANGELOG. Commit and tag. Build and publish:
rm -rf dist/
python -m build --sdist --wheel .
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file beku_stackabletech-0.0.10.tar.gz
.
File metadata
- Download URL: beku_stackabletech-0.0.10.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d09f5f52ad6bc3e7901f7480d4a08d9c4f4673d5927b03512d11e73ebb97613f |
|
MD5 | d508e98a092c7ecaf27e15c248be57f3 |
|
BLAKE2b-256 | 37c8897dc10f7fea455aebe8bb28fced7225f63e0d1154df0315ef73dd36bc81 |
File details
Details for the file beku_stackabletech-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: beku_stackabletech-0.0.10-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84610032de6b271485befb197a36f6d3faeb12f39f6f4225d2b8732f6d59124 |
|
MD5 | d783d17cbea00bc9e945e0ccc6bad40f |
|
BLAKE2b-256 | 2c522f871d430aacf59bc4e7c89db478b519b24bf6f8e5e9f6952daa288482fe |