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

Add a command to test plugin compatibility with the krakend binary #851

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

kpacha
Copy link
Member

@kpacha kpacha commented Feb 26, 2024

./krakend test-plugin -h
 ╓▄█                          ▄▄▌                               ╓██████▄µ  
▐███  ▄███╨▐███▄██H╗██████▄  ║██▌ ,▄███╨ ▄██████▄  ▓██▌█████▄  ███▀╙╙▀▀███╕
▐███▄███▀  ▐█████▀"╙▀▀"╙▀███ ║███▄███┘  ███▀""▀███ ████▀╙▀███H ███     ╙███
▐██████▌   ▐███⌐  ,▄████████M║██████▄  ║██████████M███▌   ███H ███     ,███
▐███╨▀███µ ▐███   ███▌  ,███M║███╙▀███  ███▄```▄▄` ███▌   ███H ███,,,╓▄███▀
▐███  ╙███▄▐███   ╙█████████M║██▌  ╙███▄`▀███████╨ ███▌   ███H █████████▀  
                     ``                     `'`                            
Version: 2.6.0

Tests that one or more plugins are loadable into KrakenD.

Usage:
  krakend test-plugin [flags] [artifacts]

Examples:
krakend test-plugin -scm ./plugins/my_plugin.so ./plugins/my_other_plugin.so

Flags:
  -c, --client     The artifact should contain a Client Plugin.
  -h, --help       help for test-plugin
  -m, --modifier   The artifact should contain a Req/Resp Modifier Plugin.
  -s, --server     The artifact should contain a Server Plugin.

Ex:

./krakend test-plugin -smc ../../luraproject/lura/transport/http/client/plugin/tests/lura-client-example.so
[KO] SERVER	lura-client-example.so: The plugin does not contain a HandlerRegisterer.
[KO] MODIFIER	lura-client-example.so: The plugin does not contain a ModifierRegisterer.
[OK] CLIENT	lura-client-example.so
[KO] 1 tested plugin(s) in 12.498341ms.
1 plugin(s) failed.

@kpacha kpacha requested a review from taik0 February 26, 2024 18:26
@taik0 taik0 merged commit 7e78705 into dev-2.6 Feb 28, 2024
2 checks passed
@taik0 taik0 deleted the test_plugins branch February 28, 2024 13:48
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