Skip to content

Commit

Permalink
Test a smartmodule downloaded from hub using fluvio sm test
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus-consoli committed Sep 28, 2023
1 parent 7f4757d commit 2854036
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/cli/fluvio_smoke_tests/smartmodule-basic.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 2854036

Please sign in to comment.