about summary refs log tree commit diff
path: root/tests/unit
AgeCommit message (Collapse)Author
7 daysMake initialise_job metadata keyword-only HEAD mainFrederick Muriuki Muriithi
Change `initialise_job` to accept metadata as keyword arguments, with `expiry_seconds` as a keyword-only reserved argument. Document the `external_id` value, and the `workflow_claim` metadata convention for idempotent stage transitions. Call sites that pass `extra_meta={...}` must unpack the dict instead. Co-authored-by: pi coding agent <pi@pi.dev>
7 daysAdd jobs_by_metadata to look up jobs by metadataFrederick Muriuki Muriithi
Fetch jobs whose metadata contains all the given key/value pairs, returning each job with its metadata, newest first. This supports idempotent stage transitions without mutating completed jobs. Co-authored-by: pi coding agent <pi@pi.dev>
7 daysIndex the jobs metadata by key and valueFrederick Muriuki Muriithi
Add a `(metadata_key, metadata_value)` index to `jobs_metadata` so jobs can be looked up by their metadata without scanning the table. Co-authored-by: pi coding agent <pi@pi.dev>
2026-10-28Enable passing PRAGMA directives on connection string.Frederick Muriuki Muriithi
Enable passing of PRAGMA directives on the connection string to enable setting different directives for different environments.
2025-07-24Deactivate a check that's likely wrong - add a note. privileges-checking2Frederick Muriuki Muriithi
2025-07-24Add test for the `check` function.Frederick Muriuki Muriithi
2025-07-24Add test to check for reduction of specifications.Frederick Muriuki Muriithi
2025-07-24Populate empty tests.Frederick Muriuki Muriithi
2025-07-23Add some more tests for invalid specifications.Frederick Muriuki Muriithi
2025-07-23Privileges-check specification parsing: add a new test.Frederick Muriuki Muriithi
Check that the parser reduces interleaved conditions into a simpler tree, merging conditionals where appropriate.
2025-07-22Begin working on simple DSL for privileges checking.Frederick Muriuki Muriithi
2025-05-26Fix test to match updated MySQL connect() keyword args.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-12-09Parse SSL options for the connection string.Frederick Muriuki Muriithi
2024-12-09Parse for SSL_MODE option values from a list of acceptable values.Frederick Muriuki Muriithi
2024-12-09Check for non-negative integers.Frederick Muriuki Muriithi
2024-12-09Parse a larger pool of possible boolean valuesFrederick Muriuki Muriithi
When a key is supposed to have a boolean value, parse the value from a larger pool of both true and false values.
2024-11-21Initialise test directories as packages to prevent pytest failure.Frederick Muriuki Muriithi
2024-11-21Fix linting and mypy errorsFrederick Muriuki Muriithi
2024-11-21Add tests for gn_libs.mysqldb moduleFrederick Muriuki Muriithi