ubx test discovers and runs *.test.iac files. No cloud resources, no credentials required.
Usage
Examples
Flags
| Flag | Description |
|---|---|
--verbose | Show assertion details for passing tests |
Test File Syntax
Plan Assertion Tests
Error Assertion Tests
Test Block Fields
| Field | Description |
|---|---|
inputs | Map of input values ({ env = "staging" }) |
assert | One or more assertion sub-blocks |
source | Inline .iac source (overrides project files) |
expect_error | Expected error substring |
Assert Fields
| Field | Description |
|---|---|
resource | "type.name" matching the unit block |
action | "create", "update", "delete", "no-change" |
attributes | Map of expected key-value pairs |
Output
Exit Codes
| Code | Meaning |
|---|---|
0 | All tests pass |
1 | One or more tests fail |
