-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugin Manager: Loading ... (in progress)
* Add tests for debugging temporally * Fixing typos
- Loading branch information
1 parent
9941076
commit 581d45e
Showing
7 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
application/apps/indexer/plugins/string_parser/string_parser.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This is example of the plugin metadata file which should placed in the plugin directory | ||
# next to plugin wasm file. | ||
name = "String Parser" | ||
description = "Example for parser plugins. It parses the bytes to UTF-8 strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
application/apps/indexer/plugins_host/src/plugins_manager/load/tests.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use super::*; | ||
|
||
//TODO AAZ: Write meaningful tests for loading to ensure loading can't fail because of | ||
//misconfigured plugins in any case. | ||
#[tokio::test] | ||
#[ignore] | ||
async fn prototype_load() { | ||
let plugins = load_plugins().await; | ||
dbg!(&plugins); | ||
|
||
panic!("This test is for debugging purpose only"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters