AuthValidationRule

Defines a contract for authentication-related validation rules that produce negative test cases.

Unlike SchemaValidationRule which returns low-level RuleValue objects, auth rules return complete TestCase objects directly because auth validation requires changes across headers, cookies, query params, and security values.

Determinism: rule output order must be stable for identical inputs.

Functions

Link copied to clipboard
abstract fun apply(context: TestGenerationContext): Sequence<TestCase>

Applies the rule to the given context with a valid case producing one or more derived negative test cases.

Link copied to clipboard
abstract fun decide(context: TestGenerationContext): Boolean

Decides whether this rule is applicable to the provided context.

Link copied to clipboard
abstract fun getRuleName(): String

Provides a short, human-readable rule name used for identification and reporting.