fix: reject unknown chaos block options (#8121)

This commit is contained in:
Immanuel Tikhonov
2026-05-24 16:58:11 +04:00
committed by GitHub
parent d9c6b9b8b4
commit 17142359e0
2 changed files with 25 additions and 15 deletions

View File

@@ -22,6 +22,11 @@ func TestSetupChaos(t *testing.T) {
{
`chaos v3 "Miek Gieben"`, false, "v3", "Miek Gieben", "",
},
{
`chaos v2 {
unknown
}`, true, "", "", "unknown property",
},
}
for i, test := range tests {