Skip to content

feat (docs): How to test interception scripts?  #8117

@nynymike

Description

@nynymike

There are 20+ interception scripts in Janssen, which can be written in Jython or Java. The interception script control plane configures scripts for different components: e.g. Auth Server, SCIM, Link. We want to align with TDD of course. But as these scripts are invoked in the middle of a transaction, how would a developer mock the required context?... for example, the sessions or request?

What is the best way to test these scripts? And should each script document the expected context to enable better TDD?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions