-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test a smartmodule downloaded from hub using
fluvio sm test
- Loading branch information
1 parent
7f4757d
commit 2854036
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -68,3 +68,14 @@ setup_file() { | |
assert_failure | ||
assert_output --partial "SmartModule not found" | ||
} | ||
|
||
# Download smartmodule from hub and test it without creating a new project | ||
@test "Test external smartmodule" { | ||
run timeout 15s "$FLUVIO_BIN" hub sm download "infinyon/[email protected]" | ||
assert_success | ||
|
||
run timeout 15s "$FLUVIO_BIN" sm test \ | ||
-t '{"uses":"infinyon/[email protected]", "with": {"regex": "^f"}}' \ | ||
--text 'fluvio' | ||
assert_output --partial fluvio | ||
} |