[
https://issues.apache.org/jira/browse/SLING-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031809#comment-15031809
]
Bertrand Delacretaz commented on SLING-5329:
--------------------------------------------
I don't like the idea of adding initial content to the temporary bundles
created by the teleporter rule, for two reasons:
1) Initial content is installed asynchronously, so you'd need to wait for it to
be present before running your tests.
2) Removal/cleanup of that content is problematic
For tests that require specific content I'd much prefer a mechanism that
installs the content synchronously, probably using the Sling content loader,
and automatically registers it for synchronous cleanup at the end of the tests.
A distinct content-loading JUnit rule that runs server-side looks more natural
for that.
> Add add a method to add custom manifest entries
> -----------------------------------------------
>
> Key: SLING-5329
> URL: https://issues.apache.org/jira/browse/SLING-5329
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: JUnit Tests Teleporter 1.0.4
> Reporter: Thierry Ygé
>
> Currently it is not possible to add any value to the generated manifest in
> the ClientSideTeleporter, which uses TinyBundle.
> It would allow to add for example the Sling-Initial-Content information, so
> when the ClientSideTeleporter install the bundle on the serverside, it would
> also install content. Maybe other needs in the future will require to add
> values in the manifest.
> I will open also another issue to suggest to implement a new method to
> include easily test content to the generated bundle.
> cc [~bdelacretaz] [~radu.cotescu]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)