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

rename CamelPlatformHttpTest to make it executable #4384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iliyan-velichkov
Copy link
Contributor

Currently, test CamelPlatformHttpTestwasn't included in the integration tests execution because it had wrong sufix Test.
Rename it ti IT in order to make it executable.

Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com>
@iliyan-velichkov
Copy link
Contributor Author

CamelPlatformHttpIT in Pull Request / integration-tests-h2 (pull_request) fails with the following:

2024-10-22T10:30:06.9087930Z 2024-10-22 10:30:06.772 [INFO ] [main] [background] o.e.d.i.tests.DirigibleCleaner - Dirigible project resources have been deleted.
2024-10-22T10:30:06.9089003Z 
2024-10-22T10:30:06.9089222Z MockHttpServletRequest:
2024-10-22T10:30:06.9089746Z       HTTP Method = POST
2024-10-22T10:30:06.9090730Z       Request URI = /services/integrations/camelTest
2024-10-22T10:30:06.9091391Z        Parameters = {}
2024-10-22T10:30:06.9100696Z           Headers = [Content-Type:"application/json;charset=UTF-8", Accept:"application/json", Content-Length:"15"]
2024-10-22T10:30:06.9102233Z              Body = initial message
2024-10-22T10:30:06.9102730Z     Session Attrs = {}
2024-10-22T10:30:06.9103370Z 
2024-10-22T10:30:06.9103546Z Handler:
2024-10-22T10:30:06.9106492Z              Type = org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpConsumer
2024-10-22T10:30:06.9112814Z            Method = org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpConsumer#service(HttpServletRequest, HttpServletResponse)
2024-10-22T10:30:06.9131674Z 
2024-10-22T10:30:06.9131840Z Async:
2024-10-22T10:30:06.9132245Z     Async started = true
2024-10-22T10:30:06.9133098Z      Async result = null
2024-10-22T10:30:06.9133443Z 
2024-10-22T10:30:06.9133632Z Resolved Exception:
2024-10-22T10:30:06.9134056Z              Type = null
2024-10-22T10:30:06.9134474Z 
2024-10-22T10:30:06.9134662Z ModelAndView:
2024-10-22T10:30:06.9135120Z         View name = null
2024-10-22T10:30:06.9135547Z              View = null
2024-10-22T10:30:06.9135977Z             Model = null
2024-10-22T10:30:06.9136252Z 
2024-10-22T10:30:06.9136445Z FlashMap:
2024-10-22T10:30:06.9136804Z        Attributes = null
2024-10-22T10:30:06.9137100Z 
2024-10-22T10:30:06.9137304Z MockHttpServletResponse:
2024-10-22T10:30:06.9137760Z            Status = 200
2024-10-22T10:30:06.9138179Z     Error message = null
2024-10-22T10:30:06.9140753Z           Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0"]
2024-10-22T10:30:06.9142802Z      Content type = null
2024-10-22T10:30:06.9143374Z              Body = 
2024-10-22T10:30:06.9143780Z     Forwarded URL = null
2024-10-22T10:30:06.9144222Z    Redirected URL = null
2024-10-22T10:30:06.9144654Z           Cookies = []
2024-10-22T10:30:06.9148543Z 2024-10-22 10:30:06.776 [INFO ] [main] [background] o.e.d.c.l.c.CloseActiveMQResourcesApplicationListener - Closing ActiveMQ resources due to event org.springframework.context.event.ContextClosedEvent[source=org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@454b63fd, started on Tue Oct 22 10:29:53 UTC 2024]
2024-10-22T10:30:06.9152719Z 2024-10-22 10:30:06.776 [INFO ] [main] [background] o.e.d.c.l.service.ListenersManager - Stopping all background listeners...
2024-10-22T10:30:06.9156106Z 2024-10-22 10:30:06.776 [INFO ] [main] [background] o.e.d.c.l.service.ListenerManager - Stopping message listener for Listener{type=TOPIC, destination='integration-tests-topic', handlerPath='integration-tests-project/background-handler.js'} ...
2024-10-22T10:30:06.9163256Z 2024-10-22 10:30:06.777 [INFO ] [main] [background] o.e.d.c.l.service.ListenerManager - Stopped message listener for Listener{type=TOPIC, destination='integration-tests-topic', handlerPath='integration-tests-project/background-handler.js'}
2024-10-22T10:30:06.9172940Z 2024-10-22 10:30:06.777 [INFO ] [main] [background] o.e.d.c.l.service.ListenerManager - Stopping message listener for Listener{type=QUEUE, destination='integration-tests-queue', handlerPath='integration-tests-project/background-handler.js'} ...
2024-10-22T10:30:06.9195383Z 2024-10-22 10:30:06.778 [INFO ] [main] [background] o.e.d.c.l.service.ListenerManager - Stopped message listener for Listener{type=QUEUE, destination='integration-tests-queue', handlerPath='integration-tests-project/background-handler.js'}
2024-10-22T10:30:06.9200662Z 2024-10-22 10:30:06.778 [INFO ] [main] [background] o.a.activemq.broker.BrokerService - Apache ActiveMQ 6.1.0 (localhost, ID:fv-az1543-749-34523-1729592290229-0:23) is shutting down
2024-10-22T10:30:06.9207622Z 2024-10-22 10:30:06.778 [INFO ] [main] [background] o.a.a.broker.TransportConnector - Connector vm://localhost stopped
2024-10-22T10:30:06.9212106Z 2024-10-22 10:30:06.779 [INFO ] [main] [background] o.a.a.s.kahadb.plist.PListStoreImpl - PListStore:[/home/runner/work/dirigible/dirigible/tests/tests-integrations/./target/dirigible/kahadb] stopped
2024-10-22T10:30:06.9232550Z 2024-10-22 10:30:06.779 [INFO ] [main] [background] o.a.activemq.broker.BrokerService - Apache ActiveMQ 6.1.0 (localhost, ID:fv-az1543-749-34523-1729592290229-0:23) uptime 11.601 seconds
2024-10-22T10:30:06.9235919Z 2024-10-22 10:30:06.779 [INFO ] [main] [background] o.a.activemq.broker.BrokerService - Apache ActiveMQ 6.1.0 (localhost, ID:fv-az1543-749-34523-1729592290229-0:23) is shutdown
2024-10-22T10:30:06.9239477Z 2024-10-22 10:30:06.779 [INFO ] [main] [background] o.e.d.AppLifecycleLoggingListener - ------------------------ Eclipse Dirigible stopped ------------------------
2024-10-22T10:30:06.9242158Z 2024-10-22 10:30:06.780 [INFO ] [main] [background] org.quartz.core.QuartzScheduler - Scheduler EclipseDirigibleScheduler_$_fv-az1543-7491729592994934 paused.
2024-10-22T10:30:06.9249935Z 2024-10-22 10:30:06.780 [INFO ] [main] [background] o.s.m.s.b.SimpleBrokerMessageHandler - Stopping...
2024-10-22T10:30:06.9254722Z 2024-10-22 10:30:06.780 [INFO ] [main] [background] o.s.m.s.b.SimpleBrokerMessageHandler - BrokerAvailabilityEvent[available=false, SimpleBrokerMessageHandler [org.springframework.messaging.simp.broker.DefaultSubscriptionRegistry@13f92bfb]]
2024-10-22T10:30:06.9274311Z 2024-10-22 10:30:06.780 [INFO ] [main] [background] o.s.m.s.b.SimpleBrokerMessageHandler - Stopped.
2024-10-22T10:30:06.9278633Z 2024-10-22 10:30:06.781 [INFO ] [main] [background] o.a.coyote.http11.Http11NioProtocol - Stopping ProtocolHandler ["http-nio-auto-23-39737"]
2024-10-22T10:30:06.9285669Z 2024-10-22 10:30:06.782 [INFO ] [main] [background] o.a.c.i.engine.AbstractCamelContext - Apache Camel 4.8.0 (camel-23) is shutting down (timeout:45s)
2024-10-22T10:30:06.9289704Z 2024-10-22 10:30:06.783 [INFO ] [main] [background] o.a.c.i.engine.AbstractCamelContext - Routes stopped (total:2)
2024-10-22T10:30:06.9308744Z 2024-10-22 10:30:06.783 [INFO ] [main] [background] o.a.c.i.engine.AbstractCamelContext -     Stopped route-bda8 (direct://inbound1)
2024-10-22T10:30:06.9311467Z 2024-10-22 10:30:06.783 [INFO ] [main] [background] o.a.c.i.engine.AbstractCamelContext -     Stopped route-e308 (platform-http:///camelTest)
2024-10-22T10:30:06.9314861Z 2024-10-22 10:30:06.784 [INFO ] [main] [background] o.a.c.i.engine.AbstractCamelContext - Apache Camel 4.8.0 (camel-23) shutdown in 1ms (uptime:9s)
2024-10-22T10:30:06.9342908Z 2024-10-22 10:30:06.787 [INFO ] [main] [background] org.quartz.core.QuartzScheduler - Scheduler EclipseDirigibleScheduler_$_fv-az1543-7491729592994934 shutting down.
2024-10-22T10:30:06.9345898Z 2024-10-22 10:30:06.787 [INFO ] [main] [background] org.quartz.core.QuartzScheduler - Scheduler EclipseDirigibleScheduler_$_fv-az1543-7491729592994934 paused.
2024-10-22T10:30:06.9348539Z 2024-10-22 10:30:06.787 [INFO ] [main] [background] org.quartz.core.QuartzScheduler - Scheduler EclipseDirigibleScheduler_$_fv-az1543-7491729592994934 shutdown complete.
2024-10-22T10:30:06.9351884Z 2024-10-22 10:30:06.787 [INFO ] [main] [background] o.s.s.quartz.SchedulerFactoryBean - Shutting down Quartz Scheduler
2024-10-22T10:30:06.9358462Z 2024-10-22 10:30:06.787 [INFO ] [main] [background] o.e.d.c.e.b.f.p.BpmProviderFlowable - Cleaning [class org.eclipse.dirigible.components.engine.bpm.flowable.provider.BpmProviderFlowable]...
2024-10-22T10:30:06.9472060Z 2024-10-22 10:30:06.787 [WARN ] [main] [background] o.s.b.f.s.DisposableBeanAdapter - Custom destroy method 'cleanup' on bean with name 'provideBpmProviderFlowable' propagated an exception: org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction
2024-10-22T10:30:06.9476262Z 2024-10-22 10:30:06.790 [INFO ] [main] [background] o.s.o.j.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
2024-10-22T10:30:06.9479105Z 2024-10-22 10:30:06.790 [INFO ] [main] [background] com.zaxxer.hikari.HikariDataSource - HikariPool-23 - Shutdown initiated...
2024-10-22T10:30:06.9481331Z 2024-10-22 10:30:06.791 [INFO ] [main] [background] com.zaxxer.hikari.HikariDataSource - HikariPool-23 - Shutdown completed.
2024-10-22T10:30:06.9484243Z [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.51 s <<< FAILURE! -- in org.eclipse.dirigible.integration.tests.services.integrations.CamelPlatformHttpIT
2024-10-22T10:30:06.9487196Z [ERROR] org.eclipse.dirigible.integration.tests.services.integrations.CamelPlatformHttpIT.postToJsTest -- Time elapsed: 8.132 s <<< FAILURE!
2024-10-22T10:30:06.9490257Z org.junit.ComparisonFailure: Unexpected response from camel platform http endpoint expected:<[initial message -> calledFromCamel.mjs handled this message]> but was:<[]>
2024-10-22T10:30:06.9492020Z 	at org.junit.Assert.assertEquals(Assert.java:117)
2024-10-22T10:30:06.9493709Z 	at org.eclipse.dirigible.integration.tests.services.integrations.CamelPlatformHttpIT.postToJsTest(CamelPlatformHttpIT.java:44)
2024-10-22T10:30:06.9495426Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
2024-10-22T10:30:06.9496464Z 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
2024-10-22T10:30:06.9497495Z 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
2024-10-22T10:30:06.9498097Z 
2024-10-22T10:30:06.9499754Z 2024-10-22 10:30:06.815 [INFO ] [Thread-3899] [background] com.zaxxer.hikari.HikariDataSource - 69759c9b-b86f-4ef3-ad2b-cdf1db7babbb_DefaultDB - Shutdown initiated...
2024-10-22T10:30:06.9502865Z 2024-10-22 10:30:06.815 [INFO ] [Thread-1237] [background] com.zaxxer.hikari.HikariDataSource - 2412f7f8-1564-40d3-b771-6d2f239f1842_DefaultDB - Shutdown initiated...
2024-10-22T10:30:06.9505404Z 2024-10-22 10:30:06.815 [INFO ] [Thread-21] [background] com.zaxxer.hikari.HikariDataSource - SystemDB - Shutdown initiated...
2024-10-22T10:30:07.5549438Z [INFO] 
2024-10-22T10:30:07.5550260Z [INFO] Results:
2024-10-22T10:30:07.5551073Z [INFO] 
2024-10-22T10:30:07.5552211Z [ERROR] Failures: 
2024-10-22T10:30:07.5555107Z [ERROR]   CamelPlatformHttpIT.postToJsTest:44 Unexpected response from camel platform http endpoint expected:<[initial message -> calledFromCamel.mjs handled this message]> but was:<[]>
2024-10-22T10:30:07.5557629Z [INFO] 
2024-10-22T10:30:07.5558746Z [ERROR] Tests run: 43, Failures: 1, Errors: 0, Skipped: 0
2024-10-22T10:30:07.5559910Z [INFO] 

Most probably related to #4392 even that the test fails with different status code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant