apache / incubator-kie-kogito-images

Images for Kogito
http://kogito.kie.org
Apache License 2.0
23 stars 79 forks source link

Change behave tests on containers that dies on startup #1722

Open ricardozanini opened 9 months ago

ricardozanini commented 9 months ago

On a few behave tests on containers that don't have a stable entrypoint (it runs and dies immediately), Cekit might hang trying to fetch the current process, hence failing the test execution or timing out.

We should start these containers via container is started with command bash, so it makes the container available to make the verifications needed.

See the ignored list of tests in this PR: https://github.com/apache/incubator-kie-kogito-images/pull/1720

Context

I've added an ignore tag to the Verify if a custom certificate is correctly handled:

https://github.com/apache/incubator-kie-kogito-images/blob/main/tests/features/common-custom-truststore.feature#L21

Since it's making cekit hanging trying to ps a dead container. The container starts and dies since the truststore is invalid, cekit tries to ps to get the log and hangs.

Originally posted by @ricardozanini in https://github.com/apache/incubator-kie-kogito-images/issues/1720#issuecomment-1871034280