Skip to content

CAMEL-23667: Add --stub=remote flag to stub only remote components via catalog#23712

Merged
davsclaus merged 3 commits into
mainfrom
CAMEL-23667-stub-remote-flag
Jun 3, 2026
Merged

CAMEL-23667: Add --stub=remote flag to stub only remote components via catalog#23712
davsclaus merged 3 commits into
mainfrom
CAMEL-23667-stub-remote-flag

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • Adds a new --stub=remote flag that uses the Camel catalog's remote field on ComponentModel to determine which components to stub, instead of relying on the hardcoded accepted list
  • Components where remote=true (e.g., kafka, jms, sql) are stubbed; components where remote=false (e.g., timer, direct, seda, log) are accepted
  • The existing ACCEPTED_STUB_NAMES list is still respected in remote mode for backward compatibility
  • Updates the TUI "Stub (no Docker needed)" checkbox to use --stub=remote instead of --stub=all
  • Documents the new flag in the camel-jbang user manual

Test plan

  • Run an example with --stub=remote and verify remote components (e.g., kafka) are stubbed while local components (e.g., timer, direct) work normally
  • Run with --stub=all and verify existing behavior is unchanged
  • Verify TUI stub checkbox uses --stub=remote

Claude Code on behalf of Claus Ibsen

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@davsclaus davsclaus force-pushed the CAMEL-23667-stub-remote-flag branch from 21b0e67 to 02c6e95 Compare June 2, 2026 21:14
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

🧪 CI tested the following changed modules:

  • catalog/camel-catalog
  • docs
  • dsl/camel-jbang/camel-jbang-core
  • dsl/camel-jbang/camel-jbang-plugin-tui
  • dsl/camel-kamelet-main

⚠️ Some tests are disabled on GitHub Actions (@DisabledIfSystemProperty(named = "ci.env.name")) and require manual verification:

  • dsl/camel-jbang/camel-jbang-core: 1 test(s) disabled on GitHub Actions

💡 Manual integration tests recommended:

You modified dsl/camel-jbang/camel-jbang-core. The related integration tests in dsl/camel-jbang/camel-jbang-it are excluded from CI. Consider running them manually:

mvn verify -f dsl/camel-jbang/camel-jbang-it -Djbang-it-test
All tested modules (10 modules)
  • Camel :: Catalog :: Camel Catalog
  • Camel :: JBang :: Core
  • Camel :: JBang :: MCP
  • Camel :: JBang :: Plugin :: Route Parser
  • Camel :: JBang :: Plugin :: TUI
  • Camel :: JBang :: Plugin :: Validate
  • Camel :: Kamelet Main
  • Camel :: Launcher :: Container
  • Camel :: YAML DSL :: Validator
  • Camel :: YAML DSL :: Validator Maven Plugin

⚙️ View full build and test results

davsclaus and others added 3 commits June 3, 2026 07:31
…a catalog

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@davsclaus davsclaus force-pushed the CAMEL-23667-stub-remote-flag branch from 02c6e95 to 5da061f Compare June 3, 2026 05:31
@davsclaus davsclaus merged commit 29fd3b7 into main Jun 3, 2026
4 of 7 checks passed
@davsclaus davsclaus deleted the CAMEL-23667-stub-remote-flag branch June 3, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant