camel-karaf icon indicating copy to clipboard operation
camel-karaf copied to clipboard

CamelAws2IamITest is failing on the test container

Open jbonofre opened this issue 1 year ago • 3 comments

The itest seems to require specific resource:

[tc.localstack/localstack:3.4.0] ERROR : Could not start container
com.github.dockerjava.api.exception.NotFoundException: Status 404: {"message":"content digest sha256:dcae4711247195b3eb01a1ffe6ea1ad9a19199d9441eff86d3a4b4aa3f49d4c6: not found"}

This should be avoided or at least documented.

jbonofre avatar Jul 16 '24 09:07 jbonofre

@essobedo @f2par0 ^^

jbonofre avatar Jul 16 '24 09:07 jbonofre

Hello @jbonofre , I cannot reproduce the error locally , and the latest build on this PR for instance https://github.com/apache/camel-karaf/pull/433/checks shows a successful test

bundle:list -s -t 0 | grep camel-aws2-iam-test
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 40.09 s -- in org.apache.karaf.camel.itest.CamelAws2IamITest

Do you reproduce this ?

f2par0 avatar Jul 17 '24 08:07 f2par0

@f2par0 it seems to work on MacOS Intel platform but not on M1. Maybe related to the default platform used for the test container. I'm investigating.

jbonofre avatar Jul 17 '24 20:07 jbonofre

I cannot reproduce on M3

essobedo avatar Oct 14 '24 06:10 essobedo

I'm trying a new time but it seems to be fixed.

jbonofre avatar Oct 21 '24 05:10 jbonofre

I still have the issue on M3 where the build is "stuck" on:

provider org.apache.maven.surefire.junit4.JUnit4Provider
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.karaf.camel.itest.CamelAws2IamITest

Not a big deal, I can skip this test, but it's weird.

jbonofre avatar Oct 22 '24 08:10 jbonofre

We could skip the test like for LevelDB https://github.com/apache/camel-karaf/pull/521. If it is ok, for you I can do it within the context of this ticket

essobedo avatar Oct 22 '24 08:10 essobedo

Yes, it makes sense to use the same profile to skip all related tests here.

jbonofre avatar Oct 22 '24 08:10 jbonofre