Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration Tests break AEM server #70

Closed
sschwedler opened this issue Jan 18, 2017 · 7 comments
Closed

Integration Tests break AEM server #70

sschwedler opened this issue Jan 18, 2017 · 7 comments
Assignees
Labels
bug Unexpected problem or unintended behavior that impairs normal functioning of the product.
Milestone

Comments

@sschwedler
Copy link

When running integration tests the AEM package manager does not work anymore. It's because task installs old versions of httpclient-osgi and httpscore-osgi. As a workaround the pom.xml in launcher project can be modified by commenting the bundles. Integration tests work without installing these bundles.

<sling.additional.bundle.7>httpclient-osgi</sling.additional.bundle.7>
<sling.additional.bundle.8>httpcore-osgi</sling.additional.bundle.8>

@rombert rombert self-assigned this Jan 18, 2017
@rombert rombert added the bug Unexpected problem or unintended behavior that impairs normal functioning of the product. label Jan 18, 2017
@rombert rombert added this to the 11 milestone Jan 18, 2017
@rombert
Copy link
Contributor

rombert commented Jan 18, 2017

Thanks for the report @sschwedler . Can you try setting the bundle versions equal to the ones in AEM?

@rombert
Copy link
Contributor

rombert commented Jan 19, 2017

Also, what version of AEM did you test this with?

@sschwedler
Copy link
Author

AEM 6.2. and AEM 6.2. SP1

@sschwedler
Copy link
Author

When changing the versions tag of the dependencies for httpclient and httpcore I get the following message when executing the integration test.

[main] INFO org.apache.sling.testing.tools.sling.BundlesInstaller - Not reinstalling: org.apache.httpcomponents.httpclient
[main] INFO org.apache.sling.testing.tools.sling.BundlesInstaller - Not reinstalling: org.apache.httpcomponents.httpcore

@rombert
Copy link
Contributor

rombert commented Jan 19, 2017

That sounds promising. Does the package manager break with these updated versions? If not, what versions did you change them to?

BTW, if you have something that works for you and you have the time to do so, feel free to create a pull request.

@sschwedler
Copy link
Author

With that the package manager works fine after an integration test. The question to me is, why does it install these bundles which are already available in AEM?

@rombert
Copy link
Contributor

rombert commented Jan 19, 2017

My guess would be that older AEM versions are using http client version 3, but I have to check first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior that impairs normal functioning of the product.
Projects
None yet
Development

No branches or pull requests

2 participants