Skip to content

Add SSL integration tests and support for SSL connections in ActiveMQ#30

Merged
blackb1rd merged 23 commits intomainfrom
test/ssl-testing
Feb 18, 2026
Merged

Add SSL integration tests and support for SSL connections in ActiveMQ#30
blackb1rd merged 23 commits intomainfrom
test/ssl-testing

Conversation

@blackb1rd
Copy link
Owner

  • Introduced OpenwireMultiConnectionTest for testing multiple simultaneous connections to different brokers.
  • Created main integration benchmark test runner in main.cpp.
  • Updated CMakeLists.txt to include new integration benchmark tests.
  • Added OpenwireSslConnectionTest and OpenwireSslSimpleTest for SSL connection testing.
  • Enhanced IntegrationCommon to provide SSL OpenWire URL.
  • Updated docker-compose.yml to include SSL broker configuration.
  • Added SSL broker configuration in activemq-ssl.xml.
  • Created script to generate self-signed certificates for SSL testing.

- Introduced OpenwireMultiConnectionTest for testing multiple simultaneous connections to different brokers.
- Created main integration benchmark test runner in main.cpp.
- Updated CMakeLists.txt to include new integration benchmark tests.
- Added OpenwireSslConnectionTest and OpenwireSslSimpleTest for SSL connection testing.
- Enhanced IntegrationCommon to provide SSL OpenWire URL.
- Updated docker-compose.yml to include SSL broker configuration.
- Added SSL broker configuration in activemq-ssl.xml.
- Created script to generate self-signed certificates for SSL testing.

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…nd content

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…larity and port remapping

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…r logging during SSL connection and handshake

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…dling

- Refactored OpenwireSslSlowListenerTest to include a dedicated SlowListener class that tracks message counts and thread IDs.
- Updated testSlowListener to validate that all messages are processed by a single thread and to ensure message counts are accurate.
- Expanded OpenwireSslTransactionTest with additional transaction scenarios, including batch sending and rollback handling.
- Improved testSendRollbackCommitRollback to ensure messages are correctly rolled back and re-sent.
- Added testSendSessionClose to verify behavior when closing sessions during message transactions.
- Introduced testWithTTLSet to validate message expiration handling in transactions.
- Enhanced OpenwireSslVirtualTopicTest to streamline virtual topic message sending and receiving with various acknowledgment modes.

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…update documentation for clarity

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
… test cases for OpenWire SSL features

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
- Updated OpenwireSslSlowListenerTest to improve namespace formatting.
- Refactored OpenwireSslTempDestinationTest to replace inheritance from TempDestinationTest with CMSTestFixture, adding new test cases for message handling and connection behavior.
- Enhanced OpenwireSslTransactionTest and OpenwireSslXATransactionsTest to utilize Google Test framework, improving structure and readability.
- Updated IntegrationCommon to include SSL peer verification details.
- Modified CMake presets to enable SSL support.
- Adjusted docker-compose and SSL configuration files to reflect new paths for ActiveMQ and certificate files.

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…Docker Compose comments

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…AVE_OPENSSL

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…ent early returns

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…d decaf modules

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…el matching

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…ent early returns

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
…nation handling

Signed-off-by: blackb1rd <blackb1rd.mov@gmail.com>
…g concurrent SSL_read and SSL_write operations

Signed-off-by: blackb1rd <blackb1rd.mov@gmail.com>
… and signals

Signed-off-by: Prachya Saechua <psaechua@cpaxtra.co.th>
@blackb1rd blackb1rd merged commit 75233e7 into main Feb 18, 2026
54 checks passed
@blackb1rd blackb1rd deleted the test/ssl-testing branch February 18, 2026 17:26
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.

2 participants

Comments